numam-dpdk/drivers/net/axgbe
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
..
axgbe_common.h drivers/net: remove duplicated includes 2018-04-27 15:54:55 +01:00
axgbe_dev.c net/axgbe: fix jumbo setting overwritten 2018-05-02 19:28:48 +02:00
axgbe_ethdev.c ethdev: add new offload flag to keep CRC 2018-07-03 01:35:58 +02:00
axgbe_ethdev.h net/axgbe: add workaround for ethernet training 2018-04-14 00:41:44 +02:00
axgbe_i2c.c net/axgbe: add phy init and related APIs 2018-04-14 00:41:44 +02:00
axgbe_logs.h net/axgbe: add minimal init and uninit support 2018-04-14 00:41:44 +02:00
axgbe_mdio.c net/axgbe: add workaround for ethernet training 2018-04-14 00:41:44 +02:00
axgbe_phy_impl.c net/axgbe: fix EEPROM string comparison 2018-05-14 23:32:23 +02:00
axgbe_phy.h net/axgbe: add phy register map and helper macros 2018-04-14 00:41:44 +02:00
axgbe_rxtx_vec_sse.c net/axgbe: add Rx/Tx data path 2018-04-14 00:41:44 +02:00
axgbe_rxtx.c ethdev: add new offload flag to keep CRC 2018-07-03 01:35:58 +02:00
axgbe_rxtx.h net/axgbe: fix incorrect cache alignment macro 2018-04-27 15:54:56 +01:00
Makefile net/axgbe: add Rx/Tx data path 2018-04-14 00:41:44 +02:00
meson.build net/axgbe: support meson build 2018-04-14 00:41:44 +02:00
rte_pmd_axgbe_version.map net/axgbe: add minimal init and uninit support 2018-04-14 00:41:44 +02:00