From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0042.outbound.protection.outlook.com [104.47.0.42]) by dpdk.org (Postfix) with ESMTP id 6D8E5568A for ; Sat, 13 Oct 2018 05:24:16 +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=wNU0y72ENgdCOje2XFB7rqXdocoU4ImRujxm2H2xQwA=; b=y2KFL8czZwUhyeWoAk2Mc9MBibq0KZaOvEXndjQ/iqy6kkUgDCqqTECtxW8NprBp29QCMr3jeEzyK9VBf9iiyjma3KdYlXugj/4LQrs9Qv0r94ApbBciuWZouyTG5cRiyHsVtVbh5vWHVHICE2xXhUv4o9toKpdRNyq/Ko2CI6I= Received: from DB6PR0501MB2023.eurprd05.prod.outlook.com (10.168.9.17) by DB6PR0501MB1990.eurprd05.prod.outlook.com (10.168.9.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Sat, 13 Oct 2018 03:24:13 +0000 Received: from DB6PR0501MB2023.eurprd05.prod.outlook.com ([fe80::b1fb:bad3:b5b1:f913]) by DB6PR0501MB2023.eurprd05.prod.outlook.com ([fe80::b1fb:bad3:b5b1:f913%3]) with mapi id 15.20.1228.020; Sat, 13 Oct 2018 03:24:13 +0000 From: Jack Min CC: "dev@dpdk.org" Thread-Topic: [PATCH v5 0/3] ethdev: add generic TTL rewrite actions Thread-Index: AQHUYqQ243wJFy4DxkeL8Stmbl2vLA== Date: Sat, 13 Oct 2018 03:24:13 +0000 Message-ID: <20181013032348.26380-1-jackmin@mellanox.com> References: <20181011132641.1000-1-jackmin@mellanox.com> In-Reply-To: <20181011132641.1000-1-jackmin@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR03CA0012.apcprd03.prod.outlook.com (2603:1096:203:2e::24) To DB6PR0501MB2023.eurprd05.prod.outlook.com (2603:10a6:4:6::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jackmin@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [118.201.220.138] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR0501MB1990; 6:IQ55HxrHrdsh0quZHwMe+bTrmnnVO29Ketky/h8s0Tq+vg7JWQhL6RbYHZXPVlitw2JyAig/w3j3CzTeLH50sU2Jfo6VNYluqj0s1dkRQ2Y9ItFghl4n4rW6tqmxGHCC3yyKMTS0GuBnUlpSY7cKC4mkqiriEu51kJ9yi6vxhxLk8sHaSttuE0j+YwrKqO+cn8lzs08q/McrasEJReIzEm8/SbqOGc/AtQAhdhaLl258el50zTuNB2l8NdMBZJMKcGre6zulkNZQLDUGJJR3PqvRddfWZnJV37Um8MFB69RKZlFY8boxb7LwAGBl+C273bv2MesYAI5wT3/LaqS7w9cpwfNTtpWvjBOU0fY2o5XXSo8yL2bm3izVb9cE+ixfO+Vq3MTmt7UYvNce3H1rRR5ymdYZ/knP/cEZh6usr9GnazY4zGBRwJ1v+LqDlvlEQxVo3TR+puyCoP09TKQiNA==; 5:Nt6Qd16RFbkrr1/hksglDAhiqJjOHM6wuu6WNwSTsLNnNrXzt33lSiIpxyBq7BKTS7k/fI1wqYYENvenDf8ZK3qQhvQZobPMyHSZYVJBe9hHLyd23ZPVbPbZiD/R4INh7tBMLsaFOzkpYk6VHq7VSvrbaebJ8irYiuW5xswcAYU=; 7:PSYjOHkBn1ScjGEkyn9f/bnCQN6sC7QmOaF4hzfcVbFtoKNVzI/zZYdGp9vaNywGVYiwqp2BCOH1U3X6+VSIsdk2fZB0/UnuBYaHSdlxQp5IHAJV6VyqBr0r0WF/UlnNjrlMJ+qMUZf29/yPJvR1vB76oDBZt3dPUyLWXEcMVUO8UQMCXxjRh32dakyJQOgDeOmTMieBq6eHSbCkQ66Pb31MaYvfjV4cLq7zXzZ3txZ+Mfjs9g6Bau0Jqn1KpNu/ x-ms-office365-filtering-correlation-id: 9f9e83f7-153e-492e-858a-08d630bb58bb 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:DB6PR0501MB1990; x-ms-traffictypediagnostic: DB6PR0501MB1990: 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)(8121501046)(5005006)(93006095)(93001095)(3231355)(944501410)(4982022)(52105095)(10201501046)(3002001)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991067); SRVR:DB6PR0501MB1990; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB1990; x-forefront-prvs: 082465FB26 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(366004)(39860400002)(136003)(189003)(199004)(5250100002)(25786009)(4326008)(8936002)(59246006)(66066001)(256004)(14444005)(68736007)(14454004)(11346002)(109986005)(2616005)(36756003)(97736004)(6512007)(6306002)(316002)(6486002)(2906002)(71200400001)(6436002)(71190400001)(8676002)(81156014)(106356001)(6116002)(3846002)(478600001)(486006)(305945005)(7736002)(86362001)(966005)(81166006)(102836004)(105586002)(2900100001)(1076002)(26005)(1671002)(186003)(476003)(99286004)(446003)(6506007)(386003)(5660300001)(76176011)(53936002)(52116002)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB1990; H:DB6PR0501MB2023.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: u1ADqtc8xNS6WvH9nEOwAyGqO34UpTBJVX5ESA33kqeZlNKfDOJzISlrNjN4MwZbi3/YqQ0qcOT7Mlt9ZdOeXF/1VXP/K/QFrzBTB9V5n0i532hhqYpvC+/55o9HBF/uKWAnMNC4GDDBYwa8zCAwlg+NnNn3AMmQQ6GyzW85VJGmP/gsXCfQpvIXwGd9LR5VWq/Lc1aBRAv6WVUwWI4BRf5E6aCGeKeSY9LYImywLjn3s76quKHVO+rqaOyQ+IWPS7pFznTcyZxJpypYQrWWASaa5BF2sUeZt3/F5U2YwaQg0QZlqINH35F0vPpTQ8PZ73IaXAmWBeCdUMwg1sTehFa9PBfwEUdXRupDct1adsQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f9e83f7-153e-492e-858a-08d630bb58bb X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2018 03:24:13.4425 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB1990 Subject: [dpdk-dev] [PATCH v5 0/3] ethdev: add generic TTL rewrite actions 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: Sat, 13 Oct 2018 03:24:16 -0000 This patch series is for RFC[1] and depends on patch[2] Patch 1 adds generic TTL rewrite actions to flow API Patch 2 adds corresponding testpmd commands Patch 3 implements the offloading logic of E-Switch rules on Mellanox MLX5 [1]: https://patches.dpdk.org/patch/43617/ [2]: http://patches.dpdk.org/patch/46621/ v2: * fix misspelled issues reported by checkpatch v3: * rebased * changed commit title of patch 3 * added example testpmd command in commit log * changes in validation v4: * fix some coding style issues * use macro of calc pedit keys * rebased v5: * fix document warning of rte_flow.rst introduced by v4 Xiaoyu Min (3): ethdev: add generic TTL rewrite actions app/testpmd: add commands of modify TTL net/mlx5: rewrite TTL by E-Switch app/test-pmd/cmdline_flow.c | 34 +++++++++ doc/guides/prog_guide/rte_flow.rst | 30 ++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 ++ drivers/net/mlx5/mlx5_flow.h | 2 + drivers/net/mlx5/mlx5_flow_tcf.c | 82 ++++++++++++++++++++- lib/librte_ethdev/rte_flow.c | 2 + lib/librte_ethdev/rte_flow.h | 31 ++++++++ 7 files changed, 184 insertions(+), 2 deletions(-) --=20 2.17.1