From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 8C3F81BE05 for ; Wed, 4 Jul 2018 03:31:57 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA2A780D; Tue, 3 Jul 2018 18:31:56 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.169.109.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 12F0B3F2EA; Tue, 3 Jul 2018 18:31:55 -0700 (PDT) From: Phil Yang To: dev@dpdk.org Cc: nd@arm.com, ferruh.yigit@intel.com Date: Wed, 4 Jul 2018 09:31:45 +0800 Message-Id: <1530667905-1315-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2018 01:31:57 -0000 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: b219c8c("test: enable HW CRC strip by default") Signed-off-by: Phil Yang --- test/test/virtual_pmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c index f8ddc2d..591b309 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 -- 2.7.4