Skip to contentSkip to conversation

be2net: set proper value to version field in req hdr

PATCH Applied Ajit Khaparde 2 participants 2 messages Feb 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 be2net: set proper value to version field in req hdr

Before sending a command to the ASIC, set version properly. This is necessary for the ARM firmware to send correct data to the driver. This also fixes a bug in certain skews of the ASIC where the statistics are misreported.

---
 drivers/net/benet/be_cmds.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/benet/be_cmds.c +1 -0
index fee6eee..006cb2e 100644
@@ -296,6 +296,7 @@ static void be_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr,
 	req_hdr->opcode = opcode;
 	req_hdr->subsystem = subsystem;
 	req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr));
+	req_hdr->version = 0;
 }
 
 static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages,
Signature · 1 line
1.6.3.3
maintainer Applied
#1 lore raw

From: Ajit Khaparde <[email protected]>
Date: Tue, 16 Feb 2010 15:48:46 +0530

Quoted 6 lines

Before sending a command to the ASIC, set version properly. This is necessary for the ARM firmware to send correct data to the driver. This also fixes a bug in certain skews of the ASIC where the statistics are misreported.

Applied.