From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH] net/mlx5: fix VLAN stripping indication Date: Mon, 20 Feb 2017 16:59:34 +0100 Message-ID: <20170220155934.GV23344@autoinstall.dev.6wind.com> References: <1487511285-32833-1-git-send-email-shahafs@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Shahaf Shuler , adrien.mazarguil@6wind.com To: dev@dpdk.org, stable@dpdk.org Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 782582C50 for ; Mon, 20 Feb 2017 16:59:43 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id t18so23369447wmt.0 for ; Mon, 20 Feb 2017 07:59:43 -0800 (PST) Content-Disposition: inline In-Reply-To: <1487511285-32833-1-git-send-email-shahafs@mellanox.com> 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 Sun, Feb 19, 2017 at 03:34:45PM +0200, Shahaf Shuler wrote: > The indication on vlan stripping was taken from the wrong location in the > completion entry. > > Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support") > CC: stable@dpdk.org > > Signed-off-by: Shahaf Shuler > --- > drivers/net/mlx5/mlx5_rxtx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c > index 2703765..805aa5a 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.c > +++ b/drivers/net/mlx5/mlx5_rxtx.c > @@ -1447,7 +1447,7 @@ > pkt->ol_flags |= > rxq_cq_to_ol_flags(rxq, cqe); > } > - if (cqe->hdr_type_etc & > + if (ntohs(cqe->hdr_type_etc) & > MLX5_CQE_VLAN_STRIPPED) { > pkt->ol_flags |= PKT_RX_VLAN_PKT | > PKT_RX_VLAN_STRIPPED; > -- > 1.8.3.1 > Acked-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND