From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50089.outbound.protection.outlook.com [40.107.5.89]) by dpdk.org (Postfix) with ESMTP id 9F416374 for ; Sun, 14 Oct 2018 07:55:38 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=P4EJVht6miZkvHSMWy73lHh52aM+/jAxBnQaY87ifws=; b=XjiZSss/jrOtDrriTgMgUG2oRMm6xRQ8YhJhyC8VzpzY3FoQuRgBoB38UfKB4QW0O8gI1MDl0CcnZhnnfdoeHC88oEQNtmXj+ESI96XoWU5FRREF4vbcRFw3rIjZSVRxknsl9W7+MFmVJMZ/Si7Sjoy1UD6IxFNW6ItF/pt+QaU= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4169.eurprd05.prod.outlook.com (52.134.107.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Sun, 14 Oct 2018 05:55:36 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::80e:e6b:baf2:d973]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::80e:e6b:baf2:d973%3]) with mapi id 15.20.1228.020; Sun, 14 Oct 2018 05:55:36 +0000 From: Shahaf Shuler To: Yongseok Koh CC: "dev@dpdk.org" Thread-Topic: [PATCH v4] net/mlx5: support multiple groups and jump action Thread-Index: AQHUYgeFOlDbgJd6ekCcxWE0mPaQR6UeQMDQ Date: Sun, 14 Oct 2018 05:55:36 +0000 Message-ID: References: <20181003015640.36306-1-yskoh@mellanox.com> <20181012084222.10464-1-yskoh@mellanox.com> In-Reply-To: <20181012084222.10464-1-yskoh@mellanox.com> 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: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4169; 6:4zNGLbpy8DFCWoiZiAsalXgatksAcklKV7lizfexwjja9wcG3J9wSYiO78Pr0FMZpj3psgtXmKnF4zaw04xINpVQbppc/weQHyomG5lKqZCTLwq7iCGeq8tGOhJW63uOOMIorUSFt9n9WZs495q7hpRFf7oe+5lOE2Q/nChXcWwDnQTqqAfpMzQbnOIv3K1tfi/VrzpslG0X/T1/NjP1VRHR+1OXJvaSD6OASWlQTtW7p8bKXwDpvbP48ecEvAi4xqYDhQW3qWCBCmIXZ/ihOB9/3/0uiGjL4mv10CmwqMn90YNJbyPUjO+Q1WZd3FtDWHHCwL7ldqCyYO5xtZBGvVqxiBv8w6vMeBneOcnMMJQ0hq05Val4UD2+JIpdoEl4u2wKL5ReHw/qg6Gi1T1/vgQuGgiDhB65NIxQtcrsuwEUYf4zy68kYwpIk+GBZHUZhWiBLvosWrmFTHljaEMPwQ==; 5:QDhgMrjb7cm5iHHyIywxlHHTuOMMoCZG8jRHNtV6CyExaGW0KLQnsU89sa5ecmiKfLsOLey0xlJEtTwNvJpjGGSVE3jRQfCmD/mwnSYZpV1iuTSKEHXFn6w2f/wT0lHxHZOf3gMu98QiVB9nvx5C4bxsGIrIztK6K07Y5unkjq0=; 7:tGq5WNiujNkVMfLvuE7Io8fOUhQlGVCsVtVWDD8lk0JxIn6kPLeOhEPAm7aJyyziLgW8p2tN4k/vVlBn70p/MYTMAMPZegWMLI3LzfPCvnnLkuw3RZNo20wVfXcXsggouWxnuelHVAK7vtnxYAxyXvKZJ3dBMId7A6AaE+RpxguQqNZCgYFz7gnAR5By7wPwbNM1M0Tz9claphHI5BV0SsW3LjN0K7cFDa13ti+3QrVeQ9+2GfHICvzotJUp+A0g x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: d7d4fec3-3261-4731-798e-08d63199a9c6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4169; x-ms-traffictypediagnostic: DB7PR05MB4169: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991067); SRVR:DB7PR05MB4169; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4169; x-forefront-prvs: 08252193F3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(346002)(376002)(39860400002)(366004)(199004)(189003)(105586002)(106356001)(6506007)(102836004)(6246003)(33656002)(6862004)(76176011)(66066001)(186003)(7696005)(5250100002)(316002)(71200400001)(4326008)(486006)(305945005)(6436002)(7736002)(99286004)(26005)(74316002)(14454004)(2906002)(6636002)(229853002)(5660300001)(97736004)(71190400001)(86362001)(476003)(9686003)(68736007)(25786009)(81156014)(478600001)(55016002)(446003)(14444005)(8936002)(53936002)(2900100001)(11346002)(6116002)(3846002)(81166006)(8676002)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4169; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 4kEs92MvO4+sFpSQslF+XIsL0Y9jfWPgDoTYPfGmKyg17xRfP7Vt+Oo9Gwg3zc1GT43SpYNGXcKGfG96qzwVOvljrlRJE5Yv+PX5Qmt6Jom1LHdfFp9Az0R9a9or1i+InY8nFv3i6GjGFwry5Z4IHtAEsmABPAVZuXepfmS7s7RMdzoK7b6XG1eczL/aAVT4OT7G9XIBWlC2GahwAOXDzRbwlVrAMyc3XUU9jyaSlWmoZL7LhAn85AKyR8ynrCZU9tK5XEGGNfoqK9xpTAxAcBQ9Sjxm5Db73u2iMfbD8vOo5rMgD238Ho46t3Q++PSg1ow6mTOaGxrRIzpZzAq/8Zol9L7rcvhy3sXT8FDD6F0= 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: d7d4fec3-3261-4731-798e-08d63199a9c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2018 05:55:36.6211 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4169 Subject: Re: [dpdk-dev] [PATCH v4] net/mlx5: support multiple groups and jump action 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: Sun, 14 Oct 2018 05:55:39 -0000 Friday, October 12, 2018 11:43 AM, Yongseok Koh: > Subject: [PATCH v4] net/mlx5: support multiple groups and jump action >=20 > rte_flow has 'group' attribute and 'jump' action in order to support mult= iple > groups. This feature is known as multi-table support ('chain' in linux TC > flower) in general because a group means a table of flows. Example > commands are: >=20 > flow create 0 transfer priority 1 ingress > pattern eth / vlan vid is 100 / end > actions jump group 1 / end >=20 > flow create 0 transfer priority 1 ingress > pattern eth / vlan vid is 200 / end > actions jump group 2 / end >=20 > flow create 0 transfer group 1 priority 2 ingress > pattern eth / vlan vid is 100 / > ipv4 dst spec 192.168.40.0 dst prefix 24 / end > actions drop / end >=20 > flow create 0 transfer group 1 priority 2 ingress > pattern end > actions of_pop_vlan / port_id id 1 / end >=20 > flow create 0 transfer group 2 priority 2 ingress > pattern eth / vlan vid is 200 / > ipv4 dst spec 192.168.40.0 dst prefix 24 / end > actions of_pop_vlan / port_id id 2 / end >=20 > flow create 0 transfer group 2 priority 2 ingress > pattern end > actions port_id id 2 / end >=20 > With theses flows, if a packet having vlan 200 and src_ip as 192.168.40.1= , this > packet will firstly hit the 1st flow. Then it will hit the 5th flow becau= se of the > 'jump' action. As a result, the packet will be forwarded to port 2 (VF > representor) with vlan tag being stripped off. If the packet had vlan 100 > instead, it would be dropped by the 3rd flow. >=20 > Signed-off-by: Yongseok Koh > --- Applied to next-net-mlx, thanks.=20