be2net: set proper value to version field in req hdr
authorAjit Khaparde <ajitkhaparde@gmail.com>
Tue, 16 Feb 2010 00:18:46 +0000 (00:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 22:53:25 +0000 (14:53 -0800)
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>
drivers/net/benet/be_cmds.c

index fee6eee7ae5ba583bf345a79a4be188fbdd2345d..006cb2efcd2250691df59c94350252b4eee4b926 100644 (file)
@@ -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,