Re: [PATCH] net/netvsc: add support for mtu_set

2023-10-30 Thread Rahul Gupta

RE: [EXTERNAL] Re: [PATCH] net/netvsc: add support for mtu_set

2023-10-09 Thread Sam Andrew
Hi Stephen, From: Stephen Hemminger Sent: Monday, October 9, 2023 8:18 AM > On Thu, 5 Oct 2023 23:17:28 + > Sam Andrew 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_m

Re: [PATCH] net/netvsc: add support for mtu_set

2023-10-09 Thread Stephen Hemminger
On Thu, 5 Oct 2023 23:17:28 + Sam Andrew 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;

[PATCH] net/netvsc: add support for mtu_set

2023-10-05 Thread Sam Andrew
Add support for changing the netvsc MTU. The MTU can only be set at nvs initialization, therefore to change the MTU the underlying vmbus channel(s) are torn down and the vmbus device unmapped and remapped. The existing rx and tx queue(s) are reconnected to the new vmbus channel(s). Signed-off-by: