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 4D7BEA0550; Wed, 7 Sep 2022 07:27:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BAD2400D6; Wed, 7 Sep 2022 07:27:41 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id D240840042 for ; Wed, 7 Sep 2022 07:27:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662528459; x=1694064459; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eo73aqYQGDs2BNs4KIrQsl2fGU+t5Du4wgR/umTFQhA=; b=KoEpxnSP+T3mo3US5jWAbzHAa2RGm0mN2QNxHppn2Pp/tbyYU3J+HW0p ozaYW833SEg7nhkCv8zgL1zo92wV03rT7OGFX3CWrqKkY/SvFq2ng/1Mh AqAZuchFpSNuJiHwnltxB/Dc63hbiDef+RpCh5rksqwWxrgQbqTpaKRmg RbS6CHxttDS03T/SbbvAjNP9W8RC22ybBqdbfVoe5+UKEtrt/UPLf36e5 rgv8C8AbKEWaQmB8/TTZICwh1zgslYCDxvVXF8rT7XVfl9LjGdEVeUcTt aZ5UsLHXoSSYEKcQ+hClP2uEMtjno+Z+WbXOdQ3OmddM6GwaPjoWrxoyo w==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="383078990" X-IronPort-AV: E=Sophos;i="5.93,295,1654585200"; d="scan'208";a="383078990" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 22:27:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,295,1654585200"; d="scan'208";a="591547273" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga006.jf.intel.com with ESMTP; 06 Sep 2022 22:27:37 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 22:27:37 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 6 Sep 2022 22:27:37 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 6 Sep 2022 22:27:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i8Vnjps3B74gPk8LiIpRAbR1xCUSJ7QTCfQGlHG9PR/E6wrsarTI5P9k+eUG5z2NM41rAHvOoUJStAcr9WUiAb+JMgYKsNFKCD/Xicya4QMCEONeFR7nhVTrAkaB6gY10ufncZYTahpKLXcqUKuRMYlPzZw44xIhGNL/C3Fh7I7LKrIZAUq+rYzsexCp+W3BE9fJ2QDowsszI3wI58ByNmFFyQOmJakHkXVJCNa5P3iCrXWtXUIbkhJ085bjFMh1E0VMdwwukDm181GZBNlYwACkOIbgKLvxnVrGW1ZQgwgJ4SMnCLGsc9EG1IVhHYBBFznqV/5LiKybCMbLLb9QJA== 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=RLYop9Fns2ju+DvQ7LWLMsHzBD1Z6LyK2wUZDE/syns=; b=lWJklDgcrzJbXsK5KFo/OSiRj96w9rNKB4TrVaOuY06kwbZn4KkeqhIe77wD4izfe/GaqpTCsj4Y7A49+fT41Anvt9xf6SOvPbrsRfPfoHEMxUnq+f8gc9qktoqmzWmzEsu79/fIwwWCNAyvzS0tIDRFcmnWluKVEoSv2F2yMXO0DJe7utgz3/KKzrGnTuamxtyVkuq9FZuIE34+C0n02B4vAgBKN+HAFDOM/DGprEQJIiz7Zlew+x8xWc63kUYmYNtYWX0VegrOVFixhpeWF9fXkaivQ4BEo+yrQIZy7dIAH5htjFUWKFt8E4np+5G5dQyMHORZOjb98qkonVgvJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MN0PR11MB5986.namprd11.prod.outlook.com (2603:10b6:208:371::22) by SN7PR11MB6678.namprd11.prod.outlook.com (2603:10b6:806:26a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.15; Wed, 7 Sep 2022 05:27:35 +0000 Received: from MN0PR11MB5986.namprd11.prod.outlook.com ([fe80::907d:95fc:bf85:13ff]) by MN0PR11MB5986.namprd11.prod.outlook.com ([fe80::907d:95fc:bf85:13ff%9]) with mapi id 15.20.5588.015; Wed, 7 Sep 2022 05:27:35 +0000 From: "Zhang, Qi Z" To: "Wang, Jie1X" , "dev@dpdk.org" CC: "Yang, Qiming" , "Wu, Jingjing" , "Xing, Beilei" , "Yang, SteveX" Subject: RE: [PATCH v5 3/5] net/iavf: support flow subscrption pattern Thread-Topic: [PATCH v5 3/5] net/iavf: support flow subscrption pattern Thread-Index: AQHYwnhMdDDSixJR7kK2IjybFezLn63Tb2kg Date: Wed, 7 Sep 2022 05:27:35 +0000 Message-ID: References: <20220809062122.1203281-1-jie1x.wang@intel.com> <20220907051040.119588-1-jie1x.wang@intel.com> <20220907051040.119588-4-jie1x.wang@intel.com> In-Reply-To: <20220907051040.119588-4-jie1x.wang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1ed981fa-3733-4426-7b6b-08da9091abff x-ms-traffictypediagnostic: SN7PR11MB6678:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WgaZ9XvQQSVuwu0UMg1Z9C3v5S3x+n2kZzX28yoO1FweTJ6HImf5z0OgVpQmLHj3CWBmHFZ2/HCnEqOLeErjdaXoF8w3PjGwoei85VPkQ8Gjh8kS7YryEmgVQdoS9SYfYWzxNhUuGqP+ZIffnBxnWEJdfdhix1v1wQL34gTtU0ly/JVXfR9utHKcaNibeJ1+hnUQUQ0a0Oh/owy6KuW7PYBxeQfXXCEIZDfsSnxcMqPcpzdmAAfsoNF+FmRbwtCD691vbVgEEsEPoUGb6e5QY6HpU22QF7Ku+qyDPg813CMarpxvSUCYWPkeLAkrlysbRJPUOVmA95KDNd8tWN1cm9YWFOVzCsP85jChn2LVRQ489ydfBbk0dFqnleIqn5+WY8zAL0IdTaOe9wMfvcd0HquKuL/+N3UotL1zzXRVsim9QY5v2w2cT200tg2ibLTPDBStjijy7X3Cr8m+U89+kvWVTlMgm2fQe6ylCaORZDiMc92onGdzwrIQXL5kr18F8SlUWeiDPKPKJBt7mPU/Y/iEsf4ErFU3x3mfRDybeQlZ4ZyghNg84rqEP1y36wEuaadouz37kF36HSyYdynnTBu60HFzjceKI0go3NF47qnmMxf1DFiSbV36jF4XgQHBsnTx4BYPoAF0gtnAUbYLfCTgNgdogyHy8UbIoTpehTuO5Mn2zJ9LVE5dIzI96hJTu+XgW2xnicnv27DrZakY5NJFoI8XGNG3d9lW4GTgPpCiRuqCpjmSSreGRxrwXQqWjW4zNsWeL42ZZLFbJ6Fxkw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR11MB5986.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(346002)(39860400002)(376002)(366004)(396003)(136003)(9686003)(83380400001)(86362001)(38100700002)(186003)(38070700005)(82960400001)(66476007)(4326008)(66946007)(66446008)(8676002)(26005)(66556008)(33656002)(76116006)(122000001)(54906003)(64756008)(110136005)(2906002)(316002)(52536014)(55016003)(71200400001)(5660300002)(107886003)(8936002)(41300700001)(6506007)(7696005)(478600001)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?IChN/gk8iiM+6M9XA5dAHAvC/GR/djhr2r24exzYE0ErkMlwkW2bDbfqfK39?= =?us-ascii?Q?cqxs1DZ2OzW4aP7fYjkVEWlUTRVq0u/HGOHPj/l5aReL1XwrrKiSM0eMnFR1?= =?us-ascii?Q?vxSAoRlckHfXQDX1xd2qUxkvPs6/lFhyB3zu5tMT7/ZSKwjCT/s0WTj3ljL+?= =?us-ascii?Q?UH2xR4nWOgQLJ3qQfIGFNAtTKcr3SWjhL5Scmo0bMsftYfoSz3DQTv54cvWQ?= =?us-ascii?Q?5gkpDLwPwa/vnRUfosObyLi7xrd/0TV4OI4THiwQiXKc52OTn7JTxLZ3ifBF?= =?us-ascii?Q?CHydBhhbQVv2aR+eJUjtkTfEFxYv5JKQUx/LZD4AQYnEm2VF/d8ZUKcG1Dva?= =?us-ascii?Q?cYpas4dBiZBTjSRsDg+winf/TtaylgrAs+hi5Sn+M3zkh5sl4N/bo5ppO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KIc9EYPssliFjAYAyqQ3H5sA0LuG60UZasAR6HJ?= =?us-ascii?Q?ulmZkStd1yHsqZRMGenrbDgAhiCt4itmuWosH2X3WsOrmaSAYiGmkGrMjEXh?= =?us-ascii?Q?N+a0W65jRHnLSxED4WCrx9FnASM3rUE0DHJUS/QbxW5AKzm87MHA0f6hudew?= =?us-ascii?Q?5cMQo2t98uqqhEcn6FjWuFVXbS+fsRluEYIPf75PvAq5dJDdMQ6lEfHSynpC?= =?us-ascii?Q?XqNxZGNBQfDaYZLFnzBakNysppZIMcoIsDfSspuArH6neTuizixAaTTppY+K?= =?us-ascii?Q?lt8d2f/E6IC0oe2XC8SAoSAk1yFKMKzxJFPb60NS?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB5986.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ed981fa-3733-4426-7b6b-08da9091abff X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2022 05:27:35.6182 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +VQZW2CdPX8p2MhuTdy0io67NcMDn2Xu2GN902a/kWs6vT4yCUzsRzznFgkOgD7F6pW4p5e31fZpwx8QzuyqxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6678 X-OriginatorOrg: intel.com 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: Wang, Jie1X > Sent: Wednesday, September 7, 2022 1:11 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhang, Qi Z > ; Wu, Jingjing ; Xing, Beile= i > ; Yang, SteveX ; Wang, Jie1= X > > Subject: [PATCH v5 3/5] net/iavf: support flow subscrption pattern >=20 > Add flow subscription pattern support for AVF. >=20 > The supported patterns are listed below: > eth/vlan/ipv4 > eth/ipv4(6) > eth/ipv4(6)/udp > eth/ipv4(6)/tcp >=20 > Signed-off-by: Jie Wang > --- >=20 > +static int > +iavf_fsub_check_action(const struct rte_flow_action *actions, > + struct rte_flow_error *error) > +{ > + const struct rte_flow_action *action; > + enum rte_flow_action_type action_type; > + uint16_t actions_num =3D 0; > + bool vf_valid =3D false; > + bool queue_valid =3D false; > + > + for (action =3D actions; action->type !=3D > + RTE_FLOW_ACTION_TYPE_END; action++) { > + action_type =3D action->type; > + switch (action_type) { > + case RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR: Need to sync the document in iavf.ini [rte_flow actions] .... port_representor =3D Y will be fixed during code merge.