From: Herbert Xu Date: Fri, 17 Apr 2015 05:32:09 +0000 (+0800) Subject: act_mirred: Fix bogus header when redirecting from VLAN X-Git-Tag: omap-for-v4.2/o2_dc~98^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f40ae91307c275fc8b17420fa74145e9937c3c0b;p=pandora-kernel.git act_mirred: Fix bogus header when redirecting from VLAN When you redirect a VLAN device to any device, you end up with crap in af_packet on the xmit path because hard_header_len is not equal to skb->mac_len. So the redirected packet contains four extra bytes at the start which then gets interpreted as part of the MAC address. This patch fixes this by only pushing skb->mac_len. We also need to fix ifb because it tries to undo the pushing done by act_mirred. Signed-off-by: Herbert Xu Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- Reading git-diff-tree failed