diff options
author | Ferruh Yigit <ferruh.yigit@intel.com> | 2018-09-04 11:12:56 +0100 |
---|---|---|
committer | Ferruh Yigit <ferruh.yigit@intel.com> | 2018-09-14 20:08:41 +0200 |
commit | 323e7b667f18376c60351282950b28d4d0cc6165 (patch) | |
tree | 1e80af4e9d2b16edd5e9305e409c4f8322c0c74c /examples/qos_meter | |
parent | 83cf204a982918fd56b15f9d458d1dfb1e724b5f (diff) |
ethdev: make default behavior CRC strip on Rx
Removed DEV_RX_OFFLOAD_CRC_STRIP offload flag.
Without any specific Rx offload flag, default behavior by PMDs is to
strip CRC.
PMDs that support keeping CRC should advertise DEV_RX_OFFLOAD_KEEP_CRC
Rx offload capability.
Applications that require keeping CRC should check PMD capability first
and if it is supported can enable this feature by setting
DEV_RX_OFFLOAD_KEEP_CRC in Rx offload flag in rte_eth_dev_configure()
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Tomasz Duszynski <tdu@semihalf.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Jan Remes <remes@netcope.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hyong Youb Kim <hyonkim@cisco.com>
Diffstat (limited to 'examples/qos_meter')
-rw-r--r-- | examples/qos_meter/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c index 5cf4e9dfa4..9b0112449b 100644 --- a/examples/qos_meter/main.c +++ b/examples/qos_meter/main.c @@ -56,8 +56,7 @@ static struct rte_eth_conf port_conf = { .mq_mode = ETH_MQ_RX_RSS, .max_rx_pkt_len = ETHER_MAX_LEN, .split_hdr_size = 0, - .offloads = (DEV_RX_OFFLOAD_CHECKSUM | - DEV_RX_OFFLOAD_CRC_STRIP), + .offloads = DEV_RX_OFFLOAD_CHECKSUM, }, .rx_adv_conf = { .rss_conf = { |