From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80057.outbound.protection.outlook.com [40.107.8.57]) by dpdk.org (Postfix) with ESMTP id D6CED1B557 for ; Thu, 11 Oct 2018 15:39:22 +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=ErLfLRo41uchoYSSZKMwogi1lgYgDjMV9iuMt0OsIB0=; b=A7ODxWhrSz+4RPtvn40beLDikc3/7qWNFpyjP8dDoMqOyIVWwLTxDuUHEm9jfmj3cQnhq1xFq6l+SlvqkJCgD6ZQTKg0Q+y/9rM3rVgl7C346vrXtI2K4MnnlGzxfWjzza39e5MSYPslJ8ZG6NMSgChLcHUW52b6DU64G+dkkqM= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4507.eurprd05.prod.outlook.com (52.134.109.141) 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:39:21 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::80e:e6b:baf2:d973]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::80e:e6b:baf2:d973%3]) with mapi id 15.20.1228.020; Thu, 11 Oct 2018 13:39:21 +0000 From: Shahaf Shuler To: Jack Min , Yongseok Koh CC: "dev@dpdk.org" Thread-Topic: [PATCH v4] net/mlx5: rewrite IP address UDP/TCP port by E-Switch Thread-Index: AQHUYWVp89zeQ4yngUC/Ydioe0HlXaUaDEPg Date: Thu, 11 Oct 2018 13:39:21 +0000 Message-ID: References: <20181011092616.12448-1-jackmin@mellanox.com> <20181011132139.550-1-jackmin@mellanox.com> In-Reply-To: <20181011132139.550-1-jackmin@mellanox.com> 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=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4507; 6:cNNWAB446vsHyt00lWH32NsK3BJiB+7BuOr3oHafWzNKE1GJJtH+Ktb3mh6E1yH8cAWBfm8d8+HqSdt3p+KK81wIo4YdtQG0HrBpWhRfIrPy1hSY11MwL4pLx6tBsxIAF1Ok6ZL2V7os7G1QVUmwRT2k8mcCUyllJWVFq87TQtWJ8AqeEJsLagzNj1S4hAQ8aIxsvKvVvDgFigakPzN2/33zgnzxX58vs2DypMJe9tOpSq2MXA1LY/j5Yj7I9SM+UogAtfaJl6cYGRt5vqqN/4DFOknyKtEa2AEVyoIiVcvESyx7vyFPYUUaxKFao5BxMXYbIZrgXGnpwA0hqDpXCXiBCVSUe3eld4jynP6lA/Ah9HePRCQnI8TuAnGa61BgD6miz2X4SQvNdcrbeDGgF2ZXKbVpyQFUn9XBQj/nU63nj1scBeXAlB7h3ihpbUIyaD6eekkrq90JMboPkfZI8w==; 5:DBHxVCfH22gZ/708uDXP6pI5UGoY8qlaXaTPnOF5C8J96Ef8y49MCV8whM+YLtwCixin755tzRoDUwxlIkhcSrUJedh20NEZYepoxkJQxj+rd1a5FcADvAG8pdDAe/yo2osqWhBgFAKF+P2x+ucOPTCYKRQuyZgwyxgcHz4i2jM=; 7:9ZX4Seq6h/vdmycL/dzpRFPrtPbDSp/2JSWmBp0VOH+O+G3vQj5+2j/nGNdquMB8JiKnaavUfmRcthTLHbI22bwWDZXdmXXa55ZJpC1FZGKASo5bctFJGtr7X3I27ttUIe6tHSs4r6M7YZy6GpWk5TeYrvELsKKPrykKzno7+2uZBz46O2qqm55FK6U6SN2rJ/puAnjH1Q1VVY13+hJFZHD21pAwqX9/Kbo7DSB5Z0urFuMpwnZvt/fghGmMs+11 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 2536e17f-dc8c-4ee5-b2f7-08d62f7ef34f 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:DB7PR05MB4507; x-ms-traffictypediagnostic: DB7PR05MB4507: 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)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(201708071742011)(7699051); SRVR:DB7PR05MB4507; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4507; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(376002)(366004)(396003)(39860400002)(199004)(189003)(110136005)(33656002)(316002)(106356001)(2900100001)(3846002)(66066001)(76176011)(6116002)(6506007)(99286004)(86362001)(7696005)(81166006)(8676002)(81156014)(8936002)(2906002)(68736007)(186003)(53936002)(102836004)(71190400001)(71200400001)(55016002)(74316002)(7736002)(305945005)(26005)(9686003)(476003)(4326008)(6436002)(25786009)(6246003)(11346002)(446003)(486006)(478600001)(256004)(229853002)(14454004)(5660300001)(105586002)(5250100002)(97736004)(6636002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4507; H:DB7PR05MB4426.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: qti1d6Hvpo4UiLKcCJbRl9HyebgkyjzIvQ4l11TJLl+2AduKlHiOcCbRv0Wo3NV51ctVqWMRDofUVxO49L5RgqNs73e98krSJx1oEhr5JtBS1zJPE/5RihlUGL8Y8OZCiQl3Ou7h/12Fp0cczZcxxCBhDRlUulAPICvXu3aCbNM2+uBMV0Ux312ART3ROwZDWdRKkI706Bae34I/86Ygwq+HCJFN8IT2FY2zi0ZueZZlwlr8Rn9iMHA7exzrax5lse6hDy3sfzqxM6rgEKqc4u9NmOUaxmyzSGyhYRlELv5z+pMpzSoi57KD3dtBo9VYXr171X47g/vHy7KetDbpm/TVcsvxIocVL9nY69TNlr0= 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: 2536e17f-dc8c-4ee5-b2f7-08d62f7ef34f X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 13:39:21.3164 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4507 Subject: Re: [dpdk-dev] [PATCH v4] net/mlx5: rewrite IP address UDP/TCP port by E-Switch 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:39:23 -0000 Thursday, October 11, 2018 4:22 PM, Jack Min: > Subject: [PATCH v4] net/mlx5: rewrite IP address UDP/TCP port by E-Switch >=20 > Offload the following rte_flow actions by inserting accordingly E-Switch = rules > via TC Flower driver >=20 > - RTE_FLOW_ACTION_TYPE_SET_IPV4_SRC > - RTE_FLOW_ACTION_TYPE_SET_IPV4_DST > - RTE_FLOW_ACTION_TYPE_SET_IPV6_SRC > - RTE_FLOW_ACTION_TYPE_SET_IPV6_DST > - RTE_FLOW_ACTION_TYPE_SET_TP_SRC > - RTE_FLOW_ACTION_TYPE_SET_TP_DST >=20 > The example testpmd command is: >=20 > flow create 0 transfer ingress > pattern eth / ipv4 / udp dst is 7000 / end > actions set_ipv4_src ipv4_addr 172.168.0.1 / > set_ipv4_dst ipv4_addr 172.168.10.1 / > set_tp_dst port 9000 / > set_tp_src port 700 / > port_id id 1 / end >=20 > Signed-off-by: Xiaoyu Min > Acked-by: Yongseok Koh Applied to next-net-mlx, Thanks.=20