diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2017-01-03 16:26:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-03 10:58:43 -0500 |
commit | 096de2f83ebc8e0404c5b7e847a4abd27b9739da (patch) | |
tree | 61d0cac760c247bfe085ac830ee638f8e78ffebf /net | |
parent | 5350d54f6cd12eaff623e890744c79b700bd3f17 (diff) | |
download | linux-096de2f83ebc8e0404c5b7e847a4abd27b9739da.tar.bz2 |
benet: stricter vxlan offloading check in be_features_check
When VXLAN offloading is enabled, be_features_check() tries to check if
an encapsulated packet is indeed a VXLAN packet. The check is not strict
enough, and considers any UDP-encapsulated ethernet frame with a 8-byte
tunnel header as being VXLAN. Unfortunately, both GENEVE and VXLAN-GPE
have a 8-byte header, so they get through this check.
Force the UDP destination port to be the one that has been offloaded to
hardware.
Without this, GENEVE-encapsulated packets can end up having an incorrect
checksum when both a GENEVE and a VXLAN (offloaded) tunnel are
configured.
This is similar to commit a547224dceed ("mlx4e: Do not attempt to
offload VXLAN ports that are unrecognized").
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions