Skip to content

Commit

Permalink
datapath: Fix compiler warning for HAVE_RHEL7_MAX_MTU.
Browse files Browse the repository at this point in the history
Fixes: 1e40b54 ("datapath: Fix max MTU size on RHEL 7.5 kernel")
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
  • Loading branch information
justinpettit committed Jun 20, 2018
1 parent 3429311 commit b599748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapath/vport-internal_dev.c
Expand Up @@ -169,7 +169,7 @@ static void do_setup(struct net_device *netdev)

#ifdef HAVE_NET_DEVICE_WITH_MAX_MTU
netdev->max_mtu = ETH_MAX_MTU;
#elif HAVE_RHEL7_MAX_MTU
#elif defined(HAVE_RHEL7_MAX_MTU)
netdev->extended->max_mtu = ETH_MAX_MTU;
#endif
netdev->netdev_ops = &internal_dev_netdev_ops;
Expand Down

0 comments on commit b599748

Please sign in to comment.