From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40071.outbound.protection.outlook.com [40.107.4.71]) by dpdk.org (Postfix) with ESMTP id E79261B549 for ; Thu, 11 Oct 2018 15:27:13 +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=DWEczCYpZBT/A5/HvbW8Op8+uSqUU/E0B3wRgiL17vw=; b=SMxaGLcJym6ZCQrHobFDebrfeTdIesSerONdul6Pq3LNT9U0FEdTKwb5kZfdHXg745sb4DNqPzBPHGRx9GmY4VauJy4U1zDbixVwJ1WcxXl4g+uwYqfWTe3BuS7MkOsK5L0fx6l4WxdbFaMn4rlM2uDqGnyksv67Q5cQl64tPCU= Received: from DB6PR0501MB2023.eurprd05.prod.outlook.com (10.168.9.17) by DB6PR0501MB2568.eurprd05.prod.outlook.com (10.168.74.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.21; Thu, 11 Oct 2018 13:27:12 +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; Thu, 11 Oct 2018 13:27:12 +0000 From: Jack Min CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 0/3] ethdev: add generic TTL rewrite actions Thread-Index: AQHUYWYeOmDalPU1U0mxj9ppdeaA0Q== Date: Thu, 11 Oct 2018 13:27:12 +0000 Message-ID: <20181011132641.1000-1-jackmin@mellanox.com> References: <20181010130524.23590-1-jackmin@mellanox.com> In-Reply-To: <20181010130524.23590-1-jackmin@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR04CA0077.apcprd04.prod.outlook.com (2603:1096:202:15::21) 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; DB6PR0501MB2568; 6:psgTDs3z8J5rpYqzzItkukJ25M86x1QdHU63MVrCBOqkBHhoKAWOEcyM9YNa0OPOyLYPp3la1yuNpSiHqMfmj1Fml+/od6NR+uHnyT012FstOQJwR+0dW5T+TfJyjxWFE4XZpeWNMVxNSlbgcTZXIZcX+j7KYrqsURwUDMPYh6iqVIzc0C6QmfazrU+g4D1a0P4tTpLvlIMMHZKf2MeI648dbCcluF+2TWE/z7Af7Bixk0Dven9ihtnS8t/MNH/tdOxQ0BVwL8jo3gL8e19dvzEgXcdrisPu8uM/JgSWYncSEZa2bUKTv43L168u2XMYt3l5EEoDP25buHQ7ZBaUrBiKVgCu9xxkK2LcsjMuAZ4SHhges4So4jB6/CDQYUt7MM2P6DIHo6oL4WHGL8e7NliPTe6bmauUuc/0CbNcVuRORqGkD60Qcxgs2msmS70MY0IsFTkhieL6Eoaozvk1WQ==; 5:oKCzEiD84oXG9vB71ajL2X4XGOnVJctmHzJ5H3MnzLuJvcyDh1fDex+d/7izwIG31WNHW6l2iZtCPaDcAZbDaNmOKx7GlF+Ipn5DG0W+EMHde7Sus+6BjRIs7PQ6FT6yihjlXEUQnxfq190RIo9czbyqWM4n+utfghmrt92LFbQ=; 7:bSVLaeN+e9NQifd8gXm55s6vX4ujj+1Bu6G/g7Y1qjI54bCDNLcJSCPu5M1vOOi0stRp+LEt0H08fTF6avplIaj4os9LksGHYR6tDjg6ToNqDu1iqE0ittBwDHl5h52/wqeUYPFCBtQ2zw9VAXO9rvUz41CNj2fmbl47ldcSwoqTkO0lBbkAI7v07ZFWUI+uF2vc9F1CooNuMUTL5xftiRIJHBOen88N5S2feco8VjdEuAKZD7GwPW1ymIRhFMel x-ms-office365-filtering-correlation-id: 8581b02c-7780-485d-d28a-08d62f7d4065 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:DB6PR0501MB2568; x-ms-traffictypediagnostic: DB6PR0501MB2568: 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)(3002001)(3231355)(944501410)(4982022)(52105095)(93006095)(93001095)(10201501046)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051); SRVR:DB6PR0501MB2568; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2568; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(396003)(376002)(346002)(136003)(199004)(189003)(71190400001)(316002)(6116002)(66066001)(81156014)(6436002)(8936002)(8676002)(81166006)(2900100001)(3846002)(2906002)(5250100002)(7736002)(305945005)(1076002)(6486002)(71200400001)(5660300001)(59246006)(97736004)(186003)(11346002)(446003)(109986005)(53936002)(478600001)(102836004)(1671002)(26005)(256004)(6506007)(86362001)(68736007)(25786009)(476003)(386003)(486006)(105586002)(4326008)(6306002)(966005)(6512007)(36756003)(106356001)(52116002)(14454004)(99286004)(2616005)(76176011)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2568; H:DB6PR0501MB2023.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: GV7DIDa0P7nIvlX7dKRlb7rodvfpNSp7V1WYH4o6Ke//r2pzl0VYNPBV3Tp8/V5mb287sgevbvmfPwqxo/PS9a+Rd/RvFx900J/ovUmfRq8HdT+kM3OfhcorYK+HDVxKuhANUOfcKPejh7hI9u8AzYlxtWmib6XaM5Cca1DDTTcsHmY7Pbw9IY3Q6+UXZkYVlzke8ZRO3jQE4DOiO0lfyemBQyPz8wqW5cYk5RFjLmJvIrd+v+p2X4soHi3zTeMdm/W14eLDYcwkwGl8GikpYO3ETRDM6SC2L1FXwuTrkatSR2NlxsOzXmYrP+ySnKt52DUS3YXC4iuhT9kXmjwA6ZR3qc1sFMW6u4VZ88VwC6w= 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: 8581b02c-7780-485d-d28a-08d62f7d4065 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 13:27:12.6399 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2568 Subject: [dpdk-dev] [PATCH v4 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: Thu, 11 Oct 2018 13:27:14 -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 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 | 24 ++++++ 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, 178 insertions(+), 2 deletions(-) --=20 2.17.1