projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332ad43
)
be2net: Fix link status query command
author
Padmanabh Ratnakar
<
[email protected]
>
Fri, 3 Feb 2012 09:49:46 +0000
(09:49 +0000)
committer
David S. Miller
<
[email protected]
>
Sat, 4 Feb 2012 21:06:28 +0000
(16:06 -0500)
Version number in query link status command is getting overwritten in
be_wrb_cmd_hdr_prepare() routine. Move the initialization to fix this
issue. Also initialize the domain field.
Signed-off-by: Padmanabh Ratnakar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/emulex/benet/be_cmds.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/emulex/benet/be_cmds.c
b/drivers/net/ethernet/emulex/benet/be_cmds.c
index 0fcb45624796c29942a30125439d6eeb5ab1d407..dd6e8e2b34768a74f908d01f1a98c41a30a5c12e 100644
(file)
--- a/
drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/
drivers/net/ethernet/emulex/benet/be_cmds.c
@@
-1257,11
+1257,13
@@
int be_cmd_link_status_query(struct be_adapter *adapter, u8 *mac_speed,
}
req = embedded_payload(wrb);
+ be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
+ OPCODE_COMMON_NTWK_LINK_STATUS_QUERY, sizeof(*req), wrb, NULL);
+
if (adapter->generation == BE_GEN3 || 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);
+ req->hdr.domain = dom;
status = be_mcc_notify_wait(adapter);
if (!status) {