cxgb4: report GRO stats with ethtool -S
authorDimitris Michailidis <dm@chelsio.com>
Mon, 10 May 2010 15:58:09 +0000 (15:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2010 06:31:16 +0000 (23:31 -0700)
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4_main.c

index 80c3fc5..90d375b 100644 (file)
@@ -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;
        }
 }