* [PATCH net-2.6] be2net: set proper value to version field in req hdr
@ 2010-02-16 10:18 Ajit Khaparde
2010-02-16 23:15 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ajit Khaparde @ 2010-02-16 10:18 UTC (permalink / raw)
To: davem, netdev
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>
---
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,
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-2.6] be2net: set proper value to version field in req hdr
2010-02-16 10:18 [PATCH net-2.6] be2net: set proper value to version field in req hdr Ajit Khaparde
@ 2010-02-16 23:15 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-02-16 23:15 UTC (permalink / raw)
To: ajitk, ajitkhaparde; +Cc: netdev
From: Ajit Khaparde <ajitkhaparde@gmail.com>
Date: Tue, 16 Feb 2010 15:48:46 +0530
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-16 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 10:18 [PATCH net-2.6] be2net: set proper value to version field in req hdr Ajit Khaparde
2010-02-16 23:15 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).