numam-dpdk/drivers/net/ena
Michal Krawczyk e8c838fde9 net/ena: fix offload capabilities verification
ENA PMD has multiple checksum offload flags, which are more discrete
than the DPDK offload capabilities flags.
As the driver wasn't storing it's internal checksum offload capabilities
and was relying only on the DPDK capabilities, not all scenarios could
be properly covered (like when to prepare pseudo header checksum and
when not).

Moreover, the user could request offload capability, which isn't
supported by the HW and the PMD would quietly ignore the issue.

This commit reworks eth_ena_prep_pkts() function to perform additional
checks and to properly reflect the HW requirements. With the
RTE_LIBRTE_ETHDEV_DEBUG enabled, the function will do even more
verifications, to help the user find any issues with the mbuf
configuration.

Fixes: b3fc5a1ae1 ("net/ena: add Tx preparation")
Cc: stable@dpdk.org

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
2021-10-19 15:04:17 +02:00
..
base net/ena: use common debug options 2021-07-23 17:42:33 +02:00
ena_ethdev.c net/ena: fix offload capabilities verification 2021-10-19 15:04:17 +02:00
ena_ethdev.h net/ena: fix offload capabilities verification 2021-10-19 15:04:17 +02:00
ena_logs.h net/ena: use common debug options 2021-07-23 17:42:33 +02:00
ena_platform.h net/ena: remove endian swap functions 2021-05-11 15:00:44 +02:00
ena_rss.c net/ena: remove useless address check 2021-10-11 17:47:31 +02:00
meson.build net/ena: rework RSS configuration 2021-07-23 17:44:09 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00