Commit 07793d33b4fba00f5bd1dac78fa038bb0e23fa5c
Committed by
David S. Miller
1 parent
553f9118ab
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. Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
drivers/net/benet/be_cmds.c
... | ... | @@ -296,6 +296,7 @@ |
296 | 296 | req_hdr->opcode = opcode; |
297 | 297 | req_hdr->subsystem = subsystem; |
298 | 298 | req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr)); |
299 | + req_hdr->version = 0; | |
299 | 300 | } |
300 | 301 | |
301 | 302 | static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages, |