projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caedda3
)
cxgb4vf: add ethtool statistics for GRO.
author
Casey Leedom
<
[email protected]
>
Thu, 11 Nov 2010 09:30:41 +0000
(09:30 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 15 Nov 2010 17:17:37 +0000
(09:17 -0800)
Add ethtool statistics for GRO.
Signed-off-by: Casey Leedom <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/cxgb4vf/cxgb4vf_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/cxgb4vf/cxgb4vf_main.c
b/drivers/net/cxgb4vf/cxgb4vf_main.c
index 62357191d4e77a2b54ccf4d0f2c889ac676deb85..47417d4003719ebf3317de827cf5d0c50816bb1d 100644
(file)
--- 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;
}
}