From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id C0E4E1B73A for ; Tue, 24 Oct 2017 08:53:10 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id 78so11098545wmb.1 for ; Mon, 23 Oct 2017 23:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=D0UDUResrvhzht9STZH3YqXO75i1B5oBP8JAIqt/RYY=; b=pMAlI7HmFgGs9Mb1Op8v27KDetLB5mdtSokfxDs53iKNvrz9s5ZKZtS9SEjSn+bpc1 eWrmrjhgZh6zHCTzSALNcFGquMgh6xEpZu913P8btJMByZNmyMuCTRw8/dGPxbTXWIx/ /LJDipY6LSLk8vjvl3LWsHOBHGG3xgc8+3cRSof2VRAuow5XGoSFMFezmjTF3R2y3zNO 3AeWTw0BjC8Rb8BM7IheW6cUeOWU2EiNQ50NUpOObLdWpHF2wf4hWeJu0hixlOHkCiCi dz0gYnyM3agIX2F3vWFPBm507jfWxCYt37cKSW06+ETM40g5Wx4YAbpmUIc13UDsWWcL D/Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=D0UDUResrvhzht9STZH3YqXO75i1B5oBP8JAIqt/RYY=; b=HGAEgCiBsinUsiWkkaNUlKnudQGZ2Hrv3itGhCL3I4/Hi/I18z+VZXDFCDFKxd1wih rdqcwZovz0h3z3rrVhcslowG1zLqc73FehR4Cqd0qK4grdNUlNx9HMgbPKyPpPUDsGFO RTrk0TmEBAkPIe/FCtEBWO7xltbyaYAVObJwiXOk2yln8oP4pyoxyUorfeXSCGlDSfT5 drxMGUVTfYsRxk6POF4WnzWMXut+nJDTrfPSqu/3swXuCnxiT/xfOI6bboCuMjMrcgFR priRdGSXqLi6gq/lYFNPg65Z3AckdtVadSZtq19KCsFIvDAd3HfVOYw+0UwSPeiI+ArM TQcg== X-Gm-Message-State: AMCzsaW+OigcpIAeopv0XmYfttg/ygKaQriSOre8TVrrnh0mXETKRxmM iCZAKxnxLMOWU2y7Y7agNufP X-Google-Smtp-Source: ABhQp+QOr6+B1Gmokbu0l+M8B3YmSBUTrc9KGeTgmV7lkxjWLNgqK745DId104QAQNh5bSyhTy49hQ== X-Received: by 10.28.196.79 with SMTP id u76mr7448796wmf.95.1508827990136; Mon, 23 Oct 2017 23:53:10 -0700 (PDT) Received: from laranjeiro-vm (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 76sm1015055wmj.37.2017.10.23.23.53.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 23:53:09 -0700 (PDT) From: "=?iso-8859-1?Q?N=E9lio?= Laranjeiro" X-Google-Original-From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Date: Tue, 24 Oct 2017 08:53:05 +0200 To: Shahaf Shuler Cc: yskoh@mellanox.com, nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com, dev@dpdk.org, stable@dpdk.org Message-ID: <20171024065305.crh5xdkgues2bso4@laranjeiro-vm> References: <20171024061609.120662-1-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171024061609.120662-1-shahafs@mellanox.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix packet type flags for Ethernet only frame 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: , X-List-Received-Date: Tue, 24 Oct 2017 06:53:11 -0000 On Tue, Oct 24, 2017 at 09:16:09AM +0300, Shahaf Shuler wrote: > Considering the PMD supports only Ethernet transport, packet which > arrives without any packet type flags in the completion should be > marked with L2_ETHER flag. > > Fixes: ea16068c0064 ("net/mlx5: fix L4 packet type support") > Cc: stable@dpdk.org > Cc: yskoh@mellanox.com > > Signed-off-by: Shahaf Shuler > Acked-by: Yongseok Koh > --- > drivers/net/mlx5/mlx5_rxtx.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c > index 961967bf4..67e7e0639 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.c > +++ b/drivers/net/mlx5/mlx5_rxtx.c > @@ -97,6 +97,8 @@ mlx5_set_ptype_table(void) > * bit[6] = tunneled > * bit[7] = outer_l3_type > */ > + /* L2 */ > + (*p)[0x00] = RTE_PTYPE_L2_ETHER; > /* L3 */ > (*p)[0x01] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | > RTE_PTYPE_L4_NONFRAG; > -- > 2.12.0 Acked-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND