From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by dpdk.org (Postfix) with ESMTP id A1F689961 for ; Mon, 21 Aug 2017 11:37:47 +0200 (CEST) Received: by mail-pg0-f48.google.com with SMTP id y129so96877630pgy.4 for ; Mon, 21 Aug 2017 02:37:47 -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=YVKIgSdQEewxRi8nJb8n0r/pBme9UGuYAS82VYHPNUQ=; b=Qks7pixZinCeZFy1owbaBTC/h/cEGSzQz4itvXcHmyvsko+oTLbf9O2eao72tLoUIq d9IpXzMNLNQ9jVZPToL9IJ/u/MUYKAwCooDRWt2p2jE/EhCuY5JHsxtf8/RmlSP6uN8k rq2jzp3WpGTAEZUw1PjuvdLyw91+6tjzzi3IjlgJMbCUMbNd4AhQAT8Pu63U8l4W3j8e 3+kisVjfnvOKCksf9hyc3vqGPVWZHCnvrrBAJ6wcWDI0FlDcYCr3ItFLsKqG/a2opMFf 6GmlYq7Dm/b/GVs4pcZ3M+HpM9G2lvShh7RSA0XphJomLecuUb1iKwYp9/CNfaH/cn0b YwWQ== 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=YVKIgSdQEewxRi8nJb8n0r/pBme9UGuYAS82VYHPNUQ=; b=OoEz0r6JbiM2vWMNHmEyGLlwY+XR16UwIuxuAFQUE9xJBYGo2l5/nV/QooL/0IzPhK aE63zuWINuY2orhQZ1Ogj/c3MEa6fOGznyoMDw3ijWh7UBbzaOrXWcaH6Hln9bJ1t27J 7GffkCi+qnm6kEmP8pTydA8LcDDqIP2xA4dImTou7CUgw3HkpF6kk7hF6a39uDX1zMR0 UwK/mTk0CcJZcLYK22+bZwXbjgNqmOMEvOTnn0g7yjZ4dHu1r4h6BAhpgFV48lAQ3cyc uGnljEYy0vrpp7pi+T4qrjHxeNB9MEM3npptMdzo8FEpqz8p2dwANu8aqErKvZs159Bm 8WSg== X-Gm-Message-State: AHYfb5jVGvE0hxt+AVQHRNqmJ7TwEUvpga4l+8+tdk11Rqh+TDkAaGMB Pew/3bzXiJcD2JEV X-Received: by 10.84.225.146 with SMTP id u18mr10956872plj.64.1503308266995; Mon, 21 Aug 2017 02:37:46 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.37.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:37:45 -0700 (PDT) From: Yuanhan Liu To: Yongseok Koh Cc: Sagi Grimberg , Adrien Mazarguil , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:31:08 +0800 Message-Id: <1503307878-16728-54-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/mlx5: fix missing packet type calculation' has been queued to stable release 17.05.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, 21 Aug 2017 09:37:48 -0000 Hi, FYI, your patch has been queued to stable release 17.05.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 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 23c80bfeed25139c971d4cbb2dae7c8a9f645802 Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Wed, 26 Jul 2017 12:29:32 -0700 Subject: [PATCH] net/mlx5: fix missing packet type calculation [ upstream commit 48dfc20f1e456a69ec3f7c7a06319107d0f78e8e ] Calculation of packet type is currently enabled only when HW checksum is enabled. This isn't related to HW checksum offload. Enable it regardless. Fixes: 081f7eae242e ("mlx5: process offload flags only when requested") Signed-off-by: Yongseok Koh Reviewed-by: Sagi Grimberg Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index db5a8ee..c416009 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -2020,7 +2020,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) pkt = seg; assert(len >= (rxq->crc_present << 2)); /* Update packet information. */ - pkt->packet_type = 0; + pkt->packet_type = rxq_cq_to_pkt_type(cqe); pkt->ol_flags = 0; if (rss_hash_res && rxq->rss_hash) { pkt->hash.rss = rss_hash_res; @@ -2038,10 +2038,8 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) mlx5_flow_mark_get(mark); } } - if (rxq->csum | rxq->csum_l2tun) { - pkt->packet_type = rxq_cq_to_pkt_type(cqe); + if (rxq->csum | rxq->csum_l2tun) pkt->ol_flags |= rxq_cq_to_ol_flags(rxq, cqe); - } if (rxq->vlan_strip && (cqe->hdr_type_etc & htons(MLX5_CQE_VLAN_STRIPPED))) { -- 2.7.4