From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 9B9F71B1B6 for ; Wed, 24 Jan 2018 16:39:44 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 502C122374; Wed, 24 Jan 2018 10:39:44 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:39:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=6GD0JUahNnRIAT6n8 KwOC0GJh4WESYRNxPuQ0kaG/ms=; b=j6aAJ4gdszBob9PYhUO0lmKgCwDkxDVH4 LvOIGFsk26A0paAJZ84gBDNn149agEnoAqEnsvEBR3ViEsnga+Bb+Qhkwr6R2E0d PaJjKenlZVqFxIRhBSHEfz+T3ePSqxy2lM/ZcoZRZYAEL3n76/2XSghq4oFopkWa AwK5/ygTSxRFcq5zvcjeNlu7FeedUZc6Jo4W5PPxmTJT411q00aSphJQuwkdFkNT COErFMcfkGX703TsMXlX6wl3+YlEbpL+BPw33zdkhVHZl2lP2dQgJMrFWB4py311 iS2/8pk3va6EF2KR99w83Q+xUpdBuWL8nVxlc9RsQjaUMoaubGGAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=6GD0JUahNnRIAT6n8KwOC0GJh4WESYRNxPuQ0kaG/ms=; b=DEmSnRWY nzgu9kR5VUBV7wsiOYha2HywBOP0OoQy6ylcQ0uIwjYnWjK2HNb6hbDa7P0zRPAj OHjISlEukoe4JTHotdCkBcfSJGOMYfW3DXVid1RCWYkon1Ohk4wGCM5AuOsLXkQv GAT0ro/YKf4MUypbCDBjaulHsIHuhSEXtGtveufTXrSwTgc457ajLlbsSLoQ/9Q8 9BNrF6KlaEg6H1hTg+E2kG4mLzkyzV24dMmpJBunhAKaVixUt0+CyWNAWUKLdahh 94dmEwIX79QlkwRfZMZdnaiKCAILpvL3A4QaRMjUHJmQOS0Bzz0fwsVzvj73Jdu5 BHPSgZthYbhzlA== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 88A9E7E1A2; Wed, 24 Jan 2018 10:39:42 -0500 (EST) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable Date: Wed, 24 Jan 2018 23:32:34 +0800 Message-Id: <1516808026-25523-86-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: parse checksum offload flags' has been queued to LTS release 17.11.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: Wed, 24 Jan 2018 15:39:44 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.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 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From e5da9455dca3ab7791b6ffcee4f7fb63f6f8440b Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Mon, 8 Jan 2018 12:24:27 -0800 Subject: [PATCH] net/bnxt: parse checksum offload flags [ upstream commit 294ca8e3ad847990eb099417f398a880f4224ccf ] Parse the Tx checksum offload flags and set the proper bits in the Tx descriptor. Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_txr.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index 8ca4bbd..4a152aa 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -217,23 +217,28 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt, tx_pkt->outer_l3_len; txbd1->mss = tx_pkt->tso_segsz; - } else if (tx_pkt->ol_flags & PKT_TX_OIP_IIP_TCP_UDP_CKSUM) { + } else if ((tx_pkt->ol_flags & PKT_TX_OIP_IIP_TCP_UDP_CKSUM) == + PKT_TX_OIP_IIP_TCP_UDP_CKSUM) { /* Outer IP, Inner IP, Inner TCP/UDP CSO */ txbd1->lflags |= TX_BD_FLG_TIP_IP_TCP_UDP_CHKSUM; txbd1->mss = 0; - } else if (tx_pkt->ol_flags & PKT_TX_IIP_TCP_UDP_CKSUM) { + } else if ((tx_pkt->ol_flags & PKT_TX_IIP_TCP_UDP_CKSUM) == + PKT_TX_IIP_TCP_UDP_CKSUM) { /* (Inner) IP, (Inner) TCP/UDP CSO */ txbd1->lflags |= TX_BD_FLG_IP_TCP_UDP_CHKSUM; txbd1->mss = 0; - } else if (tx_pkt->ol_flags & PKT_TX_OIP_TCP_UDP_CKSUM) { + } else if ((tx_pkt->ol_flags & PKT_TX_OIP_TCP_UDP_CKSUM) == + PKT_TX_OIP_TCP_UDP_CKSUM) { /* Outer IP, (Inner) TCP/UDP CSO */ txbd1->lflags |= TX_BD_FLG_TIP_TCP_UDP_CHKSUM; txbd1->mss = 0; - } else if (tx_pkt->ol_flags & PKT_TX_OIP_IIP_CKSUM) { + } else if ((tx_pkt->ol_flags & PKT_TX_OIP_IIP_CKSUM) == + PKT_TX_OIP_IIP_CKSUM) { /* Outer IP, Inner IP CSO */ txbd1->lflags |= TX_BD_FLG_TIP_IP_CHKSUM; txbd1->mss = 0; - } else if (tx_pkt->ol_flags & PKT_TX_TCP_UDP_CKSUM) { + } else if ((tx_pkt->ol_flags & PKT_TX_TCP_UDP_CKSUM) == + PKT_TX_TCP_UDP_CKSUM) { /* TCP/UDP CSO */ txbd1->lflags |= TX_BD_LONG_LFLAGS_TCP_UDP_CHKSUM; txbd1->mss = 0; -- 2.7.4