Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: enetc: remove xdp_drops statistic from enetc_xdp_drop()
commit 412950d upstream. The xdp_drops statistic indicates the number of XDP frames dropped in the Rx direction. However, enetc_xdp_drop() is also used in XDP_TX and XDP_REDIRECT actions. If frame loss occurs in these two actions, the frames loss count should not be included in xdp_drops, because there are already xdp_tx_drops and xdp_redirect_failures to count the frame loss of these two actions, so it's better to remove xdp_drops statistic from enetc_xdp_drop() and increase xdp_drops in XDP_DROP action. Fixes: 7ed2bc8 ("net: enetc: add support for XDP_TX") Cc: [email protected] Signed-off-by: Wei Fang <[email protected]> Reviewed-by: Maciej Fijalkowski <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information