From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D0BBAA04BC; Thu, 8 Oct 2020 23:15:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C737B1BA9E; Thu, 8 Oct 2020 23:15:34 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 923191BA9A for ; Thu, 8 Oct 2020 23:15:33 +0200 (CEST) IronPort-SDR: BHEKNBNe+GFPitKk02FIuL6tfwTtGl2z0KkQUYI+enEFY5px8GXFL2Gk5SEhD96jibZ5ZVfXVQ SnPlINkcADHg== X-IronPort-AV: E=McAfee;i="6000,8403,9768"; a="164617254" X-IronPort-AV: E=Sophos;i="5.77,352,1596524400"; d="scan'208";a="164617254" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 14:15:31 -0700 IronPort-SDR: U9xnpLx8g9zRTtnE8SCQ+TKV7A9kw+tVAK9Q3wT4Kus0XpTpH4leKLmYb2GdiQIc9mrtrFgWor O+ASeOY1fNoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,352,1596524400"; d="scan'208";a="388913093" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga001.jf.intel.com with ESMTP; 08 Oct 2020 14:15:31 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 8 Oct 2020 14:15:31 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 8 Oct 2020 14:15:30 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 8 Oct 2020 14:15:30 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.104) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 8 Oct 2020 14:15:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TTZXYxP8WjFWYugAn0QUSkwpNXwzALY3TarwuO2OM8SnBGSvk2Bcgz/0fm2J58PSfZzTLa5dd/5cmQcKWMInuXQx5PWhAcm7oaD9Dj58WqmVRigqm0iIGK7k6SA746l8f17Ts+iwqOl7+OMbK3Hu/zGHZFmO0zGjnDg47UZkGkI4gp2T8a41QDapFKUOXNSmo/quI7Z3Mfk4z5WwcJ1RShnL0tb51LPQ+zJlLzcf8Nj+VJbgHn4J7ahMIE0yAreDyqpIBL0zJ6FrbnAXkeud6iTI3CKNZ6G0Y5QMaEuI+jtnMgBu/7Rq+DWwzKEnPuAoZkHO5WURQ7Z+KzHweEfdJw== 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-SenderADCheck; bh=kwPUzM6nwVUktyjzaLmxb2dz/zCeuJELialktNG8Ml0=; b=T+LRjPdhixP8CAMbrMigHnO7nZfV8T6zd/vUtQg57danGWJQtrUeK+3ZVXus/tl5YSTNCuzxGcGu+peiTAvq+O1VBsxqalXguOqq6iG/ZFMKnM0jYteHIOklZtWNho1yXQMFTXeZzTC/10e7AwXpAJBSixcu1/5EZjjA55t8MSbAZthdTRi7IMHIhySLrtTd5R1Zy5Z21KpDZ6z6UxeooLQnzTLdG7d+1hoAMC3P2NuqL4dkE9dkEomyiqd+oO6lAjh9uWGbxlZ5Qu8iIpaXi97fl7aLmBb29x2BAlGeADeQkZyR2sjMpj0GMJEcA5/zUA/R5opngJ7Le1985VQ1tg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kwPUzM6nwVUktyjzaLmxb2dz/zCeuJELialktNG8Ml0=; b=JtEK7H+CW7QNk2+mwMF2x7vTk3SqlkTNA2kCgHyM3B1F4mct2VffYms5oAQq4FDWEEmh46uqkiW2aBw1EidJd2VANUy4kKbJpRW6A7EhPzVEmBmbBLoj0aI/+mG68j1pExp8cIkT0n2ydhPu7/Y5EYTyxW4xozn6KNDcz6iURHg= Received: from SN6PR11MB2574.namprd11.prod.outlook.com (2603:10b6:805:59::14) by SN6PR11MB2832.namprd11.prod.outlook.com (2603:10b6:805:5b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.22; Thu, 8 Oct 2020 21:15:29 +0000 Received: from SN6PR11MB2574.namprd11.prod.outlook.com ([fe80::902d:8f85:ea05:a7a]) by SN6PR11MB2574.namprd11.prod.outlook.com ([fe80::902d:8f85:ea05:a7a%4]) with mapi id 15.20.3455.024; Thu, 8 Oct 2020 21:15:29 +0000 From: "Eads, Gage" To: "McDaniel, Timothy" CC: "dev@dpdk.org" , "Carrillo, Erik G" , "Van Haaren, Harry" , "jerinj@marvell.com" Thread-Topic: [PATCH v4 10/22] event/dlb: add queue setup Thread-Index: AQHWiHDdLU5uCOHp1U2kS+2dpHI5SqmOXHHw Date: Thu, 8 Oct 2020 21:15:29 +0000 Message-ID: References: <1599851920-16802-1-git-send-email-timothy.mcdaniel@intel.com> <1599851920-16802-11-git-send-email-timothy.mcdaniel@intel.com> In-Reply-To: <1599851920-16802-11-git-send-email-timothy.mcdaniel@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [68.203.30.51] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e5f762c4-d9ff-4143-2c82-08d86bcf48b5 x-ms-traffictypediagnostic: SN6PR11MB2832: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nmddBy3z/lbR0BT4O2zWJr1+d2HabqRhwkoknoT8A83+Nd+3UpmKgWfaizGGR86Pij29igRbjVP2AnKiP/pUrFPDNOKvgn50Qcdgd2ygOlBhskjfhSO+VyjvvxY5xIGFwpwTO6RfZTD4w2nvYqMQelYkDLUHGchbO8YUHaqlhZFAQrl1Vw0GApqbS+wyyGdmsyz9SkUIZr2ZpoqjXau42ntgIb499oF0TXQq/e0ZHIKqtpWBcbaUmBuZclP6BIENuxyQfXB5lh3d6B768QWBi92kOgg1WOHZTAkZ5db3+2I3cNOcoE9cELnQbiQJcGaP8k3Cu/Hfhs7jVi8KeAiReQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2574.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(366004)(346002)(39860400002)(376002)(66556008)(64756008)(55016002)(5660300002)(76116006)(66476007)(33656002)(66446008)(8936002)(4326008)(52536014)(66946007)(186003)(7696005)(6506007)(26005)(9686003)(6862004)(478600001)(2906002)(6636002)(86362001)(71200400001)(316002)(8676002)(83380400001)(54906003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: CZyEo5JRa1kIFkHAww8INQy/19QZoqtdSsz5QBI6TsitXftxQAdjn8llpe7VIraE5dDRTOXfyYCukuSc3XOxaq5a55ohNhA3XXwdx7nToy+8ZuK4ZC8Lk7FbheoZ7QcNXwCbgyB4SRya8HztPzgh/GZkpKIhXaqGY5jozsQmMjcPOhwm4UFNbjGXuTLfCY0UbYgHJDzhdmrfWiOHRwrLdA2+g0ghuddPaA7/v8h8Cu6HjgOBClfvf5Dobx/OjO7ZgoGyVzqZOwTZZPDDxR29F5/JgQnBgqhYD83humvBjb4Uak3ZcNb5yUxx+EBLrAFMifuzxl9J1togj+L48Oe6cMmeJCi69veVRyiQX/f22GNemT1RVdb2BH0HqzzYI98rHq855pqwhOeIyxtBkZSkoSsJP7KM38q0z60dYf50XaBpmhA3rD+FOgkew88MTFjx3YHdoyp9qqxY4tFE3eRmMf1hcsyiPOhWjCsIXL43AddHtyWRNDQZhaIQmCCGagkzk48DjacZ8V3I5KEnX0Zos7xT6Rcgj42p0L9Y13TDd1aYQDTxD2yz8LMzP0WNpEw08MLoaAAfK7wUv/Pc0pYuD0pM5O84V9odFUoMmkbdicBCfeuVXhdT/Jbobqx8R+LqsU002qA26sdAolndL8s+4g== 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: SN6PR11MB2574.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5f762c4-d9ff-4143-2c82-08d86bcf48b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 21:15:29.3551 (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: ACzuHlE6HmPk2vjllbpaJq5vypNdD+MPb6PAcaIjQjyloDEjLhoVMR9QP/bLgWFWgi3t2TPZAYI79MdwS62ggQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2832 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 10/22] event/dlb: add queue setup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: McDaniel, Timothy > Sent: Friday, September 11, 2020 2:18 PM > Cc: dev@dpdk.org; Carrillo, Erik G ; Eads, Gag= e > ; Van Haaren, Harry ; > jerinj@marvell.com > Subject: [PATCH v4 10/22] event/dlb: add queue setup >=20 > Load balanced (ldb) queues are setup here. > Directed queues are not set up until link time, at which > point we know the directed port ID. Directed queue setup > will only fail if this queue is already setup or there are > no directed queues left to configure. >=20 > Signed-off-by: Timothy McDaniel > --- > drivers/event/dlb/dlb.c | 294 +++++++++++++ > drivers/event/dlb/dlb_iface.c | 12 + > drivers/event/dlb/dlb_iface.h | 12 + > drivers/event/dlb/pf/base/dlb_resource.c | 710 > ++++++++++++++++++++++++------- > drivers/event/dlb/pf/dlb_pf.c | 81 ++++ > 5 files changed, 947 insertions(+), 162 deletions(-) >=20 > diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c > index fa9213c..0b474a5 100644 > --- a/drivers/event/dlb/dlb.c > +++ b/drivers/event/dlb/dlb.c > @@ -662,6 +662,299 @@ dlb_eventdev_queue_default_conf_get(struct > rte_eventdev *dev, > queue_conf->priority =3D 0; > } >=20 > +static int32_t > +dlb_hw_create_ldb_queue(struct dlb_eventdev *dlb, > + struct dlb_queue *queue, > + const struct rte_event_queue_conf *evq_conf) > +{ > + struct dlb_hw_dev *handle =3D &dlb->qm_instance; > + struct dlb_create_ldb_queue_args cfg; > + struct dlb_cmd_response response; > + int32_t ret; > + uint32_t qm_qid; > + int sched_type =3D -1; > + > + if (evq_conf =3D=3D NULL) > + return -EINVAL; > + > + if (evq_conf->event_queue_cfg & RTE_EVENT_QUEUE_CFG_ALL_TYPES) > { > + if (evq_conf->nb_atomic_order_sequences !=3D 0) > + sched_type =3D RTE_SCHED_TYPE_ORDERED; > + else > + sched_type =3D RTE_SCHED_TYPE_PARALLEL; > + } else { > + sched_type =3D evq_conf->schedule_type; > + } Nit: single-statement conditional. Besides that: Reviewed-by: Gage Eads Thanks, Gage