diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2011-11-16 02:03:45 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 18:07:10 -0500 |
commit | daad6167d97b43cfc448cfe698784730b53ed3d6 (patch) | |
tree | 5c557ee297ac98a66ff33f2faa0893af28544d67 | |
parent | 5d5adb93d0efca8b47cc3e649a41ba650ff3d270 (diff) | |
download | op-kernel-dev-daad6167d97b43cfc448cfe698784730b53ed3d6.zip op-kernel-dev-daad6167d97b43cfc448cfe698784730b53ed3d6.tar.gz |
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>
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 3 |
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 1522065..64f0c1a 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); |