bpf: Fix bpf_redirect to an ipip/ip6tnl dev
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Fix bpf_redirect to an ipip/ip6tnl devinclude/ net/ net/ | +81 | 4 replies | |
| 2/2 | bpf: Add test for bpf_redirect to ipip/ip6tnlsamples/ samples/ samples/ +1 more | +486 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Borkmann | Alexei Starovoitov |
|---|---|---|
| 1/2 | A-b | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/2] bpf: Fix bpf_redirect to an ipip/ip6tnl dev
Hi,
This patch set fixes a bug in bpf_redirect(dev, flags) when dev is an ipip/ip6tnl. The current problem is IP-EthHdr-IP is sent out instead of IP-IP.
Patch 1 adds a dev->type test similar to dev_is_mac_header_xmit() in act_mirred.c which is only available in net-next. We can consider to refactor it once this patch is pulled into net-next from net.
Thanks,
-- Martin