diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-01-14 23:48:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-14 23:48:11 -0500 |
commit | 391587c3447d99b842a647f8e701895c9eea050b (patch) | |
tree | 5acf2f1282d068195261216953a1b71f20fb1c9a /drivers/net/netxen/netxen_nic_hw.c | |
parent | 2edbb454428729f450f7a0aabbf95ac62b46b78a (diff) |
netxen: fix ipv6 offload and tx cleanup
o fix the ip/tcp hdr offset in tx descriptors for ipv6.
o cleanup xmit function, move the tso checks into separate function,
this reduces unnecessary endian conversions back and forth.
o optimize macros to initialize tx descriptors.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index e8a0eed0078e..98d0bcda5f4f 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -508,12 +508,8 @@ netxen_send_cmd_descs(struct netxen_adapter *adapter, | |||
508 | cmd_desc = &cmd_desc_arr[i]; | 508 | cmd_desc = &cmd_desc_arr[i]; |
509 | 509 | ||
510 | pbuf = &adapter->cmd_buf_arr[producer]; | 510 | pbuf = &adapter->cmd_buf_arr[producer]; |
511 | pbuf->mss = 0; | ||
512 | pbuf->total_length = 0; | ||
513 | pbuf->skb = NULL; | 511 | pbuf->skb = NULL; |
514 | pbuf->cmd = 0; | ||
515 | pbuf->frag_count = 0; | 512 | pbuf->frag_count = 0; |
516 | pbuf->port = 0; | ||
517 | 513 | ||
518 | /* adapter->ahw.cmd_desc_head[producer] = *cmd_desc; */ | 514 | /* adapter->ahw.cmd_desc_head[producer] = *cmd_desc; */ |
519 | memcpy(&adapter->ahw.cmd_desc_head[producer], | 515 | memcpy(&adapter->ahw.cmd_desc_head[producer], |