Revision 0bfc0336e1348883fdab4689f0c8c56458f36dd8 authored by Daniel Borkmann on 05 March 2024, 09:08:29 UTC, committed by Alexei Starovoitov on 06 March 2024, 00:19:42 UTC
Adjust the XDP feature flags for the bond device when no bond slave
devices are attached. After 9b0ed890ac2a ("bonding: do not report
NETDEV_XDP_ACT_XSK_ZEROCOPY"), the empty bond device must report 0
as flags instead of NETDEV_XDP_ACT_MASK.

  # ./vmtest.sh -- ./test_progs -t xdp_bond
  [...]
  [    3.983311] bond1 (unregistering): (slave veth1_1): Releasing backup interface
  [    3.995434] bond1 (unregistering): Released all slaves
  [    4.022311] bond2: (slave veth2_1): Releasing backup interface
  #507/1   xdp_bonding/xdp_bonding_attach:OK
  #507/2   xdp_bonding/xdp_bonding_nested:OK
  #507/3   xdp_bonding/xdp_bonding_features:OK
  #507/4   xdp_bonding/xdp_bonding_roundrobin:OK
  #507/5   xdp_bonding/xdp_bonding_activebackup:OK
  #507/6   xdp_bonding/xdp_bonding_xor_layer2:OK
  #507/7   xdp_bonding/xdp_bonding_xor_layer23:OK
  #507/8   xdp_bonding/xdp_bonding_xor_layer34:OK
  #507/9   xdp_bonding/xdp_bonding_redirect_multi:OK
  #507     xdp_bonding:OK
  Summary: 1/9 PASSED, 0 SKIPPED, 0 FAILED
  [    4.185255] bond2 (unregistering): Released all slaves
  [...]

Fixes: 9b0ed890ac2a ("bonding: do not report NETDEV_XDP_ACT_XSK_ZEROCOPY")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Message-ID: <20240305090829.17131-2-daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent f267f26
History
File Mode Size
Makefile -rw-r--r-- 425 bytes
advise.c -rw-r--r-- 2.3 KB
advise.h -rw-r--r-- 316 bytes
alloc_cache.h -rw-r--r-- 1.4 KB
cancel.c -rw-r--r-- 8.1 KB
cancel.h -rw-r--r-- 721 bytes
epoll.c -rw-r--r-- 1.3 KB
epoll.h -rw-r--r-- 213 bytes
fdinfo.c -rw-r--r-- 6.7 KB
fdinfo.h -rw-r--r-- 100 bytes
filetable.c -rw-r--r-- 4.0 KB
filetable.h -rw-r--r-- 2.2 KB
fs.c -rw-r--r-- 6.8 KB
fs.h -rw-r--r-- 929 bytes
futex.c -rw-r--r-- 9.4 KB
futex.h -rw-r--r-- 1.1 KB
io-wq.c -rw-r--r-- 32.6 KB
io-wq.h -rw-r--r-- 2.1 KB
io_uring.c -rw-r--r-- 111.0 KB
io_uring.h -rw-r--r-- 11.3 KB
kbuf.c -rw-r--r-- 19.6 KB
kbuf.h -rw-r--r-- 4.0 KB
msg_ring.c -rw-r--r-- 7.5 KB
msg_ring.h -rw-r--r-- 226 bytes
net.c -rw-r--r-- 38.8 KB
net.h -rw-r--r-- 2.2 KB
nop.c -rw-r--r-- 498 bytes
nop.h -rw-r--r-- 168 bytes
notif.c -rw-r--r-- 2.2 KB
notif.h -rw-r--r-- 1.3 KB
opdef.c -rw-r--r-- 15.3 KB
opdef.h -rw-r--r-- 1.5 KB
openclose.c -rw-r--r-- 7.3 KB
openclose.h -rw-r--r-- 754 bytes
poll.c -rw-r--r-- 28.6 KB
poll.h -rw-r--r-- 1.3 KB
refs.h -rw-r--r-- 1.2 KB
register.c -rw-r--r-- 13.7 KB
register.h -rw-r--r-- 218 bytes
rsrc.c -rw-r--r-- 25.8 KB
rsrc.h -rw-r--r-- 3.9 KB
rw.c -rw-r--r-- 29.9 KB
rw.h -rw-r--r-- 1.0 KB
slist.h -rw-r--r-- 2.7 KB
splice.c -rw-r--r-- 2.9 KB
splice.h -rw-r--r-- 306 bytes
sqpoll.c -rw-r--r-- 10.2 KB
sqpoll.h -rw-r--r-- 830 bytes
statx.c -rw-r--r-- 1.6 KB
statx.h -rw-r--r-- 217 bytes
sync.c -rw-r--r-- 2.8 KB
sync.h -rw-r--r-- 460 bytes
tctx.c -rw-r--r-- 7.4 KB
tctx.h -rw-r--r-- 992 bytes
timeout.c -rw-r--r-- 18.0 KB
timeout.h -rw-r--r-- 1.2 KB
uring_cmd.c -rw-r--r-- 7.3 KB
uring_cmd.h -rw-r--r-- 231 bytes
waitid.c -rw-r--r-- 9.2 KB
waitid.h -rw-r--r-- 484 bytes
xattr.c -rw-r--r-- 5.6 KB
xattr.h -rw-r--r-- 654 bytes

back to top