[PATCH] net/netvsc: add support for mtu_set

Stephen Hemminger stephen at networkplumber.org
Mon Oct 9 17:17:37 CEST 2023


On Thu, 5 Oct 2023 23:17:28 +0000
Sam Andrew <samandrew at microsoft.com> wrote:

> +
> +static int
> +hn_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
> +{
> +	struct hn_data *hv = dev->data->dev_private;
> +	unsigned int orig_mtu = dev->data->mtu;
> +	uint32_t rndis_mtu;
> +	int ret = 0;
> +	int i;
> +
> +	if (dev->data->dev_started) {
> +		PMD_DRV_LOG(ERR, "Device must be stopped before changing MTU");
> +		return -EIO;
> +	}
> +

It looks like this proposed patch does not have the accelerated networking
virtual device case.  The driver needs to first update the MTU of the underlying
VF device (and handle errors), then reinit the vmbus device.


More information about the dev mailing list