From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by dpdk.org (Postfix) with ESMTP id 976582C8 for ; Tue, 20 Jun 2017 13:37:44 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id u62so15045055pgb.0 for ; Tue, 20 Jun 2017 04:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c1tKakbsZLe0dAWPK0EsnuLC19T+3O/C+W/B0SVzjCo=; b=b475vjLTWvpJ5CXLXr3TMONYhTOcUu7/oAWonmc/k6PgWdzROCHngHI3w1KfxbE4b5 j9UjKChgxFm+aSPO+4Y8O04kQsuvpbwg2GWtttwiCYQ0Ur1x4skF7Kwah2MbG600BHRa eIKv/xV30KFqgIxb4Zl+/HTqOeSyqWM8gHGNk+gJthAu6yUR8o6zD4ATAJ1RyTd/j9ny nwYTNSYTy6Mdv9u2TRxcSA+uSLoPQ+H82A7A5VZWWTzi3VKm4Axs9ySUi9UoBccRUNiv sJuKJl3cjI9zVSGUCWMZfu+KGm1BxvyM0q7bS+k5uc6lLZMFns0/G2Z54b1tGuspMFN1 L8OA== 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=c1tKakbsZLe0dAWPK0EsnuLC19T+3O/C+W/B0SVzjCo=; b=Mv+kmDcQ1BkiJ2CZxblU4K3GPSHcqfaGNqi32XN33I15yaldlFtQ9YS9LY74G8aRJt /d16a4FhQUv+m2bT3SfzbXZmwAfbX1dhpSx1T4xe4k3lfN4oaCUguw/mFlHLYiJE3j3X pXr0eY+i+IvbzOrzfp9bM70GyEAaOj2OhMMzLKONQ6kGjhtd1DwqDx5JBb3yg0CIf3jC JboyDBMmCtJeZCDBsbH+UieRzIcF11PjWYcXpYroUvzv45/gkFciWzFphzom2uZ4mzS5 J2MOgCHM9xy902QGEw3mjQmL6H+QjCD7xY4OmyM/+nCzHATJKhCaHxVMr4hstrok/HAk WJ8Q== X-Gm-Message-State: AKS2vOwjtgI1nCe+zLSrFdFrPRZ7V0fpVO4fHMAdB5gpnKhNNQ3irJyW 0UgdgAT4M2TU7rKpwFx0HA== X-Received: by 10.99.7.129 with SMTP id 123mr31257269pgh.171.1497958663827; Tue, 20 Jun 2017 04:37:43 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.37.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:37:42 -0700 (PDT) From: Yuanhan Liu To: Wei Zhao Cc: Wenzhuo Lu , dpdk stable Date: Tue, 20 Jun 2017 19:35:36 +0800 Message-Id: <1497958550-13600-24-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/igb: fix checksum valid flags' has been queued to stable release 17.05.1 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: Tue, 20 Jun 2017 11:37:45 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From eb9ba6db2cd8a63b6fb6559b91ac80885ffcf5b6 Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Wed, 31 May 2017 11:03:12 +0800 Subject: [PATCH] net/igb: fix checksum valid flags [ upstream commit 760110abd68d84014b48bb84945276016d3e7616 ] To enable L4 checksum offload for SCTP packets, E1000_RXCSUM_CRCOFL should be set. Otherwise, for SCTP packets even L4 checksum not calculated, it will return PKT_RX_L4_CKSUM_GOOD. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Zhao Acked-by: Wenzhuo Lu --- drivers/net/e1000/igb_rxtx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index b3b601b..1c80a2a 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -2402,9 +2402,11 @@ eth_igb_rx_init(struct rte_eth_dev *dev) /* Enable both L3/L4 rx checksum offload */ if (dev->data->dev_conf.rxmode.hw_ip_checksum) - rxcsum |= (E1000_RXCSUM_IPOFL | E1000_RXCSUM_TUOFL); + rxcsum |= (E1000_RXCSUM_IPOFL | E1000_RXCSUM_TUOFL | + E1000_RXCSUM_CRCOFL); else - rxcsum &= ~(E1000_RXCSUM_IPOFL | E1000_RXCSUM_TUOFL); + rxcsum &= ~(E1000_RXCSUM_IPOFL | E1000_RXCSUM_TUOFL | + E1000_RXCSUM_CRCOFL); E1000_WRITE_REG(hw, E1000_RXCSUM, rxcsum); /* Setup the Receive Control Register. */ -- 2.7.4