diff options
author | Casey Leedom <leedom@chelsio.com> | 2010-11-11 09:30:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-15 09:17:37 -0800 |
commit | f12fe3536bebcbd2ccfa80030ec7d9868c488d30 (patch) | |
tree | a1b290cdc64c6b8e3bbd7033f70c40bbbddbabab /drivers/net/cxgb4vf | |
parent | caedda35c6dba5a283e5d87e77a8d19ee4be3183 (diff) |
cxgb4vf: add ethtool statistics for GRO.
Add ethtool statistics for GRO.
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4vf')
-rw-r--r-- | drivers/net/cxgb4vf/cxgb4vf_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index 62357191d4e..47417d40037 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c @@ -1346,6 +1346,8 @@ struct queue_port_stats { u64 rx_csum; u64 vlan_ex; u64 vlan_ins; + u64 lro_pkts; + u64 lro_merged; }; /* @@ -1383,6 +1385,8 @@ static const char stats_strings[][ETH_GSTRING_LEN] = { "RxCsumGood ", "VLANextractions ", "VLANinsertions ", + "GROPackets ", + "GROMerged ", }; /* @@ -1432,6 +1436,8 @@ static void collect_sge_port_stats(const struct adapter *adapter, stats->rx_csum += rxq->stats.rx_cso; stats->vlan_ex += rxq->stats.vlan_ex; stats->vlan_ins += txq->vlan_ins; + stats->lro_pkts += rxq->stats.lro_pkts; + stats->lro_merged += rxq->stats.lro_merged; } } |