[ovs-dev] [PATCH] datapath: Fix compiler warning for HAVE_RHEL7_MAX_MTU.

Justin Pettit jpettit at ovn.org
Tue Jun 19 21:11:17 UTC 2018


Signed-off-by: Justin Pettit <jpettit at ovn.org>
---
 datapath/vport-internal_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c
index 3fa86815c7fa..629965eab19f 100644
--- a/datapath/vport-internal_dev.c
+++ b/datapath/vport-internal_dev.c
@@ -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;
-- 
2.7.4



More information about the dev mailing list