summaryrefslogtreecommitdiff
path: root/drivers/nubus
diff options
context:
space:
mode:
authorWei Fang <wei.fang@nxp.com>2023-06-02 17:46:58 +0800
committerDavid S. Miller <davem@davemloft.net>2023-06-04 15:43:45 +0100
commit7190d0ff0e17690a9b1279d84a06473600ba2060 (patch)
tree097e91622abea7a87404a0505e3e39f5e64c2d2e /drivers/nubus
parentc308e9ec004721a656c193243eab61a8be324657 (diff)
downloadlinux-7190d0ff0e17690a9b1279d84a06473600ba2060.tar.gz
linux-7190d0ff0e17690a9b1279d84a06473600ba2060.tar.bz2
linux-7190d0ff0e17690a9b1279d84a06473600ba2060.zip
net: enetc: correct the statistics of rx bytes
The rx_bytes of struct net_device_stats should count the length of ethernet frames excluding the FCS. However, there are two problems with the rx_bytes statistics of the current enetc driver. one is that the length of VLAN header is not counted if the VLAN extraction feature is enabled. The other is that the length of L2 header is not counted, because eth_type_trans() is invoked before updating rx_bytes which will subtract the length of L2 header from skb->len. BTW, the rx_bytes statistics of XDP path also have similar problem, I will fix it in another patch. Fixes: a800abd3ecb9 ("net: enetc: move skb creation into enetc_build_skb") Signed-off-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions