From patchwork Mon Jul 2 08:26:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Yang X-Patchwork-Id: 42082 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3AAED5B26; Mon, 2 Jul 2018 10:27:15 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 3937E5B14 for ; Mon, 2 Jul 2018 10:27:13 +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 68BAF80D; Mon, 2 Jul 2018 01:27:12 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.169.107.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C899B3F5AD; Mon, 2 Jul 2018 01:27:11 -0700 (PDT) From: Phil Yang To: dev@dpdk.org Cc: nd@arm.com, phil.yang@arm.com Date: Mon, 2 Jul 2018 16:26:57 +0800 Message-Id: <1530520018-7302-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 1/2] test/link_bonding: disable HW CRC strip by default. 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since the tested virtual device has no capacity of HW CRC offload, disable it for the link bonding test by default. Otherwise, it will cause test unexpected failure. Fixes: b219c8c("test: enable HW CRC strip by default") Signed-off-by: Phil Yang --- test/test/test_link_bonding.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/test/test/test_link_bonding.c b/test/test/test_link_bonding.c index 0ffd650..d996c02 100644 --- a/test/test/test_link_bonding.c +++ b/test/test/test_link_bonding.c @@ -137,14 +137,8 @@ static uint16_t vlan_id = 0x100; struct rte_eth_rxmode rx_mode = { .max_rx_pkt_len = ETHER_MAX_LEN, /**< Default maximum frame length. */ - .split_hdr_size = 0, - .header_split = 0, /**< Header Split disabled. */ - .hw_ip_checksum = 0, /**< IP checksum offload disabled. */ - .hw_vlan_filter = 1, /**< VLAN filtering enabled. */ - .hw_vlan_strip = 1, /**< VLAN strip enabled. */ - .hw_vlan_extend = 0, /**< Extended VLAN disabled. */ - .jumbo_frame = 0, /**< Jumbo Frame Support disabled. */ - .hw_strip_crc = 1, /**< CRC stripping by hardware enabled. */ + .offloads = 0, + .ignore_offload_bitfield = 1, }; struct rte_fdir_conf fdir_conf = { @@ -158,12 +152,8 @@ static struct rte_eth_conf default_pmd_conf = { .rxmode = { .mq_mode = ETH_MQ_RX_NONE, .max_rx_pkt_len = ETHER_MAX_LEN, - .split_hdr_size = 0, - .header_split = 0, /**< Header Split disabled */ - .hw_ip_checksum = 0, /**< IP checksum offload enabled */ - .hw_vlan_filter = 0, /**< VLAN filtering disabled */ - .jumbo_frame = 0, /**< Jumbo Frame Support disabled */ - .hw_strip_crc = 1, /**< CRC stripped by hardware */ + .offloads = 0, + .ignore_offload_bitfield = 1, }, .txmode = { .mq_mode = ETH_MQ_TX_NONE,