From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0086.outbound.protection.outlook.com [104.47.2.86]) by dpdk.org (Postfix) with ESMTP id 9E5B75A44 for ; Tue, 25 Sep 2018 16:38:26 +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=7BpXpeS7Qxn678Ypvqy8SGqXL0xKwoV+Ur/o7VBW47Y=; b=vp421SCvCv9fsJ7+un+BXfuR7LHvoSrQp5fOgi8kr/ocO14eic1qBtib+rpAJ1CADmAZWQidzGWBcfvfdvk0UELpZZZfr8RNYT4K3enCn5shhOJXKrKxH81wMV1NP0iMAuGN1jM9lrwNtqVUgAE5daJjzgdlzso+o5+XkO3CGUs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jackmin@mellanox.com; Received: from dev-r630-08.mtbc.labs.mlnx (118.201.220.138) by AM5PR0501MB2020.eurprd05.prod.outlook.com (2603:10a6:203:1a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Tue, 25 Sep 2018 14:38:23 +0000 From: Xiaoyu Min To: ferruh.yigit@intel.com Cc: dev@dpdk.org Date: Tue, 25 Sep 2018 22:37:16 +0800 Message-Id: <20180925143719.23339-1-jackmin@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925134718.18945-1-jackmin@mellanox.com> References: <20180925134718.18945-1-jackmin@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [118.201.220.138] X-ClientProxiedBy: HK2PR04CA0045.apcprd04.prod.outlook.com (2603:1096:202:14::13) To AM5PR0501MB2020.eurprd05.prod.outlook.com (2603:10a6:203:1a::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b105d85-8a26-4477-83f6-08d622f48cf6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0501MB2020; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2020; 3:fxBh/w8oW67QKZNvZHsZ6OotLX8US3/WEQ9OwRVBsQfx2U3UMhj+gQM2kYBNrlpG2UZsaRuSStF1QvoBFDGQh9h5Js3JJLKBaXZFJDyIJWMr1U72wfp2cHIlaelmwBRa8QFttPfY5rJRnTfqciw+PrCLsBK9p/nRsenQfjO7WHByNlIMux8SLolMg6A89Ocd3y0I175scFCNfUA3DQSP4VK6z/bkgKBmQrVtNvpBC/U3oYMupyqyuSNDNwmC10J2; 25:XuJ3ql50O/0R5obP8vlj+5AAhE70aIcG7MsdVQgpRLsnshg2lMDFlq2Vrqvpqzg5cI+lPQSgGbvK6tTTOsF75q+5ERb3W6Ul9f1OqgbUoJEH4ty1keW7vYviQGbY5sKU0yxQZ0Yg7VIsxqOlKXwANY8uLiVg0sS8HDbYTElMnDvgiEpv3fJRJr52lKI4K2Jgnp/WpL2xV0VyAz9OBo5hocTk/9V1gKJE8uUHtrpLR5NjD7ipFXk+W1x8PJqHZByHUtMPJC5XS+3f+pIjgepHPcWfdKqLV6x6XWeTCZ98nZeTMcmNw29Zp3MIO0RxAYdDt0D5vrD3zfEyCFmP5kvr8g==; 31:/P8uvI9KncKuOZk+b9UOsaUWwkl3kFZesqPw9zdZ3danV8gKq6ifLJZGVQaQiTW46Allg/+hN//p26Kw29eL94TUDaPPDVVSCkZHCFdyTLPAZ8lc8NPnVci2QQv4irfqYUXdPbEekQady5FrQiPNXcrRvfCgF4895D4SZcbL5WI/S9Rn7YEwHINjQ7c2Xkae+JyRMIFvUlF3B7zjkXwZB4OWcJaZQB9SS8y5f7PScw0= X-MS-TrafficTypeDiagnostic: AM5PR0501MB2020: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2020; 20:Bj4H4TuWDHcTqZwHgsHSO9Fo/FutH1w074q/kaVFwquvofkJJMQXV6qt3Ymf3pycEd4BGYDR6cGLj1xBr3bPgceqdEuXqBrt/4L7CS87HjiKAoO4Gog6szz9nFfCSrj9BC7ac6rKZGx8Y5rahJrMMsoP/HRrpqA39zkWPIW1ok9Q9vG6Jtsz134NJTycjG7z03RZo/uxEMH2tUNoWFUXN6b9Oy3pzihn0PVDs7VG9nK1osM5/nd6pTqCl+htUJexdR5GW0VkDjokcjIqtsZEsJzQS75vHs+MOJSF9yrTAu4xKPuN85FUwDrj56oYc5SU9uB1bZRfj0cBDwNnN5JtNXlmee26Fqnu/yKimVDKCT0yOTUgLLd/GIU5ZeSQn3/T1TqSyYYJ8RdhH+d1bfm9dykTiHLKHeRY2/B/jvT17FGMnQ2ulQs4LK5HShScgVKFlMFp3Je8REzcpqVJNac6WsY/y1DM7I7P2678HqBQuCvuKUJX258LhCWIpVK4uw9q; 4:6QuQNEyrrR5ogfcA2gHjKxbFQYoA3/3oYZV7HBgQP0z5h+J7gEFO+X+LToIfitwSguiThlDV+Yt/BMq4gc1JRmh2JIzajqSM8dG4oFr0nL7oeQpA1MJqoAknJaGclB1sue6SXogDYA76ShCbKjvFA7yMHFBrF5AXjD1szyDgB80vqLZ+VVTkmq632w9CXzDCLUSrhNrTin9Ur9ayoIXD0R4g/91Grkj2sll3CdHaEkxoGmUZ4wenAfUBjef27C9idOv+9dIHIC5ZI2QjHGnbqg== 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)(10201501046)(3002001)(93006095)(93001095)(3231355)(944501410)(52105095)(6055026)(149066)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(201708071742011)(7699051); SRVR:AM5PR0501MB2020; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0501MB2020; X-Forefront-PRVS: 08062C429B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(396003)(136003)(366004)(189003)(199004)(6512007)(478600001)(48376002)(6486002)(476003)(50226002)(6116002)(486006)(2616005)(3846002)(956004)(53936002)(966005)(68736007)(8936002)(16586007)(97736004)(386003)(305945005)(81156014)(6306002)(4326008)(1076002)(25786009)(6506007)(16526019)(186003)(36756003)(2906002)(26005)(316002)(7736002)(81166006)(47776003)(76176011)(6916009)(11346002)(51416003)(86362001)(52116002)(446003)(66066001)(6666003)(2351001)(50466002)(2361001)(105586002)(8676002)(5660300001)(106356001)(34290500001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2020; H:dev-r630-08.mtbc.labs.mlnx; 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-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0501MB2020; 23:VNFBgY/RU9akJYvwW1YUVgXWrTHDr02Tm0SGaDU?= =?us-ascii?Q?q0Y23oeHE3rlYjVsEFXs/Wzx1Jw7df8rJZDvU2G+7ag4OLgyGBNZREPCtiMA?= =?us-ascii?Q?rYvCEOrL6munGSFtjYfTJRSxgAMbiGEhrSdfr8m/oIdJA5rF4zuNxetBfA2b?= =?us-ascii?Q?SA8sEnI/hwglg4ZuVvB6p0g9oEuiJgeLCHiqdhYDMmZ71yEw1UhqqxM0nXaf?= =?us-ascii?Q?7qyQXg5iiKgRGW0X65wO0q2WnpUnNGtlSZ0urqD7xeGNMdYNucy8PUFCIGSc?= =?us-ascii?Q?PPNz1tfKGBlhc2nJacddCXVoNQel/aV720dS/8x0yleJFvaSJ+Jxnhj8PsAU?= =?us-ascii?Q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QWRhMSmhwC/oAuiWGQVDoW7kJS8cLTS2Jn7mCj3kzd9pcxnaGhMniO2vQcTwO2+piUuRnTSMM/jG4d87coYMf8TTEF7t/a9lBLQnB/VPn+gJqxpujgFX2W2buHvijjwAK8j3S200xvHz9Pa0w=; 7:IVsSQbVUeyA0pidgCZYvDvlBSZ62c016E8+n985PM/DRK5VX2LR/mWTuzmWjNeXGMy45zmU8NohmoaWTMYjsxEAjaPh3X92EMQNB7vNZqk1a2+nDMeAaAagpjZYNETgzzaQw0w2WtlreEXRvFUFZ/niCoWJVUFWv0V62B1krW7hrdMi4C50ZFe0tMBVgI8rLOz5/XWJW8NGuO3nKNLhmWWb/AfQ7tZf+TADeCe+jolmpYKsx5dEI17Lk0E+Or7TU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 14:38:23.7832 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b105d85-8a26-4477-83f6-08d622f48cf6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2020 Subject: [dpdk-dev] [PATCH v2 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: Tue, 25 Sep 2018 14:38:26 -0000 This patch series is for RFC[1] 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/ V2: * fix misspelled issues reported by checkpatch Xiaoyu Min (3): ethdev: add generic TTL rewrite actions app/testpmd: add commands of modify TTL net/mlx5: eswitch-modify TTL actions app/test-pmd/cmdline_flow.c | 34 ++++++++++ app/test-pmd/config.c | 3 + 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 | 74 ++++++++++++++++++++- lib/librte_ethdev/rte_flow.c | 2 + lib/librte_ethdev/rte_flow.h | 31 +++++++++ 8 files changed, 179 insertions(+), 2 deletions(-) -- 2.17.1