summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>2011-06-22 04:52:23 +0200
committerDavid S. Miller <davem@davemloft.net>2011-06-24 10:17:07 +0200
commit22c8c9343258feda9ea9ebb9e5f8cbb727b69454 (patch)
treefac14dcf287c032ff83c832a253178b90a2228b3 /drivers/net/qlcnic/qlcnic_main.c
parentqlcnic: Add support to enable/disable FW dump capability (diff)
downloadlinux-22c8c9343258feda9ea9ebb9e5f8cbb727b69454.tar.xz
linux-22c8c9343258feda9ea9ebb9e5f8cbb727b69454.zip
qlcnic: multi protocol internal loopback support added.
Driver will generate loopback traffic pattern and do the test. And returns result of the test to application. Updated driver version to 5.0.19. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index ac7f8a2f7d9c..357436be801e 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -1391,6 +1391,12 @@ int qlcnic_diag_alloc_res(struct net_device *netdev, int test)
qlcnic_enable_int(sds_ring);
}
}
+
+ if (adapter->diag_test == QLCNIC_LOOPBACK_TEST) {
+ adapter->ahw->loopback_state = 0;
+ qlcnic_linkevent_request(adapter, 1);
+ }
+
set_bit(__QLCNIC_DEV_UP, &adapter->state);
return 0;