diff options
author | Cong Wang <cwang@twopensource.com> | 2014-06-12 11:53:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-26 15:15:40 -0400 |
commit | d5570b211c0e04553c2774c459852425eb8c7172 (patch) | |
tree | 9d74992c82ac5c0db85f3b5b4cb9bc05240c32cc /net/ax25 | |
parent | 322a117adb270457d409535feaebe36ddfa23025 (diff) | |
download | linux-stable-d5570b211c0e04553c2774c459852425eb8c7172.tar.gz linux-stable-d5570b211c0e04553c2774c459852425eb8c7172.tar.bz2 linux-stable-d5570b211c0e04553c2774c459852425eb8c7172.zip |
vxlan: use dev->needed_headroom instead of dev->hard_header_len
[ Upstream commit 2853af6a2ea1a8ed09b09dd4fb578e7f435e8d34 ]
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" <davem@davemloft.net>
Cc: stephen hemminger <stephen@networkplumber.org>
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions