mbox series

[net,v6,0/2] fix bpf_redirect to ifb netdev

Message ID 20220324135653.2189-1-xiangxia.m.yue@gmail.com (mailing list archive)
Headers show
Series fix bpf_redirect to ifb netdev | expand

Message

Tonghao Zhang March 24, 2022, 1:56 p.m. UTC
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>

This patchset try to fix bpf_redirect to ifb netdev.

Tonghao Zhang (2):
  net: core: set skb useful vars in __bpf_tx_skb
  selftests: bpf: add bpf_redirect to ifb

 net/core/filter.c                             |  8 +++
 tools/testing/selftests/bpf/Makefile          |  1 +
 .../bpf/progs/test_bpf_redirect_ifb.c         | 13 ++++
 .../selftests/bpf/test_bpf_redirect_ifb.sh    | 64 +++++++++++++++++++
 4 files changed, 86 insertions(+)
 create mode 100644 tools/testing/selftests/bpf/progs/test_bpf_redirect_ifb.c
 create mode 100755 tools/testing/selftests/bpf/test_bpf_redirect_ifb.sh