linux-stable/drivers
Cambda Zhu 707e56abc6 ipvlan: Fix return value of ipvlan_queue_xmit()
[ Upstream commit 8a9922e7be ]

ipvlan_queue_xmit() should return NET_XMIT_XXX, but
ipvlan_xmit_mode_l2/l3() returns rx_handler_result_t or NET_RX_XXX
in some cases. ipvlan_rcv_frame() will only return RX_HANDLER_CONSUMED
in ipvlan_xmit_mode_l2/l3() because 'local' is true. It's equal to
NET_XMIT_SUCCESS. But dev_forward_skb() can return NET_RX_SUCCESS or
NET_RX_DROP, and returning NET_RX_DROP(NET_XMIT_DROP) will increase
both ipvlan and ipvlan->phy_dev drops counter.

The skb to forward can be treated as xmitted successfully. This patch
makes ipvlan_queue_xmit() return NET_XMIT_SUCCESS for forward skb.

Fixes: 2ad7bf3638 ("ipvlan: Initial check-in of the IPVLAN driver.")
Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230626093347.7492-1-cambda@linux.alibaba.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-11 19:39:32 +02:00
..
accel accel/ivpu: Fix sporadic VPU boot failure 2023-06-14 11:16:57 +02:00
accessibility
acpi APEI: GHES: correctly return NULL for ghes_get_devices() 2023-07-11 19:39:24 +02:00
amba
android binder: fix UAF of alloc->vma in race with munmap() 2023-05-30 14:17:23 +01:00
ata ata: libata-scsi: Avoid deadlock on rescan after device resume 2023-06-28 11:13:57 +02:00
atm
auxdisplay
base PM: domains: Move the verification of in-params from genpd_add_device() 2023-07-11 19:39:24 +02:00
bcma
block null_blk: Fix: memory release when memory_backed=1 2023-06-28 11:14:23 +02:00
bluetooth Bluetooth: hci_qca: fix debugfs registration 2023-06-14 11:16:58 +02:00
bus
cdrom
char tpm, tpm_tis: Claim locality in interrupt handler 2023-06-28 11:13:57 +02:00
clk clk: pxa: fix NULL pointer dereference in pxa3xx_clk_update_accr 2023-06-21 16:02:12 +02:00
clocksource clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe 2023-07-11 19:39:23 +02:00
comedi
connector
counter
cpufreq cpufreq: intel_pstate: Fix energy_performance_preference for passive 2023-07-11 19:39:24 +02:00
cpuidle
crypto crypto: sun8i-ss - Fix a test in sun8i_ss_setup_ivs() 2023-05-17 14:01:50 +02:00
cxl Revert "cxl/port: Enable the HDM decoder capability for switch ports" 2023-07-05 18:29:23 +01:00
dax
dca
devfreq
dio
dma dmaengine: at_hdmac: Extend the Flow Controller bitfield to three bits 2023-06-09 10:48:19 +02:00
dma-buf udmabuf: revert 'Add support for mapping hugepages (v4)' 2023-06-28 11:13:58 +02:00
edac EDAC/qcom: Get rid of hardcoded register offsets 2023-06-21 16:02:05 +02:00
eisa
extcon
firewire firewire: net: fix unexpected release of object for asynchronous request packet 2023-05-17 14:02:03 +02:00
firmware Revert "efi: random: refresh non-volatile random seed when RNG is initialized" 2023-06-28 11:13:58 +02:00
fpga
fsi
gnss
gpio gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain() 2023-06-28 11:14:18 +02:00
gpu drm: use mgr->dev in drm_dbg_kms in drm_dp_add_payload_part2 2023-07-11 19:39:21 +02:00
greybus
hid HID: logitech-hidpp: add HIDPP_QUIRK_DELAYED_INIT for the T651. 2023-07-01 13:14:47 +02:00
hsi
hte hte: tegra-194: Fix off by one in tegra_hte_map_to_line_id() 2023-05-11 23:17:36 +09:00
hv Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs 2023-06-28 11:14:05 +02:00
hwmon hwmon: (k10temp) Add PCI ID for family 19, model 78h 2023-06-09 10:48:00 +02:00
hwspinlock
hwtracing coresight: perf: Release Coresight path when alloc trace id failed 2023-06-05 09:29:29 +02:00
i2c i2c: imx-lpi2c: fix type char overflow issue when calculating the clock cycle 2023-06-28 11:14:24 +02:00
i3c
idle
iio iio: dac: build ad5758 driver when AD5758 is selected 2023-06-09 10:48:15 +02:00
infiniband RDMA/rxe: Fix rxe_cq_post 2023-06-21 16:02:17 +02:00
input Input: soc_button_array - add invalid acpi_index DMI quirk handling 2023-06-28 11:14:20 +02:00
interconnect
iommu mm: always expand the stack with the mmap write lock held 2023-07-01 13:14:46 +02:00
ipack
irqchip irqchip/jcore-aic: Fix missing allocation of IRQ descriptors 2023-07-11 19:39:23 +02:00
isdn
leds leds: tca6507: Fix error handling of using fwnode_property_read_string 2023-05-11 23:17:35 +09:00
macintosh
mailbox mailbox: mailbox-test: fix a locking issue in mbox_test_message_write() 2023-06-09 10:48:11 +02:00
mcb mcb-pci: Reallocate memory region to avoid memory overlapping 2023-05-24 17:30:10 +01:00
md md/raid1-10: submit write io directly if bitmap is not enabled 2023-07-11 19:39:22 +02:00
media media: cec: core: don't set last_initiator if tx in progress 2023-06-28 11:14:19 +02:00
memory
memstick memstick r592: make memstick_debug_get_tpc_name() static 2023-07-11 19:39:29 +02:00
message scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition 2023-05-24 17:30:05 +01:00
mfd mfd: intel-lpss: Add Intel Meteor Lake PCH-S LPSS PCI IDs 2023-05-24 17:30:12 +01:00
misc eeprom: at24: also select REGMAP 2023-06-14 11:17:03 +02:00
mmc mmc: Add MMC_QUIRK_BROKEN_SD_CACHE for Kingston Canvas Go Plus from 11/2019 2023-07-11 19:39:30 +02:00
most
mtd mtdchar: mark bits of ioctl handler noinline 2023-06-09 10:48:20 +02:00
mux
net ipvlan: Fix return value of ipvlan_queue_xmit() 2023-07-11 19:39:32 +02:00
nfc nfcsim.c: Fix error checking for debugfs_create_dir 2023-06-28 11:14:19 +02:00
ntb
nubus nubus: Partially revert proc_create_single_data() conversion 2023-07-05 18:29:23 +01:00
nvdimm
nvme nvme-core: fix dev_pm_qos memleak 2023-07-11 19:39:22 +02:00
nvmem
of of: overlay: Fix missing of_node_put() in error case of init_overlay_changeset() 2023-06-21 16:02:05 +02:00
opp
parisc parisc: Replace regular spinlock with spin_trylock on panic path 2023-05-24 17:30:12 +01:00
parport
pci PCI/ACPI: Call _REG when transitioning D-states 2023-07-05 18:29:23 +01:00
pcmcia
peci
perf perf/arm_cspmu: Fix event attribute type 2023-07-11 19:39:24 +02:00
phy phy: qcom-qmp-pcie-msm8996: fix init-count imbalance 2023-06-09 10:48:18 +02:00
pinctrl pinctrl: meson-axg: add missing GPIOA_18 gpio group 2023-06-14 11:16:59 +02:00
platform platform/x86: int3472: Avoid crash in unregistering regulator gpio 2023-06-28 11:14:21 +02:00
pnp
power power: supply: Fix logic checking if system is running from battery 2023-06-21 16:02:06 +02:00
powercap powercap: RAPL: Fix CONFIG_IOSF_MBI dependency 2023-07-11 19:39:24 +02:00
pps
ps3
ptp
pwm pwm: mtk-disp: Configure double buffering before reading in .get_state() 2023-05-11 23:17:35 +09:00
rapidio
ras
regulator regulator: core: Streamline debugfs operations 2023-07-11 19:39:27 +02:00
remoteproc firmware: qcom_scm: Use fixed width src vm bitmap 2023-06-09 10:48:18 +02:00
reset
rpmsg
rtc rtc: jz4740: Make sure clock provider gets removed 2023-05-11 23:17:34 +09:00
s390 s390/cio: unregister device when the only path is gone 2023-06-28 11:14:20 +02:00
sbus
scsi scsi: stex: Fix gcc 13 warnings 2023-06-09 10:48:16 +02:00
sh
siox
slimbus
soc qcom: llcc/edac: Fix the base address used for accessing LLCC banks 2023-06-21 16:02:05 +02:00
soundwire soundwire: qcom: add proper error paths in qcom_swrm_startup() 2023-06-28 11:14:21 +02:00
spi spi: dw: Round of n_bytes to power of 2 2023-07-11 19:39:27 +02:00
spmi
ssb
staging Revert "staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE" 2023-06-14 11:17:05 +02:00
target scsi: target: iscsi: Prevent login threads from racing between each other 2023-06-28 11:14:18 +02:00
tc
tee tee: amdtee: Add return_origin to 'struct tee_cmd_load_ta' 2023-06-14 11:16:58 +02:00
thermal thermal/drivers/qoriq: Only enable supported sensors 2023-07-11 19:39:25 +02:00
thunderbolt thunderbolt: Mask ring interrupt on Intel hardware as well 2023-06-21 16:02:11 +02:00
tty tty: serial: fsl_lpuart: reduce RX watermark to 0 on LS1028A 2023-06-21 16:02:12 +02:00
ufs scsi: ufs: core: Fix MCQ nr_hw_queues 2023-06-09 10:48:08 +02:00
uio
usb usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 11:14:19 +02:00
vdpa vdpa/mlx5: Fix hang when cvq commands are triggered during device unregister 2023-06-14 11:17:03 +02:00
vfio vfio/type1: check pfn valid before converting to struct page 2023-06-05 09:29:44 +02:00
vhost vhost_net: revert upend_idx only on retriable error 2023-06-28 11:14:23 +02:00
video fbdev: fix potential OOB read in fast_imageblit() 2023-07-01 13:14:46 +02:00
virt virt: sevguest: Add CONFIG_CRYPTO dependency 2023-07-11 19:39:21 +02:00
virtio
vlynq
w1
watchdog watchdog: menz069_wdt: fix watchdog initialisation 2023-06-09 10:47:58 +02:00
xen xen/pvcalls-back: fix double frees with pvcalls_new_active_socket() 2023-05-30 14:17:26 +01:00
zorro
Kconfig
Makefile