numam-dpdk/drivers/net/nfp
Peng Zhang dbad6f64f9 net/nfp: fix internal buffer size and MTU check
When MTU is bigger than hw->flbufsz, it can't work. hw->flbufsz is set
in the nfp_net_rx_queue_setup().

At first, in the nfp_net_configure(), the hw->flbufsz isn't set the
value, it just judge the initialized value and MTU, it is unreasonable.

Now, it just check the MTU can't be more than the NFP_FRAME_SIZE_MAX in
the nfp_net_configure(), when hw->flbufsz is set the value, in the
nfp_net_start(), judge the hw->flbufsz and MTU.

Fixes: 5c305e218f ("net/nfp: fix initialization")
Cc: stable@dpdk.org

Signed-off-by: Peng Zhang <peng.zhang@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
2022-10-21 11:56:59 +02:00
..
flower net/nfp: add representor port Rx/Tx 2022-10-05 18:09:21 +02:00
nfpcore net/nfp: add flower ctrl VNIC 2022-10-05 18:09:21 +02:00
meson.build net/nfp: add flower representor framework 2022-10-05 18:09:21 +02:00
nfp_common.c net/nfp: fix internal buffer size and MTU check 2022-10-21 11:56:59 +02:00
nfp_common.h net/nfp: support RSS on VXLAN inner layer 2022-10-17 14:11:39 +02:00
nfp_cpp_bridge.c net/nfp: add initial flower firmware support 2022-10-05 18:09:21 +02:00
nfp_cpp_bridge.h net/nfp: add initial flower firmware support 2022-10-05 18:09:21 +02:00
nfp_ctrl.h net/nfp: modify RSS logic 2022-06-17 15:32:41 +02:00
nfp_ethdev_vf.c net/nfp: fix internal buffer size and MTU check 2022-10-21 11:56:59 +02:00
nfp_ethdev.c net/nfp: fix internal buffer size and MTU check 2022-10-21 11:56:59 +02:00
nfp_logs.h net/nfp: use ethdev debug macro to control Rx/Tx log 2022-09-20 19:54:35 +02:00
nfp_rxtx.c net/nfp: fix memory leak in Rx 2022-10-05 18:09:21 +02:00
nfp_rxtx.h net/nfp: move Rx/Tx functions to header file 2022-10-05 18:09:21 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00