mbox series

[bpf,v3,0/2] bpf: Fix l3 to l2 use of bpf_skb_change_head

Message ID 20210518142356.1852779-1-joamaki@gmail.com (mailing list archive)
Headers show
Series bpf: Fix l3 to l2 use of bpf_skb_change_head | expand

Message

Jussi Maki May 18, 2021, 2:23 p.m. UTC
This fixes an issue with using bpf_skb_change_head to redirect
packet from l3 to l2 device. See commit messages for details.

v2->v3:
- Refactor test_tc_redirect_peer_l3 to use BPF for passing packets
  to both directions instead of relying on forwarding on the way back.
- Clean up of tc_redirect test. Setup and tear down namespaces for each
  test case and avoid a more complex cleanup when tearing down the
  namespace is enough.

v1->v2:
- Port the test case to the newly refactored prog_tests/tc_redirect.c.