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 BFC31A0C4D; Tue, 12 Oct 2021 22:55:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E55C410DC; Tue, 12 Oct 2021 22:55:49 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2078.outbound.protection.outlook.com [40.107.220.78]) by mails.dpdk.org (Postfix) with ESMTP id E6E5F40142 for ; Tue, 12 Oct 2021 22:55:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UgWKptcxx2M7jDCewrtw3KhPjJxc5NsGPMZChyWg4ieEP5uoKOCdnL1MeMk0DEMMFmo3DjMixQ0JfT+MoPMb8KXpDLjtX33Kk2Ci2d0D9LOExoJHWA2UFXKVUwYiVpyCSt2Kgy3cMwBhmrbrfXC2ODkLhqBwlybqbrmyuBMVb4eZn5jHhazRKEAXiOTF5lZMxm7SIXRIOnYzaUmw2SSLuCsuaOn8ftFnEPXkgWW7/12M7UKoYlMo8uk/QIwB3LAPxClFu2DFPdLHIRvCh/lgNXyH4pZ0GQoC4T2cMjSDPJuLlAcAIjy6ZCFtvvTdjk5VDvqJ++RmOeYLvWBIwVkI/w== 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=aBmMNTxT/8iYTnRZz1wzrRVRh32nvAmhHlXxVmhKl0k=; b=dVPI/cyr6TmVM48K4Nbp9BJmsWgj99i17gdEytpIDLovviIVWsCdONV/q/lFRSFNiwF0nlD9x0kBFfjny8GvkXpAovsUayJiYcOOX8uEQpjLjCjGz/ni512czctjX3Xz6fzHQbcd8FWbi+j9KZGT7Zx8y+C9zhdpqy5UORVDSK9zAAD+Umka/OGHHx4FhPlKyEW4kXV8+OMmi0Lq8XUKkoTNc2hLuVWVTb9Ez7RjO0BpUCdjZutHKP1G6FK4LyaSr9E7oO5REowmoss3MJlSSdtXrVvHh3WWTEBYrGcsWUHbiQr+zw1eFmeG6RhJmf4jc5aBYLz9EiREuU315cXDPw== 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=aBmMNTxT/8iYTnRZz1wzrRVRh32nvAmhHlXxVmhKl0k=; b=i1ocPGU/g0y9iF7URoB5IToHDhD4583Q4Ogt7cGsq7xraUplcXZu6zqgr9wfIkdQA4QvTXRgK1XlxMm1MVZ6nuwjncM97ByaR33c7Gie3DG3051jEocofCmYs0ujCx1C0mPIsc5cEDYKSOt/KDnZT6NZA9ADMTjX9NB66Ak+TSQCnxUurwKWjlmn/auGLQb6J2nW1sXkQIjFKXLNUUNF6vCQ+RW8lGH8gNJzpfmO27g6Z0hiDWaSW6PFSMIOehxiLh4qvCyLSiwgzagKNGpPA8wwI4pjNZIiNqz/l5kv6UtiQOhYzb+7M6rWXsEjZAWffLjsUey4+RwzfO1GXPv8VA== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR1201MB0266.namprd12.prod.outlook.com (2603:10b6:4:57::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.24; Tue, 12 Oct 2021 20:55:46 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e550:35a2:96e5:657f]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e550:35a2:96e5:657f%4]) with mapi id 15.20.4587.026; Tue, 12 Oct 2021 20:55:45 +0000 From: Slava Ovsiienko To: Ivan Malov , "dev@dpdk.org" CC: NBU-Contact-Thomas Monjalon , Ori Kam , Xiaoyun Li , Ferruh Yigit , Andrew Rybchenko Thread-Topic: [dpdk-dev] [PATCH v3 01/12] ethdev: add port representor item to flow API Thread-Index: AQHXveS7B/PPHN4CjkaOHl9vAkR096vP2oUA Date: Tue, 12 Oct 2021 20:55:45 +0000 Message-ID: References: <20211001134716.1608857-1-andrew.rybchenko@oktetlabs.ru> <20211010143930.4985-1-ivan.malov@oktetlabs.ru> <20211010143930.4985-2-ivan.malov@oktetlabs.ru> In-Reply-To: <20211010143930.4985-2-ivan.malov@oktetlabs.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3893d1a3-cd89-4f36-1544-08d98dc2a9b2 x-ms-traffictypediagnostic: DM5PR1201MB0266: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2089; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JskFPk8BZnzRNYZutIjDTY9m6iBlvhZ4pfgSOWTy3+EHmxlMHLbPgPu4Gya3ESZUBVwOT+BlZucjc9HUEQ8drxuIdF5rNakuRkFsEM/wEOK1HATIk7FruKxPcdivxbLfJo6ZxfjeTT7tj5dVpQ8G2fWIBeBqze86t/bUHCCcxUvT11o9x7sp0JeM9WcqeMAcDFN5VHH/HtdK4RkR6SI3U0+v4lHGGTHR0Cau4fwr9LMxUgwRssjPLflg6uBl4rhYISsbapf+fDosERn63au+VAUGYew1mOPpHnq+q82avZfE1GC4Y1YvlL0hqbhPqkTuADT1rkT99Gr9U0vZ7jHUB1OZkP3jFL0IiECUlXwzaW+pvutb3gxdN+uf9mde4weMcI2KFgFiRMfNoPqJ4c5pZBTF8HDqspz+ZTDXCwP9evWDsmFoRjKsRFVQxmF+/DTHFMdDQe9lDMYx5XtgxnnXyfbSAdQEk5FlElCu9quXQ0YSy4mPsxUrOzhUkn/1Z2fk5JrE22PEOE4PpuaaQkD1fVH2vgixLEpgtIvnTJ8xNYex1B+MIFn/qLiuReTi6ixfGfS5Eedcbg9wJUPL9W3NP/s4yWa8Rijrqs7lhHVFYsLTVMGVtw21cfJ5KIK4PMEnFznON98gMYqOwO2P8Of4xUp9501D6UBqq9kX5fmQYgsqDnwS2x60QrnDIrzlSP+/OAm7IAw+a9TVBjcuPonZDQ== 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:(4636009)(366004)(66556008)(64756008)(66946007)(508600001)(2906002)(66446008)(5660300002)(38070700005)(122000001)(76116006)(71200400001)(9686003)(38100700002)(55016002)(186003)(66476007)(33656002)(4326008)(8676002)(26005)(7696005)(316002)(52536014)(86362001)(6506007)(83380400001)(54906003)(8936002)(53546011)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ZA5pxGGFzuNig6wQgcdpUiC/yXD/aJsqQ31M0E0qfRYoHAcNfsuBDv/f1DNf?= =?us-ascii?Q?zygCYBnns0NQTNRoYP6vq15ZIvkS/rs+vE3gZ05E2fVOXKgDZODMlux0WmjB?= =?us-ascii?Q?3CnqORSt9KAQIPIVu5DWybdyGrgYc1+usqBav+5AuaFKWnqBwsRtdwHVuN9O?= =?us-ascii?Q?0ikK42myBtETt6zofydLEF/sfX9ZK5t6kT+AOyoDpmPjeBu/jwtJPGwVFGgO?= =?us-ascii?Q?zAKr1XiFfZH7zwTL81F6eZTMbDP7UTycO31OCbk82cYNPjffSa5dWo1FBC4s?= =?us-ascii?Q?/L1lJrUsXWEsitIL587s940WnKf7+GZmm2r9xwTYPS6kU0DQtNugHBligfAD?= =?us-ascii?Q?7D6cnL7QdxwOYeoh5KNhIxsrydZLL2+mKFh1RDIbQgwoHjnycIcvHv0Vf5Rb?= =?us-ascii?Q?aKD6yKIiZUqvc5y45WkjHxnzJZtjSYG/qdjmt4yXxguaILncTGc9ABJnK8ds?= =?us-ascii?Q?vFkCKGkG162n9CSTRqRxoCnnETWmZj0GNf87pNpFNfJu2Q8Bbz0V0raIcVkS?= =?us-ascii?Q?7203Wt1LZYneglm6EnPVAilsOa+xFndM8KdVnjarm8v7L/zMQNyLlAQpImhT?= =?us-ascii?Q?hthH+MROJaj7KK4irODo1YaQwWmX8DUR1pRedR6cA1XEOMkdhQWHh0Flrc0K?= =?us-ascii?Q?BinUoXx6N0AsO5gICo+69njem+bfPjLf0iZDWK4bvbcvuU1rAZyGQDuLxubr?= =?us-ascii?Q?icilIkBmSv55l3zOcHfPCzbsc34UExpbd0wHR0ycFqVRDx5c9zhsyG7spm/z?= =?us-ascii?Q?yHSc9pVe05M12s9i1wDAB5ZHq0mw8NetF9P4lWj31HIM+qn2ybahgVbj8+uY?= =?us-ascii?Q?kxxJDBv1LeYKho4GjV6zIZHe5v/Xx2dbv6ZsFlIHuJ59fvWD9ixbsA4XUy60?= =?us-ascii?Q?cWOh2ABiNidznKd8k4HASsNbc8DvaNLMVshyyA6FEZZUvSg7yrFfmkL3D5j6?= =?us-ascii?Q?UoCatq4iZMw8Kkl8ShMC8vJyCDmpmXUM332tDkNJJg2uMhu9ehlwHe+5uPHy?= =?us-ascii?Q?JBB57fV4974SuBXeXG5RAyCSs4pah8OZm2Xs270YLgJZKB1n7eeRVn/JYwuS?= =?us-ascii?Q?GFMbnyCDJ3ZZR7cjw04F/BwtUwIOal+gzURjU9alnzjEcsPGBnKnzR+gqhsy?= =?us-ascii?Q?T+Sx/RukcH7Q5su+U9zzVwf3R375DB7uo48Qp/v/VexO1a/omnUj1lgmC4UW?= =?us-ascii?Q?pCr6aXRGHsGmqdVDRfqsevTBkN7e6pgEBBAmxJHjm/qx2oQ/iSSbHVQf+pWV?= =?us-ascii?Q?qQsVhrdFTTwWCHxvJ/h0+q5d18FXtfgWHGUVSznENnpHJLjlxxIRmaP8gryh?= =?us-ascii?Q?FZs=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: 3893d1a3-cd89-4f36-1544-08d98dc2a9b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2021 20:55:45.9118 (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: VaCZOTWF8aFJun8ldtN46JwwC+NSG2zQe/fpED05+WNTZ/v/41a3w3Dv5+ZQ65Oas0XQrxO1Uq278setQ70ZRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0266 Subject: Re: [dpdk-dev] [PATCH v3 01/12] ethdev: add port representor item to flow API 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 Sender: "dev" Hi, Please, see below. > -----Original Message----- > From: dev On Behalf Of Ivan Malov > Sent: Sunday, October 10, 2021 17:39 > To: dev@dpdk.org > Cc: NBU-Contact-Thomas Monjalon ; Ori Kam > ; Xiaoyun Li ; Ferruh Yigit > ; Andrew Rybchenko > > Subject: [dpdk-dev] [PATCH v3 01/12] ethdev: add port representor item to > flow API >=20 > For use in "transfer" flows. Supposed to match traffic entering the embed= ded > switch from the given ethdev. >=20 > Must not be combined with direction attributes. >=20 > Signed-off-by: Ivan Malov > --- > app/test-pmd/cmdline_flow.c | 27 ++++++++++ Should we separate testpmd changes into dedicated commit? This patch intermixes RTE Flow API update and testpmd. With best regards, Slava > doc/guides/prog_guide/rte_flow.rst | 59 +++++++++++++++++++++ > doc/guides/rel_notes/release_21_11.rst | 2 + > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 ++ > lib/ethdev/rte_flow.c | 1 + > lib/ethdev/rte_flow.h | 27 ++++++++++ > 6 files changed, 120 insertions(+) >=20 > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c > index bb22294dd3..a912a8d815 100644 > --- a/app/test-pmd/cmdline_flow.c > +++ b/app/test-pmd/cmdline_flow.c > @@ -306,6 +306,8 @@ enum index { > ITEM_POL_PORT, > ITEM_POL_METER, > ITEM_POL_POLICY, > + ITEM_PORT_REPRESENTOR, > + ITEM_PORT_REPRESENTOR_PORT_ID, >=20 > /* Validate/create actions. */ > ACTIONS, > @@ -1000,6 +1002,7 @@ static const enum index next_item[] =3D { > ITEM_GENEVE_OPT, > ITEM_INTEGRITY, > ITEM_CONNTRACK, > + ITEM_PORT_REPRESENTOR, > END_SET, > ZERO, > }; > @@ -1368,6 +1371,12 @@ static const enum index item_integrity_lv[] =3D { > ZERO, > }; >=20 > +static const enum index item_port_representor[] =3D { > + ITEM_PORT_REPRESENTOR_PORT_ID, > + ITEM_NEXT, > + ZERO, > +}; > + > static const enum index next_action[] =3D { > ACTION_END, > ACTION_VOID, > @@ -3608,6 +3617,21 @@ static const struct token token_list[] =3D { > item_param), > .args =3D ARGS(ARGS_ENTRY(struct rte_flow_item_conntrack, > flags)), > }, > + [ITEM_PORT_REPRESENTOR] =3D { > + .name =3D "port_representor", > + .help =3D "match traffic entering the embedded switch from the > given ethdev", > + .priv =3D PRIV_ITEM(PORT_REPRESENTOR, > + sizeof(struct rte_flow_item_ethdev)), > + .next =3D NEXT(item_port_representor), > + .call =3D parse_vc, > + }, > + [ITEM_PORT_REPRESENTOR_PORT_ID] =3D { > + .name =3D "port_id", > + .help =3D "ethdev port ID", > + .next =3D NEXT(item_port_representor, > NEXT_ENTRY(COMMON_UNSIGNED), > + item_param), > + .args =3D ARGS(ARGS_ENTRY(struct rte_flow_item_ethdev, > port_id)), > + }, > /* Validate/create actions. */ > [ACTIONS] =3D { > .name =3D "actions", > @@ -8343,6 +8367,9 @@ flow_item_default_mask(const struct > rte_flow_item *item) > case RTE_FLOW_ITEM_TYPE_PFCP: > mask =3D &rte_flow_item_pfcp_mask; > break; > + case RTE_FLOW_ITEM_TYPE_PORT_REPRESENTOR: > + mask =3D &rte_flow_item_ethdev_mask; > + break; > default: > break; > } > diff --git a/doc/guides/prog_guide/rte_flow.rst > b/doc/guides/prog_guide/rte_flow.rst > index 2b42d5ec8c..91d5bdd712 100644 > --- a/doc/guides/prog_guide/rte_flow.rst > +++ b/doc/guides/prog_guide/rte_flow.rst > @@ -1425,6 +1425,65 @@ Matches a conntrack state after conntrack action. > - ``flags``: conntrack packet state flags. > - Default ``mask`` matches all state bits. >=20 > +Item: ``PORT_REPRESENTOR`` > +^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +Matches traffic entering the embedded switch from the given ethdev. > + > +Term **ethdev** and the concept of **port representor** are synonymous. > +The **represented port** is an *entity* plugged to the embedded switch > +at the opposite end of the "wire" leading to the ethdev. > + > +:: > + > + .--------------------. > + | PORT_REPRESENTOR | Ethdev (Application Port Referred to by its = ID) > + '--------------------' > + || > + \/ > + .----------------. > + | Logical Port | > + '----------------' > + || > + || > + || > + \/ > + .----------. > + | Switch | > + '----------' > + : > + : > + : > + : > + .----------------. > + | Logical Port | > + '----------------' > + : > + : > + .--------------------. > + | REPRESENTED_PORT | Net / Guest / Another Ethdev (Same > Application) > + '--------------------' > + > + > +- Incompatible with `Attribute: Traffic direction`_. > +- Requires `Attribute: Transfer`_. > + > +.. _table_rte_flow_item_ethdev: > + > +.. table:: ``struct rte_flow_item_ethdev`` > + > + +----------+-------------+---------------------------+ > + | Field | Subfield | Value | > + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D+ > + | ``spec`` | ``port_id`` | ethdev port ID | > + +----------+-------------+---------------------------+ > + | ``last`` | ``port_id`` | upper range value | > + +----------+-------------+---------------------------+ > + | ``mask`` | ``port_id`` | zeroed for wildcard match | > + +----------+-------------+---------------------------+ > + > +- Default ``mask`` provides exact match behaviour. > + > Actions > ~~~~~~~ >=20 > diff --git a/doc/guides/rel_notes/release_21_11.rst > b/doc/guides/rel_notes/release_21_11.rst > index 89d4b33ef1..1261cb2bf3 100644 > --- a/doc/guides/rel_notes/release_21_11.rst > +++ b/doc/guides/rel_notes/release_21_11.rst > @@ -188,6 +188,8 @@ API Changes > Also, make sure to start the actual text at the margin. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D >=20 > +* ethdev: Added item ``PORT_REPRESENTOR`` to flow API. > + > * kvargs: The experimental function ``rte_kvargs_strcmp()`` has been > removed. Its usages have been replaced by a new function > ``rte_kvargs_get_with_value()``. > diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst > b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > index 8ead7a4a71..dcb9f47d98 100644 > --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst > +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > @@ -3795,6 +3795,10 @@ This section lists supported pattern items and > their attributes, if any. >=20 > - ``conntrack``: match conntrack state. >=20 > +- ``port_representor``: match traffic entering the embedded switch from > +the given ethdev > + > + - ``port_id {unsigned}``: ethdev port ID > + > Actions list > ^^^^^^^^^^^^ >=20 > diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c index > 8cb7a069c8..5e9317c6d1 100644 > --- a/lib/ethdev/rte_flow.c > +++ b/lib/ethdev/rte_flow.c > @@ -100,6 +100,7 @@ static const struct rte_flow_desc_data > rte_flow_desc_item[] =3D { > MK_FLOW_ITEM(GENEVE_OPT, sizeof(struct > rte_flow_item_geneve_opt)), > MK_FLOW_ITEM(INTEGRITY, sizeof(struct rte_flow_item_integrity)), > MK_FLOW_ITEM(CONNTRACK, sizeof(uint32_t)), > + MK_FLOW_ITEM(PORT_REPRESENTOR, sizeof(struct > rte_flow_item_ethdev)), > }; >=20 > /** Generate flow_action[] entry. */ > diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index > 7b1ed7f110..3625fd2c12 100644 > --- a/lib/ethdev/rte_flow.h > +++ b/lib/ethdev/rte_flow.h > @@ -574,6 +574,15 @@ enum rte_flow_item_type { > * @see struct rte_flow_item_conntrack. > */ > RTE_FLOW_ITEM_TYPE_CONNTRACK, > + > + /** > + * [META] > + * > + * Matches traffic entering the embedded switch from the given > ethdev. > + * > + * @see struct rte_flow_item_ethdev > + */ > + RTE_FLOW_ITEM_TYPE_PORT_REPRESENTOR, > }; >=20 > /** > @@ -1799,6 +1808,24 @@ static const struct rte_flow_item_conntrack > rte_flow_item_conntrack_mask =3D { }; #endif >=20 > +/** > + * @warning > + * @b EXPERIMENTAL: this structure may change without prior notice > + * > + * Provides an ethdev port ID for use with the following items: > + * RTE_FLOW_ITEM_TYPE_PORT_REPRESENTOR. > + */ > +struct rte_flow_item_ethdev { > + uint16_t port_id; /**< ethdev port ID */ }; > + > +/** Default mask for items based on struct rte_flow_item_ethdev */ > +#ifndef __cplusplus static const struct rte_flow_item_ethdev > +rte_flow_item_ethdev_mask =3D { > + .port_id =3D 0xffff, > +}; > +#endif > + > /** > * Matching pattern item definition. > * > -- > 2.20.1