acrn-kernel/net/xdp
Yewon Choi 2c0cbb97b1 xsk: Skip polling event check for unbound socket
[ Upstream commit e4d008d49a7135214e0ee70537405b6a069e3a3f ]

In xsk_poll(), checking available events and setting mask bits should
be executed only when a socket has been bound. Setting mask bits for
unbound socket is meaningless.

Currently, it checks events even when xsk_check_common() failed.
To prevent this, we move goto location (skip_tx) after that checking.

Fixes: 1596dae2f1 ("xsk: check IFF_UP earlier in Tx path")
Signed-off-by: Yewon Choi <woni9911@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20231201061048.GA1510@libra05
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-13 18:39:08 +01:00
..
Kconfig
Makefile
xdp_umem.c
xdp_umem.h
xsk.c xsk: Skip polling event check for unbound socket 2023-12-13 18:39:08 +01:00
xsk.h
xsk_buff_pool.c
xsk_diag.c xsk: Fix xsk_diag use-after-free error during socket cleanup 2023-09-19 12:28:01 +02:00
xsk_queue.c
xsk_queue.h
xskmap.c