From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7EDF5A055F; Fri, 27 May 2022 10:16:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7210440E5A; Fri, 27 May 2022 10:16:43 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 131B84003F; Fri, 27 May 2022 10:16:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653639401; x=1685175401; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=w1oc3n0WZTicgu46feiut93ufJVROvkkJv2WBmZNWsE=; b=KIZXUEZdO4htzMaM8pHApjJFfUpZSzKRQMOrOzaNwNVrM59YuK9p4W09 LSJC1dhKAwRw476NErnDb3UX93byikvBAd95mCXRqpjQGWHuGOuEyDsXs Yuc3K8Lf7tlWj6TgY/s3y8HYV8A2I7nvisDzbjPawVn9M8YyFmMsUXbgw tqgfI+LUovg5mKIY3/Wwn14Qrp6ypPwvLgyF8I98GxlGgQiNPI6ETgeZO 8n1/UDC7SHAoZVkeJfpSe8x6Dkaxbi4MVsFo4uB2ZrQ+csYM5Yp/0oZGd lKJu/p+6zX6Ixrnz/b3Lfnn6xLSwCiq2H7Ags/oejjOiUhPC3gSEzSgg2 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10359"; a="274144491" X-IronPort-AV: E=Sophos;i="5.91,254,1647327600"; d="scan'208";a="274144491" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2022 01:16:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,254,1647327600"; d="scan'208";a="550078873" Received: from dpdk-wenjing-01.sh.intel.com ([10.67.118.216]) by orsmga006.jf.intel.com with ESMTP; 27 May 2022 01:16:38 -0700 From: Wenjing Qiao To: qiming.yang@intel.com, qi.z.zhang@intel.com Cc: xiao.w.wang@intel.com, dev@dpdk.org, Wenjing Qiao , stable@dpdk.org Subject: [PATCH] net/ice: fix the outer l4 cksum flag when AVX is disabled Date: Fri, 27 May 2022 04:09:55 -0400 Message-Id: <20220527080955.620245-1-wenjing.qiao@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In scalar datapath, ol_flag shows RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN which is error, therefore fixing this bug. Fixes: 94005e4640a7 ("net/ice: fix build with 16-byte Rx descriptor") Cc: stable@dpdk.org Signed-off-by: Wenjing Qiao Reported-by: Xiao Wang --- drivers/net/ice/ice_rxtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 4f218bcd0d..60c8c23c72 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -1497,7 +1497,9 @@ ice_rxd_error_to_pkt_flags(uint16_t stat_err0) return 0; if (likely(!(stat_err0 & ICE_RX_FLEX_ERR0_BITS))) { - flags |= (RTE_MBUF_F_RX_IP_CKSUM_GOOD | RTE_MBUF_F_RX_L4_CKSUM_GOOD); + flags |= (RTE_MBUF_F_RX_IP_CKSUM_GOOD | + RTE_MBUF_F_RX_L4_CKSUM_GOOD | + RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD); return flags; } -- 2.25.1