From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80053.outbound.protection.outlook.com [40.107.8.53]) by dpdk.org (Postfix) with ESMTP id 0CB6F1B193 for ; Tue, 25 Sep 2018 15:47:51 +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=g846a7m5y59Lbn7RoJ/gE++wvAd7SU97D3tGW4oZWpw=; b=WvX115YMwBZsGLfhSALvvpqt742ETO2adNDj07jR7yyqN+3m4W4bdIRQ9uqEHn3uy7aW+szVo4QjRFGJSj46UBGCykFnY9a0OpJsNMmuVOl1SQb14DCAEn4MImPeYvkftQ8MDmiGvGthvrAEOGsWCIZZ1RElTs7KtizF08W7eHQ= 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 DB6PR0501MB2023.eurprd05.prod.outlook.com (2603:10a6:4:6::17) 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 13:47:48 +0000 From: Xiaoyu Min To: ferruh.yigit@intel.com Cc: dev@dpdk.org Date: Tue, 25 Sep 2018 21:47:15 +0800 Message-Id: <20180925134718.18945-1-jackmin@mellanox.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [118.201.220.138] X-ClientProxiedBy: HK0PR03CA0050.apcprd03.prod.outlook.com (2603:1096:203:52::14) To DB6PR0501MB2023.eurprd05.prod.outlook.com (2603:10a6:4:6::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8770c98-a84b-45c0-a4b6-08d622ed7bcb 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:DB6PR0501MB2023; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2023; 3:y5a5fny7bBoJ78WMwzNE0lx80NGjMu3L0smVIuxIJTVuWqBuosToWkdUXaYC6ryhFIXYT1Pp5VjltKVqh1WZ2thuPyv0q3ow78k2/Cai9KRPa4Ny8iamfxx9gzmja+3bbEVMKyB4h06bw//qblOM2Kl+W9Bh1ZYZgeSsV1p+iDBCnrn9ttaIn6uyNJ2YlhHSWaVtyzkiBEQgK/AKrl0rRw0Wc3oEVNmSoWFIZKS9MYthVmKt4rWMbSypHWN0Bp5n; 25:/sesN2dhSYncoYnh9Orc+OS35Y284f757ybk7yeQieet/UPu53iJ+sTUzWj3bap5AGqnTr9isjZQP+yRpBHb2QfVCZl+vVz4jZC47JLLX7bfGl8bp/3jmQVPhN75SOQ2gBFfaAYX0khzWqkVifTVOc6mqew1fyRSKsHlDjLAtX4nzr3YGUIZsfqYvoJ4w+TEyy9ckPZVQ3GTsFtRbj9KGpVerXBi7EIKcLtt10Wb8sCz9uccnokukQNA5qUpbUu0X5kJBeyx8yLs5vYixQfMIKAMAZlYNJ5dSOOaD3WpnZUrvM/I10+CVYuKkPxYvVpcvoNOzSlHOkntmN9z+VUdhA==; 31:ElfvzZtVIam6p2etJ2G6MyJ0259HQs6Aqz/iwaTDfbCuicZ8we5pcLgAAsmRaWsuWR/CD6pfL6hVI0lVai5gdKVwz95j4QPO4rsQL7eAfSQt/c3c7gvhW5RBvGl9GW0e2q6ZosCa9ZOPbNtuPA3IOE6TgJ4CxGWKp36u6QcnpPnXaglOoC49/An/Ru1IAetlZbEX8gYa2Dgn3EJfPwRdopgc+CTnkTximKxu4uzq+es= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2023: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2023; 20:nb1a4nV2NmnH96x4rkN0xbTBfyO0lmQA2oCvhYA0t5PwJ+B3Y3Qp/APFTkF862zVpdQrkfOR0l9llnIrLuev9sg2ILlZJaglv60UI4IxYVQQMQJel8T5oUh+wrf2LADJrWMEGH19zDY/G35PRNqXV4zDLe5htVaQw0yYp783Tqw2lXRx/vRbi6OB3vE770s87m0dawCXeF8mc0v8NDZ+327Y+TnOjmEwqBMp2CRvsuBvC6MnSa2dFgGsUD5e0wiKTlH2chhXJlWplBogiwBDA2h9Xurmw7AlgvJYG2Q6OIk384FHkkYL9+SvHyZ6YyVRUe2cwwW4U91OJ0sugvFbjDbyePtLQDr9z2SbO4qRFqFfDBxQAEE9xL1Oroc4LqXtwQTNXHlqhmVGId7X1H6gUkW3DhkRI4xX505fYd/aD0P5KXow6aCCXIJXuCEpkF7fmGgHDlDV4XevpabnA+QaPxgfOkX21bVc8zPr8aPhOAKsREzW8EXc03gvkQ8Swkbz; 4:vDlv3linRsV+ayS+WY9Yt7GeHh+iNribuRKinGQnSsWFpniIKodZgAiosbuR183Ct8UU0pk+xBk9Hs5utajletCYrQ2dMAjoXFY4VTtKUAfcDBjtXuDC1h2U6CXqMHiWdNwmniaDr3rvXGNrRAnuQdIwMltfvfg9ycMkgruRaJ90K/i8N7AzPM0e4sQl+N4i8Py4sOffV1yKkQI61rP6ntf7M7eWmFriweU5hzJVM6wr8Vh1ztIKf2mICwODvSpxaTHSyG25/JuAFiSJ0NXdrg== 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)(52105095)(10201501046)(3002001)(6055026)(149066)(150027)(6041310)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(201708071742011)(7699051); SRVR:DB6PR0501MB2023; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2023; X-Forefront-PRVS: 08062C429B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(136003)(396003)(39860400002)(376002)(199004)(189003)(6306002)(6512007)(4326008)(2351001)(68736007)(476003)(486006)(86362001)(2616005)(16586007)(956004)(3846002)(5660300001)(25786009)(6506007)(316002)(106356001)(26005)(2361001)(6916009)(105586002)(6666003)(6116002)(386003)(1076002)(50226002)(186003)(16526019)(2906002)(36756003)(478600001)(81156014)(305945005)(7736002)(50466002)(52116002)(966005)(48376002)(81166006)(51416003)(8676002)(97736004)(66066001)(53936002)(47776003)(6486002)(8936002)(34290500001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2023; H:dev-r630-08.mtbc.labs.mlnx; 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-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2023; 23:aIg9cJKOaLUf24KDJdSbT6UhOO/kgltVDdU798u?= =?us-ascii?Q?CBcOfjHxrZzeJCGRAAUy0QvTEY5Y0+U2fVRxbi0MVOQWluFyZKR+trzMmiOv?= =?us-ascii?Q?qSR7JcYwkFlJjmpo7+5Y4EI4KiRd31xO+Rf8KILmEto9VseuK+sr9gLfEOvm?= =?us-ascii?Q?p7Z6YNxmRfI4F0R/GuMKDypkrbQdfrfCX4ofTzMwsYBH9IW0ZiGL2LPwD7Is?= =?us-ascii?Q?QP2708X6qXZUxctyELpDtYGpYBUM5TuBqeQj/O2wr6ycUohtM4mjoDtAU1wT?= =?us-ascii?Q?esa9kOHRgimmOvoBqIO/VNW94sx43X+gLMS3NKcKEfDIVlBPZEHvV6outk1t?= =?us-ascii?Q?XYjBwn0fLpJmcnDnOo3oJp/cV0ea+hB/CRQOeuxC8DkWtUReslqc5e1Xhmju?= =?us-ascii?Q?G2AivJWew9SqslwWEK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VLT5nnbI5JxG/JJMjswkqZpswVdM7oRHuexidW60UdbSGSAJHKSgPJN2x7rgn5rGM6Ym+8kFxboZ5eA597Ecxsmarm8LUil8x8cxTbgCQ0eQjoBAKIUHGhrqH9yVltbJsXrj7bzYqQKZVyar/18C4B4RyP/7WcImXsHSXkwXINgLv4/lIT1tfijkEnYqbs0dUQe1ar49K3nZJYfrCrWlIdweOdBfUxlDf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 13:47:48.2385 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c8770c98-a84b-45c0-a4b6-08d622ed7bcb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2023 Subject: [dpdk-dev] [PATCH 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 13:47:51 -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/ 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