From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DCA09A0524; Wed, 29 Jan 2020 02:43:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 99B351C440; Wed, 29 Jan 2020 02:43:31 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 92FEE1BFDD; Wed, 29 Jan 2020 02:43:30 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00T1ZRrN007110; Tue, 28 Jan 2020 17:43:29 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=7suLDR2Qq10aHhzdt/XTPnyt+77G2FpSTwnvdf6a8l0=; b=qRMVUw/mpP9Wtmupy3qgyGQOH7phF8ET79zsSe6TQEAcYJ6ZPr+h4TU4daQPFzVkb6Nx v9jKROGGQkyovGCRrBGqUpNmN5BQd2Cqi+4Z74z+FIbhfAfIPk9w2RA7W6GU4OzwVtD1 Y5KS0eCn37o2XR3wAwlhmOo8t61+ZTYafl5TN3RGZbDYku4RjtsDNtU1VAbKC1cTpsdB 39b6u3W62e5lJx6uxDC8DR5vLsVwFxuhAcujEViCYfjvgJ342LWolEvp+3gZYrjD5goJ ND/K4mUj1JzUE1iycW7dUfwXstIlr4x1FDJJHTifdcml6JRR6REJQdedhKm1sjUFi+PN jA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2xt6bsxea5-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 28 Jan 2020 17:43:29 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Jan 2020 17:43:28 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 28 Jan 2020 17:43:27 -0800 Received: from irv1user08.caveonetworks.com (unknown [10.104.116.105]) by maili.marvell.com (Postfix) with ESMTP id DF28C3F703F; Tue, 28 Jan 2020 17:43:27 -0800 (PST) Received: (from rmody@localhost) by irv1user08.caveonetworks.com (8.14.4/8.14.4/Submit) id 00T1hRjR018183; Tue, 28 Jan 2020 17:43:27 -0800 X-Authentication-Warning: irv1user08.caveonetworks.com: rmody set sender to rmody@marvell.com using -f From: Rasesh Mody To: , , CC: Rasesh Mody , , , Date: Tue, 28 Jan 2020 17:43:13 -0800 Message-ID: <20200129014313.18108-1-rmody@marvell.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-28_09:2020-01-28, 2020-01-28 signatures=0 Subject: [dpdk-dev] [PATCH] net/bnx2x: fix to set stripped flag for VLAN packet X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" For VLAN packet the tci is saved in rx_mb->vlan_tci, however the STRIPPED offload flag is not set along with PKT_RX_VLAN flag. Set the PKT_RX_VLAN_STRIPPED flag as well. Fixes: 380a7aab1ae2 ("mbuf: rename deprecated VLAN flags") Fixes: b37b528d957c ("mbuf: add new Rx flags for stripped VLAN") Cc: stable@dpdk.org Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c index ae97dfee36..ea2b53dff8 100644 --- a/drivers/net/bnx2x/bnx2x_rxtx.c +++ b/drivers/net/bnx2x/bnx2x_rxtx.c @@ -414,7 +414,7 @@ bnx2x_recv_pkts(void *p_rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts) */ if (cqe_fp->pars_flags.flags & PARSING_FLAGS_VLAN) { rx_mb->vlan_tci = cqe_fp->vlan_tag; - rx_mb->ol_flags |= PKT_RX_VLAN; + rx_mb->ol_flags |= PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED; } rx_pkts[nb_rx] = rx_mb; -- 2.18.0