numam-dpdk/drivers/net/hinic
Ferruh Yigit dd4e429c95 ethdev: move jumbo frame offload check to library
Setting MTU bigger than RTE_ETHER_MTU requires the jumbo frame support,
and application should enable the jumbo frame offload support for it.

When jumbo frame offload is not enabled by application, but MTU bigger
than RTE_ETHER_MTU is requested there are two options, either fail or
enable jumbo frame offload implicitly.

Enabling jumbo frame offload implicitly is selected by many drivers
since setting a big MTU value already implies it, and this increases
usability.

This patch moves this logic from drivers to the library, both to reduce
the duplicated code in the drivers and to make behaviour more visible.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Huisong Li <lihuisong@huawei.com>
2021-10-18 19:20:21 +02:00
..
base drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
hinic_pmd_ethdev.c ethdev: move jumbo frame offload check to library 2021-10-18 19:20:21 +02:00
hinic_pmd_ethdev.h net/hinic: fix MTU consistency with firmware 2021-07-23 15:37:17 +02:00
hinic_pmd_flow.c net/hinic: fix TCAM filter set 2020-09-30 19:19:08 +02:00
hinic_pmd_rx.c net/hinic: restore vectorised code 2021-01-19 03:30:31 +01:00
hinic_pmd_rx.h net/hinic: optimize Rx performance for x86 2020-07-30 00:41:23 +02:00
hinic_pmd_tx.c net/hinic: restore vectorised code 2021-01-19 03:30:31 +01:00
hinic_pmd_tx.h net/hinic: adds Tx queue xstats members 2020-04-21 13:57:07 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00