net: ethernet: enetc: get rid of xdp_redirect_sg counter
Remove xdp_redirect_sg counter and the related ethtool entry since it is no longer used. Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8feb020f92
commit
59cc773a35
|
@ -70,7 +70,6 @@ struct enetc_ring_stats {
|
||||||
unsigned int xdp_tx_drops;
|
unsigned int xdp_tx_drops;
|
||||||
unsigned int xdp_redirect;
|
unsigned int xdp_redirect;
|
||||||
unsigned int xdp_redirect_failures;
|
unsigned int xdp_redirect_failures;
|
||||||
unsigned int xdp_redirect_sg;
|
|
||||||
unsigned int recycles;
|
unsigned int recycles;
|
||||||
unsigned int recycle_failures;
|
unsigned int recycle_failures;
|
||||||
unsigned int win_drop;
|
unsigned int win_drop;
|
||||||
|
|
|
@ -197,7 +197,6 @@ static const char rx_ring_stats[][ETH_GSTRING_LEN] = {
|
||||||
"Rx ring %2d recycle failures",
|
"Rx ring %2d recycle failures",
|
||||||
"Rx ring %2d redirects",
|
"Rx ring %2d redirects",
|
||||||
"Rx ring %2d redirect failures",
|
"Rx ring %2d redirect failures",
|
||||||
"Rx ring %2d redirect S/G",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char tx_ring_stats[][ETH_GSTRING_LEN] = {
|
static const char tx_ring_stats[][ETH_GSTRING_LEN] = {
|
||||||
|
@ -291,7 +290,6 @@ static void enetc_get_ethtool_stats(struct net_device *ndev,
|
||||||
data[o++] = priv->rx_ring[i]->stats.recycle_failures;
|
data[o++] = priv->rx_ring[i]->stats.recycle_failures;
|
||||||
data[o++] = priv->rx_ring[i]->stats.xdp_redirect;
|
data[o++] = priv->rx_ring[i]->stats.xdp_redirect;
|
||||||
data[o++] = priv->rx_ring[i]->stats.xdp_redirect_failures;
|
data[o++] = priv->rx_ring[i]->stats.xdp_redirect_failures;
|
||||||
data[o++] = priv->rx_ring[i]->stats.xdp_redirect_sg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!enetc_si_is_pf(priv->si))
|
if (!enetc_si_is_pf(priv->si))
|
||||||
|
|
Loading…
Reference in New Issue