aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/marvell/mvpp2/mvpp2.h
diff options
context:
space:
mode:
authorSven Auhagen <sven.auhagen@voleatech.de>2020-07-02 16:12:44 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-03 14:46:24 -0700
commit39b963152469fa154b3e1c4ef4ceac3651f56731 (patch)
tree5af6b4e960253ebe778881fea6e821eccf505d3d /drivers/net/ethernet/marvell/mvpp2/mvpp2.h
parentmvpp2: XDP TX support (diff)
downloadwireguard-linux-39b963152469fa154b3e1c4ef4ceac3651f56731.tar.xz
wireguard-linux-39b963152469fa154b3e1c4ef4ceac3651f56731.zip
mvpp2: xdp ethtool stats
Add ethtool statistics for XDP. Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2/mvpp2.h')
-rw-r--r--drivers/net/ethernet/marvell/mvpp2/mvpp2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h
index c52955b33fab..32753cc771bf 100644
--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h
+++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h
@@ -846,6 +846,14 @@ struct mvpp2_pcpu_stats {
u64 rx_bytes;
u64 tx_packets;
u64 tx_bytes;
+ /* XDP */
+ u64 xdp_redirect;
+ u64 xdp_pass;
+ u64 xdp_drop;
+ u64 xdp_xmit;
+ u64 xdp_xmit_err;
+ u64 xdp_tx;
+ u64 xdp_tx_err;
};
/* Per-CPU port control */