test/virtual_pmd: report CRC strip capability
authorPhil Yang <phil.yang@arm.com>
Wed, 4 Jul 2018 01:31:45 +0000 (09:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Jul 2018 19:32:53 +0000 (21:32 +0200)
Add DEV_RX_OFFLOAD_CRC_STRIP to virtual drivers since they don't
use CRC at all, when an application requires this offload virtual
PMDs should not return error.

Fixes: 3d12dceed2df ("ethdev: add new offload flag to keep CRC")

Signed-off-by: Phil Yang <phil.yang@arm.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
test/test/virtual_pmd.c

index f8ddc2d..591b309 100644 (file)
@@ -91,6 +91,7 @@ virtual_ethdev_info_get(struct rte_eth_dev *dev __rte_unused,
        dev_info->max_tx_queues = (uint16_t)512;
 
        dev_info->min_rx_bufsize = 0;
+       dev_info->rx_offload_capa = DEV_RX_OFFLOAD_CRC_STRIP;
 }
 
 static int