From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 31F28F64 for ; Mon, 30 Apr 2018 16:54:16 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id v5-v6so8323204wrf.9 for ; Mon, 30 Apr 2018 07:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mBXSUPGpIJxd2piUSD4JZ00PRENF4F7jtCUjnnFhlmI=; b=g1jfMovAPJjtjpXDxdn3gSMPyKmJjjh1+4/Rm95Ee45/510+Y5G/fGAPWHgCSS6ajC ZSxVZt2QPhtR+eheUNPTUwHmFBiJpXg/qqClSMSgC9c6R4p0vkTeIYBNRDwKRy2SUsIV nNF7A7EiTD/8X10mZys+QAfbYBezNHovxTbNJpOK3IrA7Z8Bq6KolPRgWFc6KPvADyCy SeA8KBB0Qel0buS6yDfmNIxHxGRkS+LlAYxClzhGdvXNY4RZUn1Y8GHIXuITgkYT2UhD hxdGDIXtdowd5X1v0+uhRal+IldWjmYJ+9aP3PKH+isDwSI4VaQ9HzTh0V2p7+kj68xm skpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mBXSUPGpIJxd2piUSD4JZ00PRENF4F7jtCUjnnFhlmI=; b=a1nZyKd/QmzPbqUVYn82lN8oqCy8D4uxZUBMDJAjMM3XzSA7K5BeUXcQrloci/5lIo 7R3HxusJFk4jcf+Fs4Q7g3yy3kDt/d9SU5+l/HpaW6f8vOCIU7+6zyilmSMFpxsQMNnG bX726Nfy7AGWwS7SP8G93OzPrc8IvEujbkZkj7YOnBUF3RD337FuODS9zxROwXcpoSuE +EM5LISisE/8nTSzaMa0/FmJ2w34XvV8z3gFn6LFfTuQUIDmYwqJMJ/NBTUGL8QOO5PM 0z2QtVEfdA08/JTBc+U7Hu/QZOiBhnImrBJVZ11TjZYTLEn78dSJy9FjBUsYZwI/hZb5 f6hQ== X-Gm-Message-State: ALQs6tAfJE4FcORWydCswLR1fpWrd5zj5YCdm7f1LcggO5nKaKQmEMA6 mIQDJCqAAeTe69PDnxvYl2XNc9yx4aM= X-Google-Smtp-Source: AB8JxZpykt0u+h/3v4RPcQl6Gj1ZdrZXH2GH5SO2qOkdObQ4ag41Y8RFzP5JmGoEL4h39x6PXrb4nQ== X-Received: by 2002:adf:8d90:: with SMTP id o16-v6mr8769867wrb.81.1525100055575; Mon, 30 Apr 2018 07:54:15 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id a14-v6sm4666880wra.84.2018.04.30.07.54.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:54:14 -0700 (PDT) From: luca.boccassi@gmail.com To: Ajit Khaparde Cc: dpdk stable Date: Mon, 30 Apr 2018 15:53:26 +0100 Message-Id: <20180430145402.23057-7-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430145402.23057-1-luca.boccassi@gmail.com> References: <20180430144223.18657-85-luca.boccassi@gmail.com> <20180430145402.23057-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: fix Rx checksum flags for tunnel frames' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:54:16 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 077bf25ffdce8a719b46ee657637ae5580be59dc Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Mon, 16 Apr 2018 18:11:17 -0700 Subject: [PATCH] net/bnxt: fix Rx checksum flags for tunnel frames [ upstream commit f3a050b65852ba3cfaebdae24cdd4edd54f82380 ] Fix Rx checksum status for tunnel frames as seen by hardware. Current code does not handle cases for tunnel frames correctly. Fixes: 7ec39d8c524b ("net/bnxt: update status of Rx IP/L4 CKSUM") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_rxr.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxr.h b/drivers/net/bnxt/bnxt_rxr.h index f3ed49bd6..174e1832f 100644 --- a/drivers/net/bnxt/bnxt_rxr.h +++ b/drivers/net/bnxt/bnxt_rxr.h @@ -52,17 +52,25 @@ #define BNXT_TPA_OUTER_L3_OFF(hdr_info) \ ((hdr_info) & 0x1ff) -#define RX_CMP_L4_CS_BITS rte_cpu_to_le_32(RX_PKT_CMPL_FLAGS2_L4_CS_CALC) +#define RX_CMP_L4_CS_BITS \ + rte_cpu_to_le_32(RX_PKT_CMPL_FLAGS2_L4_CS_CALC | \ + RX_PKT_CMPL_FLAGS2_T_L4_CS_CALC) -#define RX_CMP_L4_CS_ERR_BITS rte_cpu_to_le_32(RX_PKT_CMPL_ERRORS_L4_CS_ERROR) +#define RX_CMP_L4_CS_ERR_BITS \ + rte_cpu_to_le_32(RX_PKT_CMPL_ERRORS_L4_CS_ERROR | \ + RX_PKT_CMPL_ERRORS_T_L4_CS_ERROR) #define RX_CMP_L4_CS_OK(rxcmp1) \ (((rxcmp1)->flags2 & RX_CMP_L4_CS_BITS) && \ !((rxcmp1)->errors_v2 & RX_CMP_L4_CS_ERR_BITS)) -#define RX_CMP_IP_CS_ERR_BITS rte_cpu_to_le_32(RX_PKT_CMPL_ERRORS_IP_CS_ERROR) +#define RX_CMP_IP_CS_ERR_BITS \ + rte_cpu_to_le_32(RX_PKT_CMPL_ERRORS_IP_CS_ERROR | \ + RX_PKT_CMPL_ERRORS_T_IP_CS_ERROR) -#define RX_CMP_IP_CS_BITS rte_cpu_to_le_32(RX_PKT_CMPL_FLAGS2_IP_CS_CALC) +#define RX_CMP_IP_CS_BITS \ + rte_cpu_to_le_32(RX_PKT_CMPL_FLAGS2_IP_CS_CALC | \ + RX_PKT_CMPL_FLAGS2_T_IP_CS_CALC) #define RX_CMP_IP_CS_OK(rxcmp1) \ (((rxcmp1)->flags2 & RX_CMP_IP_CS_BITS) && \ -- 2.14.2