From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60055.outbound.protection.outlook.com [40.107.6.55]) by dpdk.org (Postfix) with ESMTP id 883C332A5 for ; Tue, 16 Oct 2018 10:14:20 +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=ENIEWLddjeuOjj0mpbHuIFb9Pi571wRaFWCSh8RsuH4=; b=n7wi7ic+RLLqh9BB0CAZvwIljvaGDznpNVwDCbpmsdkYoCXQmdSOX/hg2RYr6UK9yeFW4GLX+dVwdKflDYYHVKPa7DD+52eSymUlcpiZL/mCG+u38czfa5cRUb01KtXE8Qb6TQ8FBZEVmn4JdxSUuiSLA6pxY0txdbVOagdX78c= Received: from DB6PR0501MB2023.eurprd05.prod.outlook.com (10.168.9.17) by DB6PR0501MB2726.eurprd05.prod.outlook.com (10.172.225.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Tue, 16 Oct 2018 08:14:19 +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.1250.020; Tue, 16 Oct 2018 08:14:19 +0000 From: Jack Min CC: "dev@dpdk.org" Thread-Topic: [PATCH v6 0/3] ethdev: add generic TTL rewrite actions Thread-Index: AQHUZSg8CTYO2EgO90iHXZ6Rn7Y6dQ== Date: Tue, 16 Oct 2018 08:14:18 +0000 Message-ID: <20181016081350.24765-1-jackmin@mellanox.com> References: <20181013032348.26380-1-jackmin@mellanox.com> In-Reply-To: <20181013032348.26380-1-jackmin@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR01CA0012.apcprd01.prod.exchangelabs.com (2603:1096:203:92::24) To DB6PR0501MB2023.eurprd05.prod.outlook.com (2603:10a6:4:6::17) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [118.201.220.138] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR0501MB2726; 6:9iXYKClDH5WiENVeqzw3r3ry39L4H/wJyj/GQaYkGBTOA5POrBSRbm9D0N4TdUp1Az9igjEh61zheVPKpg7y0T7zpZFLZbJHlV6lnSAtqStDneZ0teKqsvS43qXcyL7MNriCWQ7+1Va0pHRSocs59UzwYSdsBsTQiK4GhDt8gLtDwAo6B4RGErCOP54HmjSg+UKKAP31jbAsoseUpTUILr/Tf5T2Az9quxbm3LHss4/21H6bZVNTMaec13ilEApR8Hf3P76pkFPOw7Ho7HsoV/r1MzxG7cFEYkLTraHB8SmTp/AG4T86L3B5NacPWYBYu57pHNs9f8PKL+sND/0iRnxkej4nXrM0r3Ss3bTBBjxO83e5ME9ngVeQ0ZCi6cmGZJw8e8TNsYv0ZMEom1dbg9KvXwHAnXbifGkhtYkeg9HPWYohEAIOmdWGYO+41nMRUn9rcgD9OdSn+a0s6GffDA==; 5:WFCHjev/he402cP3vHQ5azmMzzZHTz/w/dCbxBJWWEHdjI1BPc3iMDMxmsghtTlqaeexePbfj37+qL2gCFJZeXrTdNTTR/rkZoN9qFoP0mJs+spEI3H6OsnIPk9IoDY+7UEtkMZhZASeQTTkUugJh4mkyzUCRLN8gBvvMKWEYYE=; 7:LO6CJa5M0r2827txgTnOODCqMx9OhY2dEhPXFuK6vDszm0SgI0OnLKOqxHLdeO2ypUO5KUzV4MZ+sRMkPB0/qiWfykBj9fTampqyK8Yy3tOM/rJ+sG/dc2bFzqEy7mkwHs8X0aoBvDeXBVDdgebsnfAS9+4Ihib30npCdtcT7RrtpnXPwo5fUvnCMYknOXt8vXsaXIIFP3BzUguA906YHGr3uGD8zrYbIO2Xyb/vNTidLFJIUb1gGH6xQv0Nb6xC x-ms-office365-filtering-correlation-id: ea70a9e6-c589-4d8b-359b-08d6333f5ea0 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:DB6PR0501MB2726; x-ms-traffictypediagnostic: DB6PR0501MB2726: 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991067); SRVR:DB6PR0501MB2726; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2726; x-forefront-prvs: 0827D7ACB9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(39860400002)(136003)(396003)(376002)(199004)(189003)(71200400001)(25786009)(86362001)(2616005)(59246006)(7736002)(5250100002)(478600001)(476003)(966005)(1671002)(486006)(305945005)(102836004)(11346002)(3846002)(6116002)(4326008)(256004)(14444005)(446003)(109986005)(1076002)(8936002)(316002)(5660300001)(6486002)(81156014)(6436002)(8676002)(386003)(36756003)(2906002)(6306002)(81166006)(53936002)(186003)(68736007)(99286004)(52116002)(106356001)(26005)(14454004)(97736004)(66066001)(6346003)(71190400001)(2900100001)(105586002)(6506007)(6512007)(76176011)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2726; 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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jackmin@mellanox.com; x-microsoft-antispam-message-info: PD8JgB1WUolNrXqbPW2hgy8vjPBF4F71mFIC6vPrqykEP0oR01P1/E/zAWOyMZeQi0gAwhGhHvUslv53PU6YvCnCW2n5UE2QBl3c19hO0j7jUbTlNayDaZNibqa+ZUNGp3g6dFTCPNJwTIxZHg/fmhHldWg2AShw86nIYQyXA3Uuh9pa2ge71J86Yjtnpi8P1kM4xTA3EdXC5N0cIwEfOBrnNZzTOmloKvUJox1wGSGYhHW4f2W8nv8/eiBUPkVtHaqZvKuogXG3t0P412DEzN6QmlkcJgWlZhmz+SSMV5QqYBhQh1THHHANF6beyqglRQlsLIo7lNXIUI1tbqKoIYl3CUmTbRvcyWaifj2qJNs= 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: ea70a9e6-c589-4d8b-359b-08d6333f5ea0 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2018 08:14:18.8733 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2726 Subject: [dpdk-dev] [PATCH v6 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, 16 Oct 2018 08:14:20 -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 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 v6: * updated comments and documents about rte_flow APIs * 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 | 36 +++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 ++ drivers/net/mlx5/mlx5_flow.h | 2 + drivers/net/mlx5/mlx5_flow_tcf.c | 83 ++++++++++++++++++++- lib/librte_ethdev/rte_flow.c | 2 + lib/librte_ethdev/rte_flow.h | 23 ++++++ 7 files changed, 183 insertions(+), 2 deletions(-) --=20 2.17.1