From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Subject: Re: [PATCH v1] doc: update mlx4 flow limitations Date: Sun, 11 Feb 2018 17:30:30 -0200 Message-ID: <20180211193029.GC8519@localhost.localdomain> References: <1518072954-19082-1-git-send-email-ophirmu@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, Adrien Mazarguil , Moti Haimovsky , Thomas Monjalon , Olga Shern , Matan Azrad To: Ophir Munk Return-path: Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by dpdk.org (Postfix) with ESMTP id 19CF71B31A for ; Sun, 11 Feb 2018 20:30:34 +0100 (CET) Received: by mail-qk0-f193.google.com with SMTP id o7so1712235qkc.1 for ; Sun, 11 Feb 2018 11:30:34 -0800 (PST) Content-Disposition: inline In-Reply-To: <1518072954-19082-1-git-send-email-ophirmu@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 Thu, Feb 08, 2018 at 06:55:54AM +0000, Ophir Munk wrote: > From: Moti Haimovsky > > This patch updates mlx4 documentation with flow > configuration limitations imposed by NIC hardware and > PMD implementation > > Signed-off-by: Ophir Munk > --- > doc/guides/nics/mlx4.rst | 77 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 77 insertions(+) > > diff --git a/doc/guides/nics/mlx4.rst b/doc/guides/nics/mlx4.rst > index 98b9716..b81a875 100644 > --- a/doc/guides/nics/mlx4.rst > +++ b/doc/guides/nics/mlx4.rst > @@ -515,3 +515,80 @@ devices managed by librte_pmd_mlx4. > Port 3 Link Up - speed 40000 Mbps - full-duplex > Done > testpmd> > + > +Limitations > +----------- > + > +Flow rules > +~~~~~~~~~~ > + > +L2 (eth) > +^^^^^^^^ > + > +- Can only use real destination MAC > +- Source MAC is not taken into consideration > + > + For example using testpmd command - src mask must be 00:00:00:00:00:00 > + otherwise the following command will fail > + > +.. code-block:: console > + > + testpmd> flow create 1 ingress pattern eth > + src spec 00:16:3e:2b:e6:47 src mask FF:FF:FF:FF:FF:FF > + / end actions drop / end > + > +- Supports only full MASK > + > + For example the following testpmd command will fail > + > +.. code-block:: console > + > + testpmd> flow create 1 ingress pattern eth > + src spec 00:16:3e:2b:e6:47 > + dst spec 4A:11:6C:FA:60:D0 dst mask FF:00:FF:FF:FF:00 > + / end actions drop / end > + > + > +- When configured to run in promiscuous or all-multicast modes does > + not support additional rules > +- Does not support the explicit exclusion of all multicast traffic > +- Does not support partial VLAN TCI VID matching > + > +L3 (ipv4) > +^^^^^^^^^ > + > +- Supports only 0 or full mask. Prerequisites: Need to have eth dst spec Plans on updating mlx5 guide with this info too? AFAIK ConnectX-4 and 5 also have this limitation and it can save some hours of debugging. Marcelo