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 BC071A052F; Wed, 29 Jan 2020 15:18:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7049F1BFF6; Wed, 29 Jan 2020 15:18:09 +0100 (CET) Received: from mail-il1-f196.google.com (mail-il1-f196.google.com [209.85.166.196]) by dpdk.org (Postfix) with ESMTP id 0068E1BFF5; Wed, 29 Jan 2020 15:18:07 +0100 (CET) Received: by mail-il1-f196.google.com with SMTP id s18so26790iln.0; Wed, 29 Jan 2020 06:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L4w5dytHiFlzatuFJlclZT2eoge+H4XSowlng0VqOjQ=; b=SwAq+NdOyAEBcHkIPVQ91xH3N1dFhNOSmOQtH3/UmPogri+t6wdwbOnYQwDFkbHUue MnhijkzGbpln8zTj42d7Xv+jVMGbRJxMH503EvgSGXphe/1/+OMZ4wvLlpPGsm1I+D32 kT/fgPTPtJizgJnXHlF+H8CXaLtPlCpmb28H+qih528EqYM3izaJB9kjYoWchCFqqW+m lp3ZEqTZxAnwvKXwOgL+a9MHi5GR+tUu8JRziKopTqAcHwYIiSP3MEzc5dJSSSTBL9nw Ym1jgBcksb/mbJs/bSThOEoItZzTrGCP1U9npaUM2g9xp/h6WC0mBEpYvVHgvmRBwChL LTow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=L4w5dytHiFlzatuFJlclZT2eoge+H4XSowlng0VqOjQ=; b=qZWQziJSvtSVwA3Pdqu+1/8hCH/rzsCa0jmT2rDbpPwUtkRVaWoBjkl5jiNwbmeM+1 wYbIozl7Wq3dW55Pb35+4D+rFJ+fCJ0AkkY3FlqTAeODyFx+DtpVMLYG7aoEQ9qpHXL2 xL7TKeEwgeD7+A/rz/CVrUObGNk3pBouUDbTFbYcKnkKpTggyrOK2dFRIt/iuvKYBXHl Fu+CY596pfknd12KY3JUfjgokmtvXGZMnmzmFtiO8hr9NmbuCk9bj0g0GAdxLnOaXV1w Cuco0xASPYOPb2nqhrx65+T1cAYfvo+io8Y2BH0azFDQPUqTjLFqUzw33NvAfdQZekBE 2jxA== X-Gm-Message-State: APjAAAXoxaZ/FHQMY+A4WlbA4seo64qF27GZjM2x5fwXx7sailwG4MqY sMt/dbdrbaQ3gkAhGTACOyyi060xtkeHWXn2m6U= X-Google-Smtp-Source: APXvYqwdsyGA1l8HaLSPXHE0+cE0cynk0mdpSyiAT3h32BrG35fXDuBZUEctjB5F+TBzTYJgzhN/bQ3ozgpYwbnB/Bs= X-Received: by 2002:a92:c747:: with SMTP id y7mr23336122ilp.60.1580307487107; Wed, 29 Jan 2020 06:18:07 -0800 (PST) MIME-Version: 1.0 References: <20200129014313.18108-1-rmody@marvell.com> In-Reply-To: <20200129014313.18108-1-rmody@marvell.com> From: Jerin Jacob Date: Wed, 29 Jan 2020 19:47:51 +0530 Message-ID: To: Rasesh Mody Cc: dpdk-dev , Jerin Jacob , Ferruh Yigit , Stephen Hemminger , GR-Everest-DPDK-Dev , dpdk stable Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Wed, Jan 29, 2020 at 7:13 AM Rasesh Mody wrote: > > 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 Applied to dpdk-next-net-mrvl/master. Thanks > --- > 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 >