Skip to content

Commit

Permalink
datapath: Fix max MTU size on RHEL 7.5 kernel
Browse files Browse the repository at this point in the history
Without the patch, in RHEL 7.5, the maximum configurable MTU of vport
internal device is 1500, which shall be 65535.  This patch fixes this
issue.

Fixes: 39ca338 ("datapath: compat: Fix build on RHEL 7.5")
Reported-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Tested-by: Greg Rose <gvrose8192@gmail.com>
  • Loading branch information
YiHungWei authored and blp committed Jun 14, 2018
1 parent abd0d80 commit 1e40b54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datapath/vport-internal_dev.c
Expand Up @@ -169,6 +169,8 @@ 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
netdev->extended->max_mtu = ETH_MAX_MTU;
#endif
netdev->netdev_ops = &internal_dev_netdev_ops;

Expand Down

0 comments on commit 1e40b54

Please sign in to comment.