[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ecc2fd8e646147fabb30d3120c889431@DFM-DB3MBX15-06.exchange.corp.microsoft.com>
Date: Wed, 12 Nov 2014 20:02:11 +0000
From: Haiyang Zhang <haiyangz@...rosoft.com>
To: David Miller <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
KY Srinivasan <kys@...rosoft.com>,
"olaf@...fle.de" <olaf@...fle.de>,
"jasowang@...hat.com" <jasowang@...hat.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"driverdev-devel@...uxdriverproject.org"
<driverdev-devel@...uxdriverproject.org>
Subject: RE: [PATCH net-next] hyperv: Add processing of MTU reduced by the
host
> -----Original Message-----
> From: David Miller [mailto:davem@...emloft.net]
> Sent: Wednesday, November 12, 2014 2:47 PM
> To: Haiyang Zhang
> Cc: netdev@...r.kernel.org; KY Srinivasan; olaf@...fle.de;
> jasowang@...hat.com; linux-kernel@...r.kernel.org; driverdev-
> devel@...uxdriverproject.org
> Subject: Re: [PATCH net-next] hyperv: Add processing of MTU reduced by
> the host
>
> From: Haiyang Zhang <haiyangz@...rosoft.com>
> Date: Tue, 11 Nov 2014 15:27:52 -0800
>
> > - if (mtu < 68 || mtu > limit)
> > + if (mtu < ETH_DATA_LEN || mtu > limit)
> > return -EINVAL;
>
> This is not correct.
>
> The test is against the minimally supported MTU, which should
> be 68 not ETH_DATA_LEN which is 1500.
The Hyper-V host doesn't support MTU below 1500. If we try setting MTU to a
value < 1500, the host will use 1500 automatically and return 1500 in the
RNDIS_OID_GEN_MAXIMUM_FRAME_SIZE query and guest will also use it. That's
why I set the lower limit to ETH_DATA_LEN.
Are you suggesting that we keep the 68 as the lower limit, and let the host
auto-reset it to 1500 when we trying to set an MTU < 1500?
Thanks,
- Haiyang
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists