]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52aafd4bd91e6a5f99eebb1f68b14d3bcccfba53
tree0d5a7fd46fb68f10361fb39e1757989d6f5347d7
parentc522fd92f4787764821b8d31caf9f46f1b1ab815
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: b3555f580fe74 ("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