Gitweb: http://git.kernel.org/linus/07793d33b4fba00f5bd1dac78fa038bb0e23fa5c Commit: 07793d33b4fba00f5bd1dac78fa038bb0e23fa5c Parent: 553f9118abc4fc53674fff87f6fe5fa3f56a41ed Author: Ajit Khaparde <ajitkhaparde@gmail.com> AuthorDate: Tue Feb 16 00:18:46 2010 +0000 Committer: David S. Miller <davem@davemloft.net> CommitDate: Tue Feb 16 14:53:25 2010 -0800 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> --- drivers/net/benet/be_cmds.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index fee6eee..006cb2e 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -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, -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
