Eric Dumazet
af50165c12
ipvlan: properly track tx_errors
...
[ Upstream commit ff672b9ffeb3f82135488ac16c5c5eb4b992999b ]
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: 2ad7bf3638 ("ipvlan: Initial check-in of the IPVLAN driver.")
Signed-off-by: Eric Dumazet <[email protected] >
Cc: Mahesh Bandewar <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2023-11-20 10:30:10 +01:00
..
appletalk
arcnet
net: arcnet: Do not call kfree_skb() under local_irq_disable()
2023-09-23 10:59:43 +02:00
bonding
bonding: fix macvlan over alb bond support
2023-08-30 16:27:24 +02:00
caif
can
can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on()
2023-11-20 10:30:09 +01:00
dsa
net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
2023-10-10 21:46:44 +02:00
ethernet
r8169: fix rare issue with broken rx after link-down on RTL8125
2023-11-20 10:30:09 +01:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
2023-11-08 11:23:35 +01:00
ipvlan
ipvlan: properly track tx_errors
2023-11-20 10:30:10 +01:00
netdevsim
phy
net: phy: broadcom: stub c45 read/write for 54810
2023-08-30 16:27:20 +02:00
plip
ppp
slip
team
team: fix null-ptr-deref when team device type is changed
2023-10-10 21:46:37 +02:00
usb
r8152: Cancel hw_phy_work if we have an error in probe
2023-11-08 11:23:36 +01:00
vmxnet3
wan
drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
2023-10-10 21:46:43 +02:00
wimax
wireless
wifi: rtlwifi: fix EDCA limit set by BT coexistence
2023-11-20 10:30:09 +01:00
xen-netback
xen-netback: use default TX queue size for vifs
2023-10-25 11:53:18 +02:00
dummy.c
eql.c
geneve.c
gtp.c
gtp: fix fragmentation needed check with gso
2023-11-08 11:23:36 +01:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
net: add DEV_STATS_READ() helper
2023-11-20 10:30:10 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
net/net_failover: fix txq exceeding warning
2023-04-05 11:16:44 +02:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
net: tap_open(): set sk_uid from current_fsuid()
2023-08-11 11:53:59 +02:00
thunderbolt.c
net: thunderbolt: Fix TCPv6 GSO checksum calculation
2023-10-10 21:46:41 +02:00
tun.c
tun: prevent negative ifindex
2023-10-25 11:53:21 +02:00
veth.c
veth: Fixing transmit return status for dropped packets
2023-09-23 10:59:58 +02:00
virtio_net.c
virtio-net: set queues after driver_ok
2023-08-30 16:27:19 +02:00
vrf.c
vsockmon.c
vxlan.c
vxlan: generalize vxlan_parse_gpe_hdr and remove unused args
2023-09-23 10:59:38 +02:00
xen-netfront.c