summaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_init.c
diff options
context:
space:
mode:
authorNarender Kumar <narender.kumar@qlogic.com>2009-08-23 08:35:09 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-23 19:00:20 -0700
commit1bb482f8a46000f77577948ff1c350275bba7dc9 (patch)
tree3003df5a4414af44af0756f670531d9445bad397 /drivers/net/netxen/netxen_nic_init.c
parent8fea0f0db87a4aaed41a93eed147af61cc5f9e3f (diff)
downloadlinux-1bb482f8a46000f77577948ff1c350275bba7dc9.tar.gz
linux-1bb482f8a46000f77577948ff1c350275bba7dc9.tar.bz2
linux-1bb482f8a46000f77577948ff1c350275bba7dc9.zip
netxen: ethtool statistics and control for LRO
Add ethtool -K knob to control LRO in firmware. LRO path is completely separated from GRO, LRO packets are still fed with netif_receive_skb(). Also fix ethtool statistics to include LRO packets. Also use correct message type while configuring interrupt coalescing. Signed-off-by: Narender Kumar <narender.kumar@qlogic.com> 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_init.c')
-rw-r--r--drivers/net/netxen/netxen_nic_init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index e8bdbf9fefbb..c3609e422876 100644
--- a/drivers/net/netxen/netxen_nic_init.c
+++ b/drivers/net/netxen/netxen_nic_init.c
@@ -1277,7 +1277,7 @@ netxen_process_rcv(struct netxen_adapter *adapter,
napi_gro_receive(&sds_ring->napi, skb);
- adapter->stats.no_rcv++;
+ adapter->stats.rx_pkts++;
adapter->stats.rxbytes += length;
return buffer;
@@ -1350,8 +1350,13 @@ netxen_process_lro(struct netxen_adapter *adapter,
th->psh = push;
th->seq = htonl(seq_number);
+ length = skb->len;
+
netif_receive_skb(skb);
+ adapter->stats.lro_pkts++;
+ adapter->stats.rxbytes += length;
+
return buffer;
}