summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>2011-11-16 02:03:45 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-16 18:07:10 -0500
commitdaad6167d97b43cfc448cfe698784730b53ed3d6 (patch)
tree5c557ee297ac98a66ff33f2faa0893af28544d67 /drivers
parent5d5adb93d0efca8b47cc3e649a41ba650ff3d270 (diff)
downloadlinux-stable-daad6167d97b43cfc448cfe698784730b53ed3d6.tar.gz
linux-stable-daad6167d97b43cfc448cfe698784730b53ed3d6.tar.bz2
linux-stable-daad6167d97b43cfc448cfe698784730b53ed3d6.zip
be2net: Use V1 query link status command for lancer
Use V1 version of query link status command for Lancer. Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/emulex/benet/be_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c
index 1522065926b8..64f0c1aa1b09 100644
--- a/drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/drivers/net/ethernet/emulex/benet/be_cmds.c
@@ -1246,6 +1246,9 @@ int be_cmd_link_status_query(struct be_adapter *adapter, u8 *mac_speed,
}
req = embedded_payload(wrb);
+ if (lancer_chip(adapter))
+ req->hdr.version = 1;
+
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
OPCODE_COMMON_NTWK_LINK_STATUS_QUERY, sizeof(*req), wrb, NULL);