datapath: Use kernel Geneve implementation on 4.0 and above.
authorJesse Gross <jesse@nicira.com>
Sun, 26 Apr 2015 00:00:11 +0000 (17:00 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 27 Apr 2015 03:57:38 +0000 (20:57 -0700)
commit15c69d2d8f52669a57dd49827fe4e585ebdda105
tree280a598ce87b254395cc47ad9d61f338a87eb627
parent7cbbd7adeea57f9b2310a6e6e7c0e5e034a51ee8
datapath: Use kernel Geneve implementation on 4.0 and above.

When Geneve was originally backported, it wasn't available as part
of a released kernel version but it is now, so we can take advantage
of the native implementation.

Note that Geneve was actually first available as part of the 3.18
kernel release but some drivers erroreously try to offload it as
if it were VXLAN, which was fixed in the 4.0 release. Since our
UDP tunnel compat layer already takes care of this, we continue
using the OVS Geneve implementation until 4.0.

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
datapath/linux/compat/geneve.c
datapath/linux/compat/include/net/geneve.h