]> 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)
commite3045600ff2a39c5c4ed60016250140902a41e77
tree0d5a7fd46fb68f10361fb39e1757989d6f5347d7
parent9d674861c77d47272510c9c250c7ab588c3686dd
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: f5f7594d1f68f ("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