From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Guo Subject: [dpdk-dev v2 2/3] app: enable HW CRC strip by default Date: Mon, 20 Mar 2017 17:57:53 +0800 Message-ID: <1490003874-37766-2-git-send-email-jia.guo@intel.com> References: <1490003874-37766-1-git-send-email-jia.guo@intel.com> Cc: dev@dpdk.org, jia.guo@intel.com, stable@dpdk.org To: helin.zhang@intel.com, jingjing.wu@intel.com Return-path: In-Reply-To: <1490003874-37766-1-git-send-email-jia.guo@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since VF has no ability to disable/enable HW CRC strip for non-DPDK PF drivers, and for most case of kernel driver default enable HW CRC strip, if disable HW CRC strip in app's rxmode, VF driver will return fail and result the VF launch failure. So this patch default to enable HW CRC strip to let VF launch successful. Signed-off-by: Jeff Guo Cc: stable@dpdk.org --- app/test-pmd/testpmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index e04e215..f01522c 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -284,7 +284,7 @@ struct rte_eth_rxmode rx_mode = { .hw_vlan_strip = 1, /**< VLAN strip enabled. */ .hw_vlan_extend = 0, /**< Extended VLAN disabled. */ .jumbo_frame = 0, /**< Jumbo Frame Support disabled. */ - .hw_strip_crc = 0, /**< CRC stripping by hardware disabled. */ + .hw_strip_crc = 1, /**< CRC stripping by hardware disabled. */ }; struct rte_fdir_conf fdir_conf = { -- 2.7.4