Commit 6662b5e4 authored by Ioana Radulescu's avatar Ioana Radulescu Committed by Greg Kroah-Hartman

staging: fsl-dpaa2/eth: Add counter for skb reallocs

Add a counter for the number of egress frames that need to be
realloc'ed due to insufficient headroom space.
Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 441851b4
...@@ -578,6 +578,7 @@ static netdev_tx_t dpaa2_eth_tx(struct sk_buff *skb, struct net_device *net_dev) ...@@ -578,6 +578,7 @@ static netdev_tx_t dpaa2_eth_tx(struct sk_buff *skb, struct net_device *net_dev)
percpu_stats->tx_dropped++; percpu_stats->tx_dropped++;
goto err_alloc_headroom; goto err_alloc_headroom;
} }
percpu_extras->tx_reallocs++;
dev_kfree_skb(skb); dev_kfree_skb(skb);
skb = ns; skb = ns;
} }
......
...@@ -231,6 +231,7 @@ struct dpaa2_eth_drv_stats { ...@@ -231,6 +231,7 @@ struct dpaa2_eth_drv_stats {
__u64 tx_conf_bytes; __u64 tx_conf_bytes;
__u64 tx_sg_frames; __u64 tx_sg_frames;
__u64 tx_sg_bytes; __u64 tx_sg_bytes;
__u64 tx_reallocs;
__u64 rx_sg_frames; __u64 rx_sg_frames;
__u64 rx_sg_bytes; __u64 rx_sg_bytes;
/* Enqueues retried due to portal busy */ /* Enqueues retried due to portal busy */
......
...@@ -62,6 +62,7 @@ static char dpaa2_ethtool_extras[][ETH_GSTRING_LEN] = { ...@@ -62,6 +62,7 @@ static char dpaa2_ethtool_extras[][ETH_GSTRING_LEN] = {
"[drv] tx conf bytes", "[drv] tx conf bytes",
"[drv] tx sg frames", "[drv] tx sg frames",
"[drv] tx sg bytes", "[drv] tx sg bytes",
"[drv] tx realloc frames",
"[drv] rx sg frames", "[drv] rx sg frames",
"[drv] rx sg bytes", "[drv] rx sg bytes",
"[drv] enqueue portal busy", "[drv] enqueue portal busy",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment