xsk: Inherit need_wakeup flag for shared sockets
authorJalal Mostafa <jalal.a.mostapha@gmail.com>
Wed, 21 Sep 2022 13:57:01 +0000 (13:57 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 22 Sep 2022 15:16:22 +0000 (17:16 +0200)
commit60240bc26114543fcbfcd8a28466e67e77b20388
tree0d5a7fd46fb68f10361fb39e1757989d6f5347d7
parent8addbfc7b308d591f8a5f2f6bb24d08d9d79dfbb
xsk: Inherit need_wakeup flag for shared sockets

The flag for need_wakeup is not set for xsks with `XDP_SHARED_UMEM`
flag and of different queue ids and/or devices. They should inherit
the flag from the first socket buffer pool since no flags can be
specified once `XDP_SHARED_UMEM` is specified.

Fixes: b5aea28dca134 ("xsk: Add shared umem support between queue ids")
Signed-off-by: Jalal Mostafa <jalal.a.mostapha@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220921135701.10199-1-jalal.a.mostapha@gmail.com
include/net/xsk_buff_pool.h
net/xdp/xsk.c
net/xdp/xsk_buff_pool.c