[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200223.161527.1752185646569467874.davem@davemloft.net>
Date: Sun, 23 Feb 2020 16:15:27 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dnlplm@...il.com
Cc: bjorn@...k.no, netdev@...r.kernel.org
Subject: Re: [PATCH 1/1] net: usb: qmi_wwan: restore mtu min/max values
after raw_ip switch
From: Daniele Palmas <dnlplm@...il.com>
Date: Fri, 21 Feb 2020 14:17:05 +0100
> usbnet creates network interfaces with min_mtu = 0 and
> max_mtu = ETH_MAX_MTU.
>
> These values are not modified by qmi_wwan when the network interface
> is created initially, allowing, for example, to set mtu greater than 1500.
>
> When a raw_ip switch is done (raw_ip set to 'Y', then set to 'N') the mtu
> values for the network interface are set through ether_setup, with
> min_mtu = ETH_MIN_MTU and max_mtu = ETH_DATA_LEN, not allowing anymore to
> set mtu greater than 1500 (error: mtu greater than device maximum).
>
> The patch restores the original min/max mtu values set by usbnet after a
> raw_ip switch.
>
> Signed-off-by: Daniele Palmas <dnlplm@...il.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists