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 50B20430FE; Fri, 25 Aug 2023 10:43:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DAD740A7A; Fri, 25 Aug 2023 10:43:00 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 74AE540695 for ; Fri, 25 Aug 2023 10:42:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692952978; x=1724488978; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=BgO90OTaOxWtbge9afMCbXESXFhLVYf9p3eZrD6uh8Y=; b=B4N4Zc4haZOlB/Mhd9FExUqArRSeho23pxnWYysjSCqLRskIYB7n0N50 WuvbZC86YEFasozE1H51CoKwNO+WWJIS0+Vg/+xeZSfxZMWdPqkcarc1q c/XeaD7wmE4DjnvUfS0DFVznyHzYvWSvM+6gTPojOJnizdH/0ACBopcUu 60bFQd766Z6UEl11uDuaLhC1qsxGRd+W2vjJdwstKnnsDWyf0KFFLSrXS YYZqi0PqosDHeZqHmypkYuT+T0cYPjLT7LY0eMmmnJuGB9/IDS8EKXPGb 5cBs3R4EtvcmIEWKWwTo/PPob+1mYL6LMErqtI3swbhaV17pPS0SCzj8O w==; X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="378451372" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="378451372" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 01:42:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="772416412" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="772416412" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga001.jf.intel.com with ESMTP; 25 Aug 2023 01:42:54 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 25 Aug 2023 01:42:53 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 25 Aug 2023 01:42:53 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Fri, 25 Aug 2023 01:42:53 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.45) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Fri, 25 Aug 2023 01:42:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LB0gNbsKKIGKI35J5k6sDEaZ3PSeYcWD9021yIaJAVTxqJZ8UKVjRjnOjgQq5x8O+LcA4JnJ4B0HPJSD3bJLbB/elT14JSWrZoSGpxASFuIrdRYfVJdcB9hZUoCoDfVWn0eFKgjqxQjVETnZ3PG0sR9OrblWOMbvelNtPZ2CjFWoKDpnz9kSSxx1ifc46XgjfEkyGXozQDKu50pn7DgVZOG49HXvgN6Lt3jXk3vHrEPdvuPwer/zB9ZEL03gtVA7Qu8d+9huMqeAnTjGHJBFVSaOhY8JK0ZfgZ/dlOAZRNLDosharXySU6nC4u2IqAf0qHoy+unIrCiTjsWtxHpPYw== 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=nrB35RsbzRdCv9+tL8ryvDAhLQvnTMFgnWhrfyDr3iU=; b=IIOzbhUIQmVLgvDivQ51+K5xfA45MFhIixjQ7KT7ukvBDcYfF8VbtH5+C/gvlGKiPF6B9rbO37Yp0X2T1AwnPehEy+EgF0Q5yc4Dhwl3vOEJTJJ7zgT8ybQVTm4g9k28PMvkhQIIR9VbVGtxsBU3rXnfq57EYtZxD7AQ/Xj7pnsdGnQiuv3EvzidQKwyUcuEMQySbadCplqRgC13gwAbeu7JgO1k5G3KFRJlaj5J7o0a21220Rm+YexG+Xov4mjYguosEojeAFLRuJhbHtREIMLTB2CjLdWvCAopiWtwGuINxkVcOrNylBCv1UgEjdfgKQJtKNaQXK4yj2WBQCRuzg== 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 LV2PR11MB5997.namprd11.prod.outlook.com (2603:10b6:408:17f::10) by SJ2PR11MB8540.namprd11.prod.outlook.com (2603:10b6:a03:574::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Fri, 25 Aug 2023 08:42:51 +0000 Received: from LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::7423:9a2e:7dd5:e56]) by LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::7423:9a2e:7dd5:e56%3]) with mapi id 15.20.6699.027; Fri, 25 Aug 2023 08:42:51 +0000 From: "Xing, Beilei" To: "Zhang, Yuying" , "dev@dpdk.org" , "Zhang, Qi Z" , "Wu, Jingjing" Subject: RE: [PATCH v1 4/5] net/cpfl: add fxp rule module Thread-Topic: [PATCH v1 4/5] net/cpfl: add fxp rule module Thread-Index: AQHZzO8ryOV1gGoWsk+qzCp4rbVjma/6xLPA Date: Fri, 25 Aug 2023 08:42:51 +0000 Message-ID: References: <20230812075506.361769-1-yuying.zhang@intel.com> <20230812075506.361769-5-yuying.zhang@intel.com> In-Reply-To: <20230812075506.361769-5-yuying.zhang@intel.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=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV2PR11MB5997:EE_|SJ2PR11MB8540:EE_ x-ms-office365-filtering-correlation-id: e45e2fcd-a892-47e8-94b0-08dba54744a7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TbesyWFziukgwGR4zj8dw3IKH3rJ7VWn0gAis0YFtQ+H4Lzf0VYpahD8t1l2AV9s9K4gvoh1rVaSaksAlGSrX6gd7zLaXSh3ewjxp4OM28qhSuZuwbtQwWr/WE4Wag2s7xhJDY0r2SksOAuGfLHwT81kHBgUkvwpZtYgvxThWiFIBOE3O7nerT5CTZyTwAFJj/jf5yFTxX7A+bKi87kp0oOaBzHRqcBaosRq9m+bWvph7N5ZBBSOGZnFAGjHhqN/63dsqGC/WPHS6K8b8xtmob6pOBGPdlSoqfMLbKfO++pk8BsW64yUQJSGhkZtghuZBU0Be1L2wYP2Al0XUEAz81vvwv3akCaeHjUwphioHDf1rUeWiODFFTqELRK6tSbIYcziMlNOw2ghd7DeubaZOOxW8Hbp6/tWBf8JcyChubtWSqouF0kssz9oUatPNyxMyqF34xcaLofnhVY/YCxupHOSj4xqjAY8xYj3FVXsIBOd9vCg5knIZac3OMcwnI9kQX/qUlE9iAoV5K4sxn1DDgQ1OKskZWzYJEdvWQW2FVQXktNtG04OL8iChWY1kybFUvQwFcpP+V1kNq90OkiyvsDFg8BSSQ89mmKPP1Z3LEpZXIYAjb47np8gLxWPD14V x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV2PR11MB5997.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(376002)(39860400002)(396003)(136003)(346002)(186009)(451199024)(1800799009)(66946007)(83380400001)(53546011)(9686003)(41300700001)(66556008)(66446008)(66476007)(6636002)(316002)(76116006)(2906002)(5660300002)(52536014)(8936002)(8676002)(110136005)(478600001)(6506007)(71200400001)(7696005)(55016003)(26005)(64756008)(82960400001)(33656002)(86362001)(122000001)(38070700005)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mFKl65BO5+CBzZ4NnkKQTCpZFQ5WfIfMRLd8Nkkhq3TbUwhv5ikUJHY/KNdg?= =?us-ascii?Q?uSe4Y6Oi6RA1NKkPBNN2mJF3xO57HlderNJ1eBLLHf7EegJTXfjeqgRu0IL7?= =?us-ascii?Q?/5hGcJ6KgpL+HVTKxPX3j3tQ4AOlXw1nfHSZ7tTjG2FpH/rQgihWuHvwN7ag?= =?us-ascii?Q?nM6JdhcUgN6s/+806UPhmN3PimmlBa0ToJloPcSbv3atUwOzBuJimsd5TpWv?= =?us-ascii?Q?4ZXAbh0IVp1vDPB56Gt8Z02i5MRixe4BazboRA7GyFRSUV29fLlqCDhNypNk?= =?us-ascii?Q?53h+pg3MA4129gkGjD2IWPWm0qGkrUo1KX3xSWXc6/WOwCv5EMY80KyfjZVo?= =?us-ascii?Q?Q4EYYovzMB0z4VC4kc8YhHtLvFbBad3ktpZ30FgdCivfdAWSIsBXUy9sNYS2?= =?us-ascii?Q?hqSNuk6FCx1vpkRy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K9Mz8gI8BePuCTCX?= =?us-ascii?Q?2pdPfcNVuFMH1exYy3vfNBdnBYislN9/LSBmJC+lbwQCL02Uq0xiaobT73AA?= =?us-ascii?Q?BUmeqx4AkAzcUDB6dkP/Yc8J99hYY+FegSPeXIE44yfbUM290EvmkDTclSAT?= =?us-ascii?Q?cKpiMAYtwBsa4qHZwyXsHsIA4OK5qbLP2U7jwmAYR0wkK86Lt9nOxyvePRzf?= =?us-ascii?Q?N334ABlNSi6YhCEZE5rBzp3RRgsSgOXFPz2FlIGiPzvMuirSwTFPerywMX44?= =?us-ascii?Q?UZw/BDWHX5w7G+GXhn2ETqdliwSgHWEu/jzcEgX+?= 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: LV2PR11MB5997.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e45e2fcd-a892-47e8-94b0-08dba54744a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2023 08:42:51.5798 (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: fYozyH3Qiu11CQtZBMpUnr7bO5Q1k711UReIsKIM5evSqJcXpmCwrWOwbABNzD4r1/dUNTkVYXWbnk/V+jto+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8540 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: Zhang, Yuying > Sent: Saturday, August 12, 2023 3:55 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Wu, Jingjing > Cc: Zhang, Yuying > Subject: [PATCH v1 4/5] net/cpfl: add fxp rule module >=20 > Added low level fxp module for rule packing / creation / destroying. >=20 > Signed-off-by: Yuying Zhang > --- > drivers/net/cpfl/cpfl_ethdev.h | 4 + > drivers/net/cpfl/cpfl_fxp_rule.c | 288 +++++++++++++++++++++++++++++++ > drivers/net/cpfl/cpfl_fxp_rule.h | 87 ++++++++++ > drivers/net/cpfl/meson.build | 1 + > 4 files changed, 380 insertions(+) > create mode 100644 drivers/net/cpfl/cpfl_fxp_rule.c create mode 100644 > drivers/net/cpfl/cpfl_fxp_rule.h >=20 > diff --git a/drivers/net/cpfl/cpfl_ethdev.h b/drivers/net/cpfl/cpfl_ethde= v.h > index c71f16ac60..63bcc5551f 100644 <...> > +struct cpfl_lem_rule_info { > + uint16_t prof_id; > + uint8_t key[CPFL_MAX_KEY_LEN]; > + uint8_t key_byte_len; > + uint8_t pin_to_cache; > + uint8_t fixed_fetch; > +}; Remove LEM related structures and members below. =20 > +#define CPFL_MAX_MOD_CONTENT_LEN 256 > +struct cpfl_mod_rule_info { > + uint8_t mod_content[CPFL_MAX_MOD_CONTENT_LEN]; > + uint8_t mod_content_byte_len; > + uint32_t mod_index; > + uint8_t pin_mod_content; > + uint8_t mod_obj_size; > +}; > + > +enum cpfl_rule_type { > + CPFL_RULE_TYPE_NONE, > + CPFL_RULE_TYPE_SEM, > + CPFL_RULE_TYPE_LEM, > + CPFL_RULE_TYPE_MOD > +}; > + > +struct cpfl_rule_info { > + enum cpfl_rule_type type; > + uint64_t cookie; > + uint8_t host_id; > + uint8_t port_num; > + uint8_t resp_req; > + /* TODO: change this to be dynamically allocated/reallocated */ > + uint8_t act_bytes[CPFL_MAX_RULE_ACTIONS * sizeof(union > cpfl_action_set)]; > + uint8_t act_byte_len; > + /* vsi is used for lem and lpm rules */ > + uint16_t vsi; > + uint8_t clear_mirror_1st_state; > + /* mod related fields */ > + union { > + struct cpfl_mod_rule_info mod; > + struct cpfl_sem_rule_info sem; > + struct cpfl_lem_rule_info lem; > + }; > +}; > + > +struct cpfl_meter_action_info { > + uint8_t meter_logic_bank_id; > + uint32_t meter_logic_idx; > + uint8_t prof_id; > + uint8_t slot; > +}; Remove meter lated.