diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-05-10 15:58:09 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-12 23:31:16 -0700 |
commit | 4a6346d4ea63b5e1390babf22f1cc0f113d8082b (patch) | |
tree | 51c640c037ec8c863c0518479e8777dc23712f97 | |
parent | f1a051b93090ad920e88748023ab0dea3a6e2ad7 (diff) | |
download | linux-3.10-4a6346d4ea63b5e1390babf22f1cc0f113d8082b.tar.gz linux-3.10-4a6346d4ea63b5e1390babf22f1cc0f113d8082b.tar.bz2 linux-3.10-4a6346d4ea63b5e1390babf22f1cc0f113d8082b.zip |
cxgb4: report GRO stats with ethtool -S
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/cxgb4/cxgb4_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c index 80c3fc5c41c..90d375b421c 100644 --- a/drivers/net/cxgb4/cxgb4_main.c +++ b/drivers/net/cxgb4/cxgb4_main.c @@ -859,6 +859,8 @@ static char stats_strings[][ETH_GSTRING_LEN] = { "RxCsumGood ", "VLANextractions ", "VLANinsertions ", + "GROpackets ", + "GROmerged ", }; static int get_sset_count(struct net_device *dev, int sset) @@ -922,6 +924,8 @@ struct queue_port_stats { u64 rx_csum; u64 vlan_ex; u64 vlan_ins; + u64 gro_pkts; + u64 gro_merged; }; static void collect_sge_port_stats(const struct adapter *adap, @@ -938,6 +942,8 @@ static void collect_sge_port_stats(const struct adapter *adap, s->rx_csum += rx->stats.rx_cso; s->vlan_ex += rx->stats.vlan_ex; s->vlan_ins += tx->vlan_ins; + s->gro_pkts += rx->stats.lro_pkts; + s->gro_merged += rx->stats.lro_merged; } } |