From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80084.outbound.protection.outlook.com [40.107.8.84]) by dpdk.org (Postfix) with ESMTP id 563723237 for ; Mon, 2 Jul 2018 11:09:08 +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=0yFTIHsdkrwanc1txduSROhBWQh3/tHMl8E15Z+98rw=; b=CecDpsxl1RNKJ2bJLHF2A4U3Fc0z+3gQvGvNBnEK09GyU/AtsOK9e9OGXMG3R2UyRH7whrCCYZHEE0DshsbulJUJODUIikv/buL1HCRA19nP5/4sZMYhO/7MelFd7Z5B33YRAAfcl+ZDytMmqtnHfdYDGbEYlsonqjKwcU+F30s= Received: from HE1PR05MB4617.eurprd05.prod.outlook.com (20.176.163.142) by HE1PR05MB1452.eurprd05.prod.outlook.com (10.164.49.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Mon, 2 Jul 2018 09:09:06 +0000 Received: from HE1PR05MB4617.eurprd05.prod.outlook.com ([fe80::8056:160a:6cc2:e7c0]) by HE1PR05MB4617.eurprd05.prod.outlook.com ([fe80::8056:160a:6cc2:e7c0%2]) with mapi id 15.20.0906.026; Mon, 2 Jul 2018 09:09:06 +0000 From: Jack Min To: Rahul Lakkireddy , "dev@dpdk.org" CC: "shaguna@chelsio.com" , "indranil@chelsio.com" , "nirranjan@chelsio.com" , Shahaf Shuler , "Xueming(Steven) Li" Thread-Topic: [dpdk-dev] [RFC 0/3] ethdev: add IP address and TCP/UDP port rewrite actions to flow API Thread-Index: AQHUCg9lT6rsj2QcEku0DGHsut/CKKR7rsFA Date: Mon, 2 Jul 2018 09:09:06 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jackmin@mellanox.com; x-originating-ip: [61.173.99.150] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR05MB1452; 7:7LlR9fOp9JBiNtRpY/Ywer/kr/TQMhEkwaO0/i29x7ntHtWF5eRe8tAPIrD79p1mtfjkLnwUycNNx1YbbPsEJSq3zZCx1ivi9vUfpo5cFyn4dPXThHiMw8pBBK7JnwrCJWVmGuX5IJKcSiEd2oCdTgtvZwC7RjfST0OPB+pt80/YfYPyeeCgvS/lbSXyFCzaJ0fIV9LvQSaPwkNFW6V9iHJxHsI6xCFKHlBrAbA2YeDMj/gy6XsxMBczwKUQ7Z2W x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 1616f6dc-11be-41e4-111e-08d5dffb7698 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:HE1PR05MB1452; x-ms-traffictypediagnostic: HE1PR05MB1452: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(189930954265078)(45079756050767); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:HE1PR05MB1452; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB1452; x-forefront-prvs: 07215D0470 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(346002)(376002)(136003)(396003)(366004)(189003)(199004)(13464003)(5660300001)(6306002)(86362001)(256004)(6246003)(53936002)(25786009)(5250100002)(486006)(305945005)(7736002)(478600001)(45080400002)(74316002)(26005)(2501003)(54906003)(446003)(11346002)(107886003)(6436002)(102836004)(110136005)(186003)(99286004)(316002)(476003)(55016002)(9686003)(966005)(97736004)(66066001)(68736007)(7696005)(6506007)(53546011)(76176011)(2900100001)(14454004)(81156014)(81166006)(33656002)(229853002)(4326008)(8936002)(106356001)(105586002)(3846002)(6116002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB1452; H:HE1PR05MB4617.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: g2p7ecjQOdPiVo2rUlo9AY6LwzguJG1rqEs/js8GScMfTWStjFHVQyryoO2x3bhqh3JW60Q8vWUpGJPBSA47gQj9oQn5/E3R5ywxYNXQypLOzexIr0RirSKTvib/rGXvvaYh2xOWnhObJ7+AOMuwSCBBCSSe8Q6FtL/G2r5PkU2XSIs0KpjQTPMz2fJOFS3NZGE/zpQPh7ty0T/DZKiGeTWCTLpu2QAgu2ktUR1Sb4ubjbYWNRH56+uKNBcA+xJKwTbMLkpX9iI2Bt2yS37T53vchSfWRrdImwU60dtwAK/vTNTFVK78DbVau0qAvbNo5Ry7qp0FPB7AVW2ZQgF8Vekewe1eSJjmZC7UJAP5P+A= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1616f6dc-11be-41e4-111e-08d5dffb7698 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2018 09:09:06.0537 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1452 Subject: Re: [dpdk-dev] [RFC 0/3] ethdev: add IP address and TCP/UDP port rewrite actions to flow API 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: Mon, 02 Jul 2018 09:09:08 -0000 Hey, I've one question:=20 Do those APIs support modify inner IP headers?=20 In our scenarios, we need to specific that NAT action is on inner or outer= IP header. Thanks, -Jack > -----Original Message----- > From: dev On Behalf Of Rahul Lakkireddy > Sent: June 22, 2018 17:56 > To: dev@dpdk.org > Cc: shaguna@chelsio.com; indranil@chelsio.com; nirranjan@chelsio.com > Subject: [dpdk-dev] [RFC 0/3] ethdev: add IP address and TCP/UDP port rew= rite > actions to flow API >=20 > This series of patches add support for actions: > - OF_SET_NW_IPV4_SRC - set a new IPv4 source address. > - OF_SET_NW_IPV4_DST - set a new IPv4 destination address. > - OF_SET_NW_IPV6_SRC - set a new IPv6 source address. > - OF_SET_NW_IPV6_DST - set a new IPv6 destination address. > - OF_SET_TP_SRC - set a new TCP/UDP source port number. > - OF_SET_TP_DST - set a new TCP/UDP destination port number. >=20 > These actions are useful in Network Address Translation use case to edit = IP > address and TCP/UDP port numbers before switching the packets out to the > destination device port. >=20 > The IP address and TCP/UDP port rewrite actions are based on > OFPAT_SET_NW_SRC, OFPAT_SET_NW_DST, OFPAT_SET_TP_SRC, and > OFPAT_SET_TP_DST actions from OpenFlow Specification [1]. >=20 > Patch 1 adds support for IP address rewrite to rte_flow and testpmd. >=20 > Patch 2 adds support for TCP/UDP port rewrite to rte_flow and testpmd. >=20 > Patch 3 shows CXGBE PMD example to offload these actions to hardware. >=20 > Feedback and suggestions will be much appreciated. >=20 > Thanks, > Rahul >=20 > [1] > https://emea01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fwww.o= pen > networking.org%2Fimages%2Fopenflow-switch- > v1.5.1.pdf&data=3D02%7C01%7Cxuemingl%40mellanox.com%7C74c8ce3b79954b2f > 123208d5d8268617%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C1%7C636 > 652582334142929&sdata=3DuoFc1KjVTkGI9fdaPNXvXYRmh%2F6HLMKT79IwgvDSH > 0k%3D&reserved=3D0 >=20 > Shagun Agrawal (3): > ethdev: add flow api actions to modify IP addresses > ethdev: add flow api actions to modify TCP/UDP port numbers > net/cxgbe: add flow actions to modify IP and TCP/UDP port address >=20 > app/test-pmd/cmdline_flow.c | 150 > ++++++++++++++++++++++++++++ > app/test-pmd/config.c | 12 +++ > doc/guides/prog_guide/rte_flow.rst | 102 +++++++++++++++++++ > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 24 +++++ > drivers/net/cxgbe/base/common.h | 1 + > drivers/net/cxgbe/base/t4fw_interface.h | 50 ++++++++++ > drivers/net/cxgbe/cxgbe_filter.c | 23 ++++- > drivers/net/cxgbe/cxgbe_filter.h | 26 ++++- > drivers/net/cxgbe/cxgbe_flow.c | 127 ++++++++++++++++++++++= + > drivers/net/cxgbe/cxgbe_main.c | 10 ++ > lib/librte_ethdev/rte_flow.c | 12 +++ > lib/librte_ethdev/rte_flow.h | 92 +++++++++++++++++ > 12 files changed, 625 insertions(+), 4 deletions(-) >=20 > -- > 2.14.1