Re: [PATCH] net/bnxt: return -EBUSY if port is active during MTU change

2022-10-03 Thread Ajit Khaparde
On Thu, Sep 15, 2022 at 4:29 AM Benjamin Le Berre wrote: > > When the BNXT PMD was made to disallow MTU changes on active ports, the > error code chosen for the case in bnxt_set_mtu_op() was -EPERM. > > The doc comment for rte_eth_dev_set_mtu() in lib/ethdev/rte_ethdev.h > lists -EBUSY as the valu

[PATCH] net/bnxt: return -EBUSY if port is active during MTU change

2022-09-15 Thread Benjamin Le Berre
When the BNXT PMD was made to disallow MTU changes on active ports, the error code chosen for the case in bnxt_set_mtu_op() was -EPERM. The doc comment for rte_eth_dev_set_mtu() in lib/ethdev/rte_ethdev.h lists -EBUSY as the value to be used if the port must be stopped before applying an MTU chang