From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?iso-8859-1?Q?N=E9lio?= Laranjeiro" Subject: Re: [PATCH v2 6/7] net/mlx5: fix reception when VLAN is added Date: Tue, 24 Oct 2017 09:11:42 +0200 Message-ID: <20171024071142.3wsybjacfoa6i453@laranjeiro-vm> References: <20171023192544.GA19386@yongseok-MBP.local> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Nelio Laranjeiro , dev@dpdk.org, Adrien Mazarguil To: Yongseok Koh Return-path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id BD4CF1B744 for ; Tue, 24 Oct 2017 09:11:47 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id z3so7072229wme.5 for ; Tue, 24 Oct 2017 00:11:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20171023192544.GA19386@yongseok-MBP.local> 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 Mon, Oct 23, 2017 at 12:25:45PM -0700, Yongseok Koh wrote: > On Mon, Oct 23, 2017 at 04:49:56PM +0200, Nelio Laranjeiro wrote: > > @@ -261,75 +284,59 @@ priv_dev_traffic_enable(struct priv *priv, struct rte_eth_dev *dev) > > }; > > > > claim_zero(mlx5_ctrl_flow(dev, &promisc, &promisc)); > > - } else if (dev->data->all_multicast) { > > + return 0; > > + } > > + if (dev->data->all_multicast) { > > struct rte_flow_item_eth multicast = { > > .dst.addr_bytes = "\x01\x00\x00\x00\x00\x00", > > - .src.addr_bytes = "\x01\x00\x00\x00\x00\x00", > > + .src.addr_bytes = "\x00\x00\x00\x00\x00\x00", > > .type = 0, > > }; > > > > claim_zero(mlx5_ctrl_flow(dev, &multicast, &multicast)); > > Just curious. No need to consider VLAN for multicast here? According to the lib documentation no [1] "Enable the receipt of any multicast frame by an Ethernet device" > [...] > These (bcast and ipv6_multi_mask) can be duplicated multiple times if there are > multiple MAC addrs, is that intended? There is in fact an issue in this series, it does not match my final code. I'll send a v3. [1] http://dpdk.org/browse/dpdk/tree/lib/librte_ether/rte_ethdev.h#n2304 -- Nélio Laranjeiro 6WIND