summaryrefslogtreecommitdiffstats
path: root/tools/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-10-26 15:14:46 +0200
committerJakub Kicinski <kuba@kernel.org>2023-10-27 23:49:09 +0200
commitff672b9ffeb3f82135488ac16c5c5eb4b992999b (patch)
treef22a14dc9e2bad8bf0e3ac177705fedc0a965b92 /tools/net
parentnetdevsim: Block until all devices are released (diff)
downloadlinux-ff672b9ffeb3f82135488ac16c5c5eb4b992999b.tar.xz
linux-ff672b9ffeb3f82135488ac16c5c5eb4b992999b.zip
ipvlan: properly track tx_errors
Both ipvlan_process_v4_outbound() and ipvlan_process_v6_outbound() increment dev->stats.tx_errors in case of errors. Unfortunately there are two issues : 1) ipvlan_get_stats64() does not propagate dev->stats.tx_errors to user. 2) Increments are not atomic. KCSAN would complain eventually. Use DEV_STATS_INC() to not miss an update, and change ipvlan_get_stats64() to copy the value back to user. Fixes: 2ad7bf363841 ("ipvlan: Initial check-in of the IPVLAN driver.") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Mahesh Bandewar <maheshb@google.com> Link: https://lore.kernel.org/r/20231026131446.3933175-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net')
0 files changed, 0 insertions, 0 deletions