[PATCH] net/nfp: add the restrict of setting the mtu

2022-03-22 Thread Peng Zhang
1.When the setting mtu is higher than flbufsz, the mtu doesn't work. But it doesn't have any notice about this restrict. 2.when the setting mtu isn't in the range, it doesn't have any notice. This patch will add the notice about these restrict. Signed-off-by: Peng Zhang Signed-off-by: Chaoyong H

Re: [PATCH] net/nfp: add the restrict of setting the mtu

2022-03-17 Thread Stephen Hemminger
On Thu, 17 Mar 2022 16:39:17 +0200 Peng Zhang wrote: > + /* the setting mtu is in the range */ > + if (mtu < 68 || mtu > hw->max_mtu) { > + PMD_DRV_LOG(ERR, "the setting mtu cannot be less than 68 or > more than %d", > + hw->max_mtu); > + r

[PATCH] net/nfp: add the restrict of setting the mtu

2022-03-17 Thread Peng Zhang
1.When the setting mtu is higher than flbufsz, the mtu doesn't work. But it doesn't have any notice about this restrict. 2.when the setting mtu isn't in the range, it doesn't have any notice. This patch will add the notice about these restrict. Signed-off-by: Peng Zhang Signed-off-by: Chaoyong H