]> git.proxmox.com Git - mirror_ovs.git/commit
datapath: compat: Fix build on RHEL 7.5
authorYi-Hung Wei <yihung.wei@gmail.com>
Fri, 11 May 2018 17:32:12 +0000 (10:32 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Tue, 15 May 2018 01:36:18 +0000 (18:36 -0700)
commit39ca338374abe367e28a2247bac9159695f19710
treed0452b4a25f936d602a78d4ce1ab7f9d5b87137b
parentc6d872013786253377ef7ac279d1a386f958ed7f
datapath: compat: Fix build on RHEL 7.5

1) OVS datapath compat modules breaks on RHEL 7.5, because it moves
ndo_change_mtu function pointer from 'struct net_device_ops' to
'struct net_device_ops_extended'.

2) RHEL 7.5 introduces the MTU range checking as mentioned in
6c0bf091 ("datapath: use core MTU range checking in core net infra").
However, the max_mtu field is defined in 'struct net_device_extended'
but not in 'struct net_device' as upstream kernel.

This patch defines a new symbol HAVE_RHEL7_MAX_MTU that determines
the previous 2 conditions, and fixes the backport issue.

Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Acked-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
acinclude.m4
datapath/linux/compat/geneve.c
datapath/linux/compat/ip_gre.c
datapath/linux/compat/lisp.c
datapath/linux/compat/stt.c
datapath/linux/compat/vxlan.c
datapath/vport-internal_dev.c