Re: [dpdk-dev] [PATCH v6 2/2] librte_ethdev: fix MTU size exceeds max rx packet length

2020-10-22 Thread Ananyev, Konstantin
> > Update the MTU size according to the max rx packet and Ether overhead. > > Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") > > Signed-off-by: SteveX Yang > --- > lib/librte_ethdev/rte_ethdev.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/lib/librte_ethdev/rte_e

Re: [dpdk-dev] [PATCH v6 2/2] librte_ethdev: fix MTU size exceeds max rx packet length

2020-10-22 Thread Ferruh Yigit
On 10/22/2020 9:48 AM, SteveX Yang wrote: If max rx packet length is smaller then MTU + Ether overhead, that will drop all MTU size packets. Update the MTU size according to the max rx packet and Ether overhead. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Signed-off-by: SteveX Yang --- li

[dpdk-dev] [PATCH v6 2/2] librte_ethdev: fix MTU size exceeds max rx packet length

2020-10-22 Thread SteveX Yang
If max rx packet length is smaller then MTU + Ether overhead, that will drop all MTU size packets. Update the MTU size according to the max rx packet and Ether overhead. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Signed-off-by: SteveX Yang --- lib/librte_ethdev/rte_ethdev.c | 14 +++