From: Cong Wang Date: Thu, 12 Jun 2014 18:53:10 +0000 (-0700) Subject: vxlan: use dev->needed_headroom instead of dev->hard_header_len X-Git-Tag: omap-for-v3.16/fixes-against-rc1~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2853af6a2ea1a;p=pandora-kernel.git vxlan: use dev->needed_headroom instead of dev->hard_header_len When we mirror packets from a vxlan tunnel to other device, the mirror device should see the same packets (that is, without outer header). Because vxlan tunnel sets dev->hard_header_len, tcf_mirred() resets mac header back to outer mac, the mirror device actually sees packets with outer headers Vxlan tunnel should set dev->needed_headroom instead of dev->hard_header_len, like what other ip tunnels do. This fixes the above problem. Cc: "David S. Miller" Cc: stephen hemminger Cc: Pravin B Shelar Signed-off-by: Cong Wang Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed