[ovs-dev] [PATCH v2] datapath: compat: Fix build on RHEL 7.5

Pravin Shelar pshelar at ovn.org
Tue May 15 03:17:01 UTC 2018


On Fri, May 11, 2018 at 10:32 AM, Yi-Hung Wei <yihung.wei at gmail.com> wrote:
> 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>

Thanks.
I pushed patch to master and 2.9 and 2.8 where the original MTU patch
(commit 6c0bf091) is applied.


More information about the dev mailing list