From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0087.outbound.protection.outlook.com [104.47.0.87]) by dpdk.org (Postfix) with ESMTP id DA1BD1B30B for ; Mon, 12 Feb 2018 08:41:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0qm7GSQz9KljFzkd6/nHALujO1iG//mEmzdA2a60mgk=; b=bGgbS0/owLsBaR7g3j+FgIqoNxXYwaS3KB5omokY/SHk1TrDQ7I5ddqEKBfydJZHEXfIg46NAo4BZv6ibvyW9Jsz9Qi/VX+gBfENoZtrw8CLl3PxXKZ9KiSN9pRr7Ia6n40cnC0PmLJrxnKbFnvGl6c7gEOODPK9k4YU2VoakWM= Received: from VI1PR05MB3149.eurprd05.prod.outlook.com (10.170.237.142) by VI1PR05MB3264.eurprd05.prod.outlook.com (10.170.238.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Mon, 12 Feb 2018 07:41:03 +0000 Received: from VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::cd00:54ee:63a8:937c]) by VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::cd00:54ee:63a8:937c%13]) with mapi id 15.20.0485.015; Mon, 12 Feb 2018 07:41:03 +0000 From: Shahaf Shuler To: Marcelo Ricardo Leitner , Ophir Munk CC: "dev@dpdk.org" , Adrien Mazarguil , Mordechay Haimovsky , Thomas Monjalon , Olga Shern , "Matan Azrad" Thread-Topic: [dpdk-dev] [PATCH v1] doc: update mlx4 flow limitations Thread-Index: AQHToKnqfnQf7eUo/kepIBFHmM/2iKOfnDkAgADLVVA= Date: Mon, 12 Feb 2018 07:41:03 +0000 Message-ID: References: <1518072954-19082-1-git-send-email-ophirmu@mellanox.com> <20180211193029.GC8519@localhost.localdomain> In-Reply-To: <20180211193029.GC8519@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR05MB3264; 7:knresFBM6mjPTyAeFrlr1VrbILeJ2+/0+wWnnDdR+GTiMvZKSR/WJV0RaHx/8pj13r8VQQwOH0pdcgWjqCwhGphQqlKaGroKjEzZ7EyCszIF82aQpD7Z9YAESV/+FlxKWABik4laytbOauwgdLqXJVjs1rivD1LFz2M7cLjVW6GBb8AIABqfbbfwMRHFD8TVBnroMpWO+YCT3zCAexNnTlI52VqB253Ki+LTL/Zierux/FCsuoSb0P5Q5567rqlq x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e7863faf-c36d-4be7-221f-08d571ebf823 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:VI1PR05MB3264; x-ms-traffictypediagnostic: VI1PR05MB3264: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231101)(944501161)(6055026)(6041288)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR05MB3264; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB3264; x-forefront-prvs: 0581B5AB35 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(396003)(39860400002)(366004)(376002)(199004)(189003)(3846002)(6116002)(5660300001)(107886003)(4326008)(74316002)(3280700002)(305945005)(81156014)(81166006)(25786009)(15650500001)(3660700001)(8676002)(7736002)(6246003)(86362001)(55016002)(9686003)(8936002)(39060400002)(229853002)(478600001)(53936002)(2906002)(6636002)(14454004)(54906003)(7696005)(99286004)(33656002)(66066001)(186003)(2950100002)(97736004)(106356001)(105586002)(68736007)(26005)(76176011)(5250100002)(316002)(2900100001)(6436002)(6506007)(102836004)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB3264; H:VI1PR05MB3149.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: mjSnYTuVIiEwXSTcDcMK6MOdyAzS0zQ3SMavgjGDUjKocEVAcOBVg+SIIjTvNpibEh3yy8SQ/NiYtUNGxSi06Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7863faf-c36d-4be7-221f-08d571ebf823 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2018 07:41:03.6004 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB3264 Subject: Re: [dpdk-dev] [PATCH v1] doc: update mlx4 flow limitations 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: Mon, 12 Feb 2018 07:41:06 -0000 Hi Marcelo, Sunday, February 11, 2018 9:31 PM, Marcelo Ricardo: > 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 >=20 > Plans on updating mlx5 guide with this info too? > AFAIK ConnectX-4 and 5 also have this limitation and it can save some hou= rs > of debugging. Which of the above limitations you encountered?=20 >=20 > Marcelo