[Zesty][PATCH] openvswitch: Set internal device max mtu to ETH_MAX_MTU.
Stefan Bader
stefan.bader at canonical.com
Thu May 18 09:26:12 UTC 2017
On 12.05.2017 17:40, Wen-chien Jesse Sung wrote:
> From: Jarno Rajahalme <jarno at ovn.org>
>
> BugLink: https://launchpad.net/bugs/1679823
>
> Commit 91572088e3fd ("net: use core MTU range checking in core net
> infra") changed the openvswitch internal device to use the core net
> infra for controlling the MTU range, but failed to actually set the
> max_mtu as described in the commit message, which now defaults to
> ETH_DATA_LEN.
>
> This patch fixes this by setting max_mtu to ETH_MAX_MTU after
> ether_setup() call.
>
> Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
> Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
> Signed-off-by: David S. Miller <davem at davemloft.net>
> (cherry picked from commit 425df17ce3a26d98f76e2b6b0af2acf4aeb0b026)
This patch is part of the 4.10.16 upstream stable update.
-Stefan
> Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
> ---
> net/openvswitch/vport-internal_dev.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
> index d5d6cae..695acd2 100644
> --- a/net/openvswitch/vport-internal_dev.c
> +++ b/net/openvswitch/vport-internal_dev.c
> @@ -151,6 +151,8 @@ static void do_setup(struct net_device *netdev)
> {
> ether_setup(netdev);
>
> + netdev->max_mtu = ETH_MAX_MTU;
> +
> netdev->netdev_ops = &internal_dev_netdev_ops;
>
> netdev->priv_flags &= ~IFF_TX_SKB_SHARING;
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20170518/b3cd6966/attachment.sig>
More information about the kernel-team
mailing list