numam-dpdk/drivers/net/cxgbe
Ferruh Yigit 70815c9eca ethdev: add new offload flag to keep CRC
DEV_RX_OFFLOAD_KEEP_CRC offload flag is added. PMDs that support
keeping CRC should advertise this offload capability.

DEV_RX_OFFLOAD_CRC_STRIP flag will remain one more release
default behavior in PMDs are to keep the CRC until this flag removed

Until DEV_RX_OFFLOAD_CRC_STRIP flag is removed:
- Setting both KEEP_CRC & CRC_STRIP is INVALID
- Setting only CRC_STRIP PMD should strip the CRC
- Setting only KEEP_CRC PMD should keep the CRC
- Not setting both PMD should keep the CRC

A helper function rte_eth_dev_is_keep_crc() has been added to be able to
change the no flag behavior with minimal changes in PMDs.

The PMDs that doesn't report the DEV_RX_OFFLOAD_KEEP_CRC offload can
remove rte_eth_dev_is_keep_crc() checks next release, related code
commented to help the maintenance task.

And DEV_RX_OFFLOAD_CRC_STRIP has been added to virtual drivers since
they don't use CRC at all, when an application requires this offload
virtual PMDs should not return error.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2018-07-03 01:35:58 +02:00
..
base net/cxgbe: implement flow query operation 2018-06-14 19:27:50 +02:00
cxgbe_compat.h net/cxgbe: convert to SPDX license tags 2018-03-30 14:08:44 +02:00
cxgbe_ethdev.c ethdev: add new offload flag to keep CRC 2018-07-03 01:35:58 +02:00
cxgbe_filter.c net/cxgbe: implement flow query operation 2018-06-14 19:27:50 +02:00
cxgbe_filter.h net/cxgbe: implement flow flush operation 2018-06-14 19:27:50 +02:00
cxgbe_flow.c net/cxgbe: implement flow flush operation 2018-06-14 19:27:50 +02:00
cxgbe_flow.h net/cxgbe: implement flow create operation 2018-06-14 19:27:50 +02:00
cxgbe_main.c net/cxgbe: implement flow query operation 2018-06-14 19:27:50 +02:00
cxgbe_ofld.h net/cxgbe: query firmware for filter resources 2018-06-14 19:27:50 +02:00
cxgbe_pfvf.h ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
cxgbe.h net/cxgbe: implement flow create operation 2018-06-14 19:27:50 +02:00
cxgbevf_ethdev.c ethdev: add probing finish function 2018-05-14 22:31:53 +01:00
cxgbevf_main.c ethdev: add probing finish function 2018-05-14 22:31:53 +01:00
Makefile net/cxgbe: parse and validate flows 2018-06-14 19:27:50 +02:00
meson.build net/cxgbe: add to meson build 2018-06-14 19:27:50 +02:00
rte_pmd_cxgbe_version.map cxgbe: add pmd skeleton 2015-06-30 22:46:42 +02:00
sge.c net/cxgbe: add control queue to communicate filter requests 2018-06-14 19:27:50 +02:00