]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'fix-bpf_redirect'
authorDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 04:38:08 +0000 (23:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 04:38:08 +0000 (23:38 -0500)
commitb1b63f7718633ab2a1b89d02d8ab4f02f2096edd
tree5732e718ec730c9da67ad4521dca5bfd2068c2d0
parent0eaf5a138cf29f61751bd4d61fb83a5bc659789d
parent0587210b78ba31a9a0779de48d4b049f55f2e622
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: David S. Miller <davem@davemloft.net>