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>
This commit is contained in:

committed by
David S. Miller

parent
8fea0f0db8
commit
1bb482f8a4
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user