Re: [PATCH net 0/2] bpf: Fix bpf_redirect to an ipip/ip6tnl dev

2016-11-12 Thread David Miller
From: Martin KaFai Lau Date: Wed, 9 Nov 2016 15:36:32 -0800 > 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_m

[PATCH net 0/2] bpf: Fix bpf_redirect to an ipip/ip6tnl dev

2016-11-09 Thread Martin KaFai Lau
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 refa