]> git.openfabrics.org - ~emulex/for-vlad/old/compat-rdma.git/commitdiff
cxgb4: Fix unable to get UP event from the LLD
authorVipul Pandya <vipul@chelsio.com>
Wed, 31 Oct 2012 16:36:55 +0000 (09:36 -0700)
committerVipul Pandya <vipul@chelsio.com>
Wed, 31 Oct 2012 16:36:55 +0000 (09:36 -0700)
If T4 configuration file gets loaded from the /lib/firmware/cxgb4/ directory
then offload capabilities of the cards were getting disabled during
initialization. Hence ULDs do not get an UP event from the LLD.

This patch fixes bug 2392 in OFED bugzilla.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
linux-next-pending/0010-cxgb4-Fix-unable-to-get-UP-event-from-the-LLD.patch [new file with mode: 0644]

diff --git a/linux-next-pending/0010-cxgb4-Fix-unable-to-get-UP-event-from-the-LLD.patch b/linux-next-pending/0010-cxgb4-Fix-unable-to-get-UP-event-from-the-LLD.patch
new file mode 100644 (file)
index 0000000..69a6ae8
--- /dev/null
@@ -0,0 +1,40 @@
+From f82ee1d572199bfe4af598d05321da3a2d963fa8 Mon Sep 17 00:00:00 2001
+From: Vipul Pandya <vipul@chelsio.com>
+Date: Thu, 25 Oct 2012 14:51:48 +0530
+Subject: [PATCH 11/16] cxgb4: Fix unable to get UP event from the LLD
+
+If T4 configuration file gets loaded from the /lib/firmware/cxgb4/ directory
+then offload capabilities of the cards were getting disabled during
+initialization. Hence ULDs do not get an UP event from the LLD.
+
+This patch fixes bug 2392 in OFED bugzilla.
+
+Signed-off-by: Vipul Pandya <vipul@chelsio.com>
+---
+ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c |   10 ----------
+ 1 files changed, 0 insertions(+), 10 deletions(-)
+
+diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+index c1cde11..0df1284 100644
+--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
++++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+@@ -3416,16 +3416,6 @@ static int adap_init0_config(struct adapter *adapter, int reset)
+                        finicsum, cfcsum);
+       /*
+-       * If we're a pure NIC driver then disable all offloading facilities.
+-       * This will allow the firmware to optimize aspects of the hardware
+-       * configuration which will result in improved performance.
+-       */
+-      caps_cmd.ofldcaps = 0;
+-      caps_cmd.iscsicaps = 0;
+-      caps_cmd.rdmacaps = 0;
+-      caps_cmd.fcoecaps = 0;
+-
+-      /*
+        * And now tell the firmware to use the configuration we just loaded.
+        */
+       caps_cmd.op_to_write =
+-- 
+1.7.1
+