[ovs-git] [openvswitch/ovs] 283276: datapath: compat: Fix build on RHEL 7.5
GitHub
noreply at github.com
Tue May 15 03:15:26 UTC 2018
Branch: refs/heads/branch-2.8
Home: https://github.com/openvswitch/ovs
Commit: 28327610eb2b7be1c2b2c67d4a8f5d244aa74ac5
https://github.com/openvswitch/ovs/commit/28327610eb2b7be1c2b2c67d4a8f5d244aa74ac5
Author: Yi-Hung Wei <yihung.wei at gmail.com>
Date: 2018-05-14 (Mon, 14 May 2018)
Changed paths:
M acinclude.m4
M datapath/linux/compat/geneve.c
M datapath/linux/compat/ip_gre.c
M datapath/linux/compat/lisp.c
M datapath/linux/compat/stt.c
M datapath/linux/compat/vxlan.c
M datapath/vport-internal_dev.c
Log Message:
-----------
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 at gmail.com>
Acked-by: Lucas Alvares Gomes <lucasagomes at gmail.com>
Signed-off-by: Pravin B Shelar <pshelar at ovn.org>
**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the git
mailing list