From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0DF9CA0542; Mon, 6 Jun 2022 09:21:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC96640A7F; Mon, 6 Jun 2022 09:21:02 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2040.outbound.protection.outlook.com [40.107.237.40]) by mails.dpdk.org (Postfix) with ESMTP id 59FF440150 for ; Mon, 6 Jun 2022 09:21:01 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hkSx9mPxWFA0YyV3DUBRZQ6nXOIVLA20Ze85RHQ8anvHK2RHK3BieF0nNkXlIMP/QQ8Ux7PP4vf07S7f/7KKyBQ0LEqu7s0x5hjqTOI7MhNZmAtDiyfWS9h4fwGLD7t09elQxxYm4pANruMmRuOeH0T+/Pqz4BmvsyMEJXkCa4FUjSqRpUo81rR46xXNR3Cvxk8MES5gjSDi0/567zKEjlu1fGHPjQQwvm1BeDxy0qsU/fWrtSlDs9JC++8e6ig/aRtXBMicPBIj4s8BdMPEs44IcaElnafvllt0wSNI5aQ3y1d3DpnMul7oZPWogWqAq+q7kR5aIH3wHpuRyQdCIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e6QcAF892rV1n9DkbajKdY7MBFf6lFLYHTGuhUyqqnY=; b=Hsb9FovoC3ZuRS6loxvnHVaNF1gf06sTCpRCBrrr3ecq24hQwC4cNDw54nxeLbtFqubkt/L/yzNYQGflQsLpC4I4a2jkXbQw2JihR/CCyp4cyGvpUvhPGxxsyqHZ4P05uQTCwj9a3bpMT1X8XB/OPF8OneChlfI2RFOn1b34ejjQDByYygBjAOS64glGdsItD75GJNlIFrtFeqqDJ8BU9s+I7ivvdatOHsnj8yEt2TBaF4chF/MExhdFs+YrkbG5c2LI2fE6ZDsvF77w9GYcEVBzSCc3pzL1uCqddVd70D8P5bdTT62R/uUhkgelU/XaLnksp940UVqFw2FJ2bDdsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e6QcAF892rV1n9DkbajKdY7MBFf6lFLYHTGuhUyqqnY=; b=CegaZjD8x+viQxqp1t7facmqDA7zyJ2NQEGUn6zIAyPCaJERaANpV9QmVGf/KclMnBjZR2Ll8bQJaqTKZKKgSnhzRn/VtP1Eyu6pWUM562uoZvAmtrDzFoyXWNwM+w1dZAmKa6D7Qii6VgplzpXpuLGcqMeDKd3pmnCAYcPCtbNDCqGQFAkrlm2THaGIEV7rX9vUm0TmllvP7rzAr69Qf8n3AjyPvBHD8QYRXgRpXjidhx+rRSP0GPN5nPLLV2Nif2nC9ImlnSx7qTmwiJLLu2voiE1CuB4zK640cr9c4BjqJMKkgoxKh55Kw9f9ItgaTyk/EOmdIVShkipXO4XqnQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB4562.namprd12.prod.outlook.com (2603:10b6:5:2aa::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Mon, 6 Jun 2022 07:21:00 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::4861:58fd:b38:2f09]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::4861:58fd:b38:2f09%3]) with mapi id 15.20.5314.019; Mon, 6 Jun 2022 07:21:00 +0000 From: Slava Ovsiienko To: "Sean Zhang (Networking SW)" , Matan Azrad CC: "dev@dpdk.org" Subject: RE: [v1] net/mlx5: support represented port item Thread-Topic: [v1] net/mlx5: support represented port item Thread-Index: AQHYRlyUm0MIFyTjsECfdYxWkfio2q1CXxpA Date: Mon, 6 Jun 2022 07:21:00 +0000 Message-ID: References: <20220402064000.8772-1-xiazhang@nvidia.com> In-Reply-To: <20220402064000.8772-1-xiazhang@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 45f894a5-d07f-46e7-d67b-08da478d1b53 x-ms-traffictypediagnostic: DM6PR12MB4562:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: P65WMw/a6YscRpwLf0S8zvdsdoFOPQEtpWa3bsGWZpQCRRzg0KupXFFUj6vnMPuwLBg3tyQCAoO3JDzdPXOCMBvl8jfDh8VctXTo/T2vC7UhJbm82hR0tF4pCglphmTCIc92FY1J7s7cpIHAnHaoeLIKSkegqgU6VFI83vIBFrokNkDeO+i08OuAJwa7CVNq1U/a/qL68Pw/DOFPez5I0u0H+namV00i33PekGJCCJ2aQ0ulLdEmaSHixc054FmDc9Zrrr5ucBeNOwFIdK2kwWIgvn3LOODrdeUy5UaCD/4JnUPobh+MS1VtdE5hRXx6uSg6+BpIgn/J7qE0xNf5aw8fL9v3w98P6Ez5JjJdlDEycfIWk2yumdyRc1/My5pm2B//Qe+zR742PO6enjilqJKmLz5mSg1Q8YbbJ/vKj7ohBCCTDkPm/1oQykIAk88xTcA8LW6luNx9N2tC1Y8dxxNbtEcN2D9Ymjt1DALAoUsifs0rgs0ml9G5EVVEhTEzF7J1t4UJNVeSnU8zPxxFa7e3R1Y5w79drIqpjZQw6OWQXfENgFLHbWUz6hxFSGlIo4Pyi8GZ4zv0+Ix1wImK8hCE2nkPgynEfX+83axoXwzQpJjnh9WjmzuEUFBWV/WAeaOnUpT1Lgjlx3JuwqYKXbX9DZCrcKhkgpMwHH+jPftireZtE7qeolhb1TDr+RSQAE7mRsi4iv/vRuB9HqK8lg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(52536014)(4326008)(66446008)(33656002)(38070700005)(122000001)(316002)(8676002)(64756008)(4744005)(86362001)(2906002)(5660300002)(508600001)(66556008)(76116006)(110136005)(8936002)(66946007)(66476007)(9686003)(26005)(186003)(55016003)(7696005)(53546011)(38100700002)(6636002)(83380400001)(71200400001)(6506007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4FILIUP6jcHTSN9Ei2CJEossaFKfD2h11nDiB5u2zwOnPa8Grrzwi9PD94Tu?= =?us-ascii?Q?Cvo1JVec9NbfcXFJll5aiZf8gil9Coy9ItbuKQ7JXcHRzkr7twCi9DNhNE0e?= =?us-ascii?Q?S6kzMce7JqvXA06topV3cYhJk1fCE+ZenRRswi1BU0RVaq3u7MDcKolFq638?= =?us-ascii?Q?8OZEvJnRgIH8E40EfvhiT7NHODSS3xlrpVZ78UxCimQMXKE7j2Grnu7FAGVC?= =?us-ascii?Q?IcnJKVZRI4Rs9yOdvNblmN3svaPAUfIHJ5BAOtCO8v1n2zzcdgQUxWcKlWyv?= =?us-ascii?Q?8rG3Hf+J6sUPm/xw0zEALr2pvugGYqvDl64QmgPuRzzYIiJ3m47PaHU3XtHw?= =?us-ascii?Q?zeV1aG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us-ascii?Q?UCv69869PxJxLcgfYB0RJ/Ydjx1gOPdIMo7sMoYlFr/SRQU+DarTizBuXD0N?= =?us-ascii?Q?we2TH5AYmMz/BDD2tsoJmNYCUFtivOHldRPQ4A2lwdUq+zvC9LUlsVIY1yK/?= =?us-ascii?Q?8F7l+IajArIJdp09Dr7Hx0i04RvH9c3SrhzISkOWpnMxEZxiASWCkD0gNqiv?= =?us-ascii?Q?zVUghY8DCczqSi2NVUGC0eA3R+6W0rQQw+88TMxss1kz5IFOzlYWLUuKg3At?= =?us-ascii?Q?y5Z+zc05z5/Ml/BSogumnMG12XgSfLNRXrYCerddTO9Ut/gokVMEUEZgAPrs?= =?us-ascii?Q?/ghpr4hRPx31+yZdD0cVjEk+CowLWKMim68eaPtnHv6HzTy24wTkELfj9fX2?= =?us-ascii?Q?kQ0EWupzy0vasNLdJjmvUl+mAN1um4fdrpyW4lX5+MTzn6L9IDv20JaD5gQ2?= =?us-ascii?Q?fzdGO+4MVpwkP02CFNmSrevLIh51H3jmAjbR6DI3Pviw4lYgnLmKZUE+dyUP?= =?us-ascii?Q?sWpzYS0wtg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45f894a5-d07f-46e7-d67b-08da478d1b53 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2022 07:21:00.0630 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oCrcBOVVwuqZMGtaxEERDyu9I7MfAcNoF1dtKopz+YENzuuHXVRaG7iT4l0xBg03sTvkQgKUcdUCvpcDd24RMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4562 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Sean Zhang (Networking SW) > Sent: Saturday, April 2, 2022 9:40 > To: Matan Azrad ; Slava Ovsiienko > > Cc: dev@dpdk.org > Subject: [v1] net/mlx5: support represented port item >=20 > Add support for represented_port item in pattern. And if the spec and mas= k > both are NULL, translate function will not add source vport to matcher. >=20 > For example, testpmd starts with PF, VF-rep0 and VF-rep1, below command > will redirect packets from VF0 and VF1 to wire: > testpmd> flow create 0 ingress transfer group 0 pattern eth / > represented_port / end actions represented_port ethdev_id is 0 / end >=20 > Signed-off-by: Sean Zhang Acked-by: Viacheslav Ovsiienko