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 0C530A0542; Tue, 6 Sep 2022 09:31:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA00740143; Tue, 6 Sep 2022 09:31:00 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 3C67A400D6 for ; Tue, 6 Sep 2022 09:30:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662449458; x=1693985458; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=2mECKxCJWSk4rqssInDxAYkzHi/0aLn1QEf+a7w/dwU=; b=nxq8g7xRvZcWQmaUBZ14fMK3IRPPYNX/42WlltyJmI7ObyUvVlpcBHkH DBpvW8aVq5oQL2FxRJZDCCQuJQyUksK0Dce7svawSgKCzibims8son9PN dM+drVamXky+KvccklyfljJl3MJJgO27Yv4RiRe9KM1i6D4QD+ASDGbom 1G1QKDUtaypDTphtXtA9BWqbskvlbmnV/Q2EMfs/LCrXDdbdQJJydWVzo GgXg0lMTuYH+GtAkxKiJMG6tsZ3q93uDXyxQdWBlRwYtzF1w1i2/SMQk4 sYLEBNQUdG4bmcCGrArr7wm0BG/pO2IfaWucno7mgVl0TwO0LYyIlk7sG w==; X-IronPort-AV: E=McAfee;i="6500,9779,10461"; a="279541485" X-IronPort-AV: E=Sophos;i="5.93,293,1654585200"; d="scan'208";a="279541485" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 00:30:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,293,1654585200"; d="scan'208";a="789589811" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga005.jf.intel.com with ESMTP; 06 Sep 2022 00:30:46 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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 00:30:45 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX610.amr.corp.intel.com (10.22.229.23) 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 00:30:45 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) 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 00:30:45 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by edgegateway.intel.com (134.134.137.100) 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 00:30:45 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G/gIqDegA08kPWbUGdBx6Cd9qT0EVZDBQlqsATBV7H/VJMvQ4ufH8e6NcrjxiaKKiFvlFizAxZRUvp2YP8wSuwEzun79HH41Ye0Adixd2pDpR/CZpFNL4Amp2tXeED6oUCIkNdy3g9Qqhqwo5SXhXm29lX0NQTFpj1OLi5pokUfuDgIBV8HC0Ob7K5jPlExlZYUL95ksqeMhxWBT3UOMGx4qui2tncF06B0GBqpM6UpqEHBgegkYkYSswOznxhxj76d3LzHEcxyoKJGiIFJpBy73oiR0RYxLYvLMMZ+EsyFqbyC2TFoc74OPNx2fTg+/PtmEXwEw3/y6jgPrQwvO9g== 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=ga9biHDkSh9FMT1d3XFyxWGvDOGkHsk4dtDcoZnj7gc=; b=nchziluNPs/HUrmfqK7gede0YscSnCZcYs2j8vK+evUDgQyk+anCercgpOTejkB59qUAhecInPltqX0/zP+Y8NSPyHMOGtqXabWB3TTaI03RQSInpvWIIajz2fd5sF+Qt/cKZx0ItBzdkIbdqNftQj/bPECFMzkUqlbwq76bQ/8LjxlzV9AXnG+NLAB6gofn/i+iCWqL5NWbc8Yyf/L1GBZrg4TydDmmNfmTgAdg4ZWO46rG98no3WzQ1PIlAzMGPdJ01kWMntBx5lU8POf8ma0VtXdj5QsKYpvswCzKNfWQkLcTVKAN0hGs6yx3urpLcjwmuBMg26TA6NFA0/SEAQ== 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 DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by CY4PR11MB1429.namprd11.prod.outlook.com (2603:10b6:910:9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Tue, 6 Sep 2022 07:30:43 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::d94c:1798:9e3b:804e]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::d94c:1798:9e3b:804e%9]) with mapi id 15.20.5588.011; Tue, 6 Sep 2022 07:30:43 +0000 From: "Zhang, Qi Z" To: "Wang, Jie1X" , "dev@dpdk.org" CC: "Yang, Qiming" , "Wu, Jingjing" , "Xing, Beilei" , "Yang, SteveX" Subject: RE: [PATCH v3 3/5] net/iavf: support flow subscrption pattern Thread-Topic: [PATCH v3 3/5] net/iavf: support flow subscrption pattern Thread-Index: AQHYvFhoSo9heXGuyEu6AGayp7CFpK3SC9gQ Date: Tue, 6 Sep 2022 07:30:43 +0000 Message-ID: References: <20220809062122.1203281-1-jie1x.wang@intel.com> <20220830180514.693175-1-jie1x.wang@intel.com> <20220830180514.693175-4-jie1x.wang@intel.com> In-Reply-To: <20220830180514.693175-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: c483ca42-6dec-4eba-7754-08da8fd9b4ff x-ms-traffictypediagnostic: CY4PR11MB1429:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6oU/H52/lavdtMqj9obur1wgUVYrYTW0au2CLfikRrk1Y5ajljXur9jhtvctTcMNDSXIPKu6rRsgM3wBmBbX0edIQ7C98ZMyAmdVvkC4L1Forb/Gpj7ao7fxAAQZDdwYyjWAP9t4DM9/rSqzs0imVPFwx4ztKApPnFIJcRXCJmCNQeV6dXZYfycuiIku3kWMI2tyTkPOKgGDUUO829S8RhGqMi9r++SeBp0Xzff+V4IuMKUspA9oOQYh/tewyyg+qNntXpj3qM2Zljupn8xfFGtFN2azVu5tRd2VhULsVaIY7NobMHZnLS/WgazMlg6JpheOCP+EcpGc1vS+ks9g6sxIlEj4IIiU1Qp84QlCmIVco51nDDf2DTb8evimRSefMHqyQXt1x8zhJGRz5PcY64WQBkRHFUrYynl+gyoiMc6ugSwhujcFS3Ed+qvZL25Tvd54rOizuWeJ2vMs0fKkdZDNZdsSs0MDgfANU2ME2tnV+/Kxq9DCrfzQVUjA8PKtEaP3bbMPDRvemWV+OUrdbQwnodaZUXEiao67fM1Ha5LXF+UWlxc8hbatTzOq8/QLIbFecmwWBYOWuvC9pegGpkW5POE1wOBrwP8ou2x42EV1kU0ms2nuhM/PWkt7tD62BXbhO6FmhRgD3b2gRWAuYniE6+s7MEW98OnYsTkmzUaZ8Diho34V5QlzvzqqfSGmflDXbwreAHfGywD7WACvDow4DeYMCGPa4/pdo58nZX7D0mMBVTljzyEa9PT/97/I x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(136003)(376002)(346002)(366004)(39860400002)(71200400001)(33656002)(186003)(55016003)(66446008)(8676002)(7696005)(66476007)(52536014)(5660300002)(4326008)(66946007)(2906002)(64756008)(66556008)(26005)(53546011)(9686003)(478600001)(107886003)(6506007)(76116006)(41300700001)(8936002)(83380400001)(86362001)(82960400001)(110136005)(38100700002)(54906003)(38070700005)(122000001)(316002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oCyuC4hD0xVivlQ5nNzagDrZhKxZQzDtPvI4cPsriV+w1ZzplWEnrXiQxsJ5?= =?us-ascii?Q?JDmYxdL3h3JESUT826cWb6NcuuU4eZO+UBAOnwHuSUg7koZDJdtErsuxaUD9?= =?us-ascii?Q?eyHD0Nzscg1pUadwT1/0ALBld1Tr0qCVMrTN88VjSfvWRMuDEqyu3h7hZz/L?= =?us-ascii?Q?yAFTGjMwTePRLMupc57Keri4VV49y3O5OOWx6UtAG+V6RitMhDKW5CXd20/O?= =?us-ascii?Q?QNv9TgeCXzO0s//E0N2dh5DrqWnsPZUtHIi9vpRqQI3Xg7ut+APggPk7RRde?= =?us-ascii?Q?+1Ft4q0d1cIcIz1FfSz5UeilV0eEzwJfM6Fk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wyya4R5Rfa4IrIfQkJDkUJd41RiUVMq+pGuyh10ysWXXwc06U3yu8BQOJ5RK?= =?us-ascii?Q?mqZexr0wWUa6Qf5U3rkqZpDTBbEw3n76Y/KHAv9j+tPVQua+qiRg9wBnuVpz?= =?us-ascii?Q?Entis7IZQgMthDxTDor0aJ+9pH1SJTq4hIcuRkFBscAOoqgspy13D88Cf5Jq?= =?us-ascii?Q?ax4CPEy/4x3UonAGokfwBrysAD4kIrduyOT8vfjKRFbp9brx6Fp64PzoBC7K?= =?us-ascii?Q?Kdeuw7ll9y76lO5QlynJ3V9YHu9mQjbKlkQdRlYxa+iawi/L3vWK5QTwCnci?= =?us-ascii?Q?2krHfoig5t9tmPRlOcUlH878kKU2FJorFxCzDgixHBQWp4NI9GUDbWN0U5D0?= =?us-ascii?Q?70NEvhojsi/YFQnNZ74SnflIBRuepq8GdHSOpysc?= 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: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c483ca42-6dec-4eba-7754-08da8fd9b4ff X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2022 07:30:43.3350 (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: jkyHkoGNZlVghFEETTRpYQaCNA0rZsi/UVoy2GYyTdT57pXqFJg9xmlDAIm31H428VRrvR19WeWtRrUQJNbfPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1429 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, August 31, 2022 2:05 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhang, Qi Z > ; Wu, Jingjing ; Xing, Beile= i > ; Yang, SteveX ; Wang, Jie1= X > > Subject: [PATCH v3 3/5] net/iavf: support flow subscrption pattern >=20 ... > +static int > +iavf_fsub_parse_action(struct iavf_adapter *ad, > + const struct rte_flow_action *actions, > + uint32_t priority, > + struct rte_flow_error *error, > + struct iavf_fsub_conf *filter) > { > + const struct rte_flow_action *action; > + const struct rte_flow_action_ethdev *act_ethdev; > + const struct rte_flow_action_queue *act_q; > + const struct rte_flow_action_rss *act_qgrop; > + struct virtchnl_filter_action *filter_action; > + uint16_t valid_qgrop_number[MAX_QGRP_NUM_TYPE] =3D { > + 2, 4, 8, 16, 32, 64, 128}; > + uint16_t i, num =3D 0, dest_num =3D 0, vf_num =3D 0; > + uint16_t rule_port_id; > + > + for (action =3D actions; action->type !=3D > + RTE_FLOW_ACTION_TYPE_END; action++) { > + switch (action->type) { > + case RTE_FLOW_ACTION_TYPE_VOID: > + break; > + > + case RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT: Should be RTE_FLOW_ACTION_PORT_REPRESENTOR, as the traffic is expected to b= e sent to the given ethdev.