diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2007-09-03 01:03:35 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:52 -0400 |
commit | 200eef20db6de7535438c9af9becc8169c6cb6c0 (patch) | |
tree | 119bd4a21e176dfaf7a0b58687ad84c57fe79799 /drivers/net/netxen/netxen_nic_init.c | |
parent | 1d3bb996481e116f5f2b127cbd29b83365d2cf62 (diff) |
netxen: ethtool fixes
Resubmitting the patch.
This patch improves ethtool support for printing correct ring statistics,
segmentation offload status, etc.
Signed-off by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index 1811bcb8c38..37589265297 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c | |||
@@ -1118,10 +1118,13 @@ netxen_process_rcv(struct netxen_adapter *adapter, int ctxid, | |||
1118 | 1118 | ||
1119 | skb = (struct sk_buff *)buffer->skb; | 1119 | skb = (struct sk_buff *)buffer->skb; |
1120 | 1120 | ||
1121 | if (likely(netxen_get_sts_status(desc) == STATUS_CKSUM_OK)) { | 1121 | if (likely(adapter->rx_csum && |
1122 | netxen_get_sts_status(desc) == STATUS_CKSUM_OK)) { | ||
1122 | adapter->stats.csummed++; | 1123 | adapter->stats.csummed++; |
1123 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 1124 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
1124 | } | 1125 | } else |
1126 | skb->ip_summed = CHECKSUM_NONE; | ||
1127 | |||
1125 | skb->dev = netdev; | 1128 | skb->dev = netdev; |
1126 | if (desc_ctx == RCV_DESC_LRO_CTXID) { | 1129 | if (desc_ctx == RCV_DESC_LRO_CTXID) { |
1127 | /* True length was only available on the last pkt */ | 1130 | /* True length was only available on the last pkt */ |