From: Phil Yang Date: Wed, 4 Jul 2018 01:31:45 +0000 (+0800) Subject: test/virtual_pmd: report CRC strip capability X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5697d0888eb7818f99ea2d71fdb20f9f20ce6c04;p=dpdk.git test/virtual_pmd: report CRC strip capability 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 Acked-by: Ferruh Yigit --- diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c index f8ddc2db82..591b309894 100644 --- a/test/test/virtual_pmd.c +++ b/test/test/virtual_pmd.c @@ -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