Merge branch 'fix-bpf_redirect'
Martin KaFai Lau says:
====================
bpf: Fix bpf_redirect to an ipip/ip6tnl dev
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.
====================
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
samples/bpf/tc_l2_redirect.sh
0 → 100755
samples/bpf/tc_l2_redirect_kern.c
0 → 100644
samples/bpf/tc_l2_redirect_user.c
0 → 100644
想要评论请 注册 或 登录