Skip to content
Commit fdebd850 authored by Wei Fang's avatar Wei Fang Committed by David S. Miller
Browse files

net: enetc: correct rx_bytes statistics of XDP



The rx_bytes statistics of XDP are always zero, because rx_byte_cnt
is not updated after it is initialized to 0. So fix it.

Fixes: d1b15102 ("net: enetc: add support for XDP_DROP and XDP_PASS")
Signed-off-by: default avatarWei Fang <wei.fang@nxp.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7190d0ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment