numam-dpdk/drivers
Ferruh Yigit 4e8a910719 net/af_packet: fix driver init with default MTU
Driver is using 'ETH_FRAME_LEN' Linux defined value as max frame length,
which doesn't include FCS (4 bytes CRC). But ethdev by default uses
frame size with FCS when application doesn't define any explicit value.

As a result device configuration fails because device is tried to be
configured with a frame size length that is bigger than what device
reported as supported. Device reports as max supported frame size is
1514 but configured value is 1518.

Instead use DPDK macro, 'RTE_ETHER_MAX_LEN', that includes FCS in the
driver to report the max supported frame size, this matches to the
initial intention.

Fixes: 1bb4a528c4 ("ethdev: fix max Rx packet length")

Reported-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-10-27 17:44:49 +02:00
..
baseband drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bus bus/pci: fix use after free on unplug 2021-11-04 15:13:41 +01:00
common common/mlx5: update regex DevX commands 2021-11-03 23:14:29 +01:00
compress devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
crypto devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
dma dma/idxd: fix truncated error code in status check 2021-10-27 17:01:56 +02:00
event drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
mempool drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
net net/af_packet: fix driver init with default MTU 2021-10-27 17:44:49 +02:00
raw drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
regex regex/mlx5: prevent double setup of queue pair 2021-11-03 23:15:10 +01:00
vdpa drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
meson.build raw/ioat: build only if dmadev not present 2021-10-22 22:40:58 +02:00