]> git.proxmox.com Git - ovs.git/commit
compat: Fix gre header bug
authorGreg Rose <gvrose8192@gmail.com>
Fri, 29 Jun 2018 03:31:25 +0000 (20:31 -0700)
committerJustin Pettit <jpettit@ovn.org>
Fri, 29 Jun 2018 16:07:46 +0000 (09:07 -0700)
commit56174c2bf4577eacdfaef8c77ea82c99e29e4a30
tree14cfc8b551f508fdac83dbca292d169b7a0032b3
parent4c0583dba0989c132af69807b6c7c1b6e9e5f8be
compat: Fix gre header bug

Commit 436d36db introduced a bug into the gre header build for gre and
ip gre type tunnels.  __vlan_hwaccel_push_inside does not check whether
the vlan tag is even present.  So check first and avoid padding space
for a vlan tag that isn't present.

Fixes: 436d36db ("compat: Fixups for newer kernels")
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
datapath/linux/compat/ip_gre.c