numam-dpdk/drivers
Walter Heymans 733afb244d net/nfp: update how max MTU is read
The 'max_rx_pktlen' value was previously read from hardware, which was
set by the running firmware. This caused confusion due to different
meanings of 'MAX_MTU'. This patch updates the 'max_rx_pktlen' to the
maximum value that the NFP NIC can support. The 'max_mtu' value that is
read from hardware, is assigned to the 'dev_info->max_mtu' variable.

If more layer 2 metadata must be used, the firmware can be updated to
report a smaller 'max_mtu' value.

The constant defined for NFP_FRAME_SIZE_MAX is derived for the maximum
supported buffer size of 10240, minus 136 bytes that is reserved by the
hardware and another 56 bytes reserved for expansion in firmware. This
results in a usable maximum packet length of 10048 bytes.

Signed-off-by: Walter Heymans <walter.heymans@corigine.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Richard Donkin <richard.donkin@corigine.com>
2022-05-10 13:53:29 +02:00
..
baseband baseband/acc100: avoid out-of-bounds access 2022-02-23 11:59:51 +01:00
bus bus/dpaa: remove unused thread-specific variables 2022-04-29 11:27:35 +02:00
common common/dpaax: fix short MAC-I IV calculation for ZUC 2022-04-29 11:27:35 +02:00
compress compress/octeontx: support OCTEON TX2 SoC family 2022-04-29 11:36:46 +02:00
crypto crypto/dpaa_sec: move cdb preparation to session create 2022-04-29 11:27:35 +02:00
dma dma/idxd: configure maximum batch size to high value 2022-02-23 16:45:16 +01:00
event event/dlb2: add shift value check in sparse dequeue 2022-03-03 10:25:17 +01:00
gpu gpu/cuda: add more NVIDIA devices 2022-04-14 10:01:11 +02:00
mempool mempool/cnxk: fix batch allocation failure path 2022-02-23 17:33:53 +01:00
net net/nfp: update how max MTU is read 2022-05-10 13:53:29 +02:00
raw raw/ifpga: fix build with optimization 2022-03-16 20:35:04 +01:00
regex remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
vdpa vdpa/mlx5: make statistics counter persistent 2022-05-09 21:39:58 +02:00
meson.build build: make ring mempool driver mandatory 2022-02-22 15:38:19 +01:00