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 51E63A04DC; Tue, 20 Oct 2020 16:03:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73355BC4A; Tue, 20 Oct 2020 16:02:37 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 06D1DAA29 for ; Tue, 20 Oct 2020 16:02:32 +0200 (CEST) IronPort-SDR: ItN0qtqJTI+Dso/sGvP5AoacZDEVlwFqecgpcYoK5gN2L42I/814DLKbeELCYrQjGp+eeKjJpd 3l59Y6MwpvIw== X-IronPort-AV: E=McAfee;i="6000,8403,9779"; a="231404828" X-IronPort-AV: E=Sophos;i="5.77,397,1596524400"; d="scan'208";a="231404828" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 07:02:31 -0700 IronPort-SDR: CMCbgY1dj5gw8M1JY6IJadJlqCEeK+7gul82Zw3iUkMULZ7HzNgTCXh9NXz0DDVw8N7LoRRSD1 xS3mZMQLJL0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,397,1596524400"; d="scan'208";a="320658158" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga006.jf.intel.com with ESMTP; 20 Oct 2020 07:02:31 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 20 Oct 2020 07:02:30 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 20 Oct 2020 07:02:30 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 20 Oct 2020 07:02:30 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 20 Oct 2020 07:02:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PcH3ntosY7/6rWqbDnhCmNBAgfQbU4l2vylLrEtAG1Pccfdz7LtqdX0DIpk7q+v2VzYNVFG+8e12fm9ekgMcHwtxQsk9tPsEfpqdJu2o2zd8JTBa/xci3OvPcYh5Ov/NdFvxf5JbyV+HxzUCqmlSBQeDUepbOwrD+9qtf2B8sGW5vnlY3cQRkmxWi44/qHrlij8SY0/UY+zMAQXjs8vtehr32jRVTMcjaLD29FdqNS+JV9tjbspBQi3Ll85oJn2RheTCsaxcGf529WhsWZbALSvIfuvuy3YUgZwKFSFXewlp/XcOAItMUMjPIfmu2JV8fDDYfHxy07Z/uYh1bj7/mQ== 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=mcs49DgU9Gb4fRJyIWaix/f+zSRnWSrjuAJJSrblshE=; b=RDkAADT13hCl9o7A7X12jsbyAn0CCH/FoHCrmNM/jJyTDBy0IaRjsediG+QbfOkP7gF3PvjItw1/8MROaSYHXI03PJ1l6JmVTlXhqlTPrabKJTiHw8Uqwlz80zdoFQnMmceYZydzkV4ajwVAkWY6btHE9yKQMzHOtM4vf6okabBUp61sC/rTZcnii4e8IUlitWlMone+hP6mCtVzIwTbjwZtpcMXDBmf0t71iDOctBQw+W07cUo8cr+TMtTamcfErbN+U2MuhPIWK1XzbMB1k/pVbWwqwUtAfCs5kRrRA1JjarGuYBCI1PEx4ucljopyDQUCCw4ogNM9kStNEvI+Fg== 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=mcs49DgU9Gb4fRJyIWaix/f+zSRnWSrjuAJJSrblshE=; b=qUDwSPgx7V+9OioYzJb8B05k9/UYdihBxtyNXgYwFkc54Ki3EWFCypRXHaawOpPr3cD8gFntk4xjh1DRINgNTtGo78er3gyaSilzgCaCiY9L9NnWjfJ1TugWBSS6548nuhIH9A+hFYVp1Bv465bUO+VNInQPAr66dVjpiD7qOI4= Received: from SN6PR11MB2574.namprd11.prod.outlook.com (2603:10b6:805:59::14) by SA2PR11MB5100.namprd11.prod.outlook.com (2603:10b6:806:119::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.23; Tue, 20 Oct 2020 14:02:19 +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.3477.028; Tue, 20 Oct 2020 14:02:19 +0000 From: "Eads, Gage" To: "McDaniel, Timothy" CC: "dev@dpdk.org" , "Carrillo, Erik G" , "Van Haaren, Harry" , "jerinj@marvell.com" Thread-Topic: [PATCH v2 12/22] event/dlb2: add port link Thread-Index: AQHWpLIUU0ujX7Vf7Eq5+SX/pAu4bqmfsLEA Date: Tue, 20 Oct 2020 14:02:18 +0000 Message-ID: References: <1599855987-25976-2-git-send-email-timothy.mcdaniel@intel.com> <1602958879-8558-1-git-send-email-timothy.mcdaniel@intel.com> <1602958879-8558-13-git-send-email-timothy.mcdaniel@intel.com> In-Reply-To: <1602958879-8558-13-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: cfcd4da6-e07b-46d4-20c7-08d87500c221 x-ms-traffictypediagnostic: SA2PR11MB5100: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qgdp+pYRPNSQvkij/Bp1UQ07Z7W4G594PPkFHhdkV7N+iR6j2wVRkceNDCCXiSEaH01BFIWLM5EKaqG3nXqE6CXRAYIjbn8PiNJY96+oGw8izBnHua3S3ul1Pz8RBPUjZoj0EjFwle+X27V5wfjVfn4+oFSJZqAzgMPHZHxT1wLhSPzLGcCuSPSYwUAlRSycqWl5IO9U9pVuufyHB/3yfRCVqvJl0xCkImdgkhj1Xhgu/rcJzqG/cExFdK7LuRaLtSRUqhNeZJwVxnAgGQ84zY2w8oxH2CKkLZmZ7huD79gZWktQLHFgQfjy1x2sIXuD 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)(366004)(376002)(396003)(136003)(39860400002)(346002)(316002)(54906003)(9686003)(5660300002)(6506007)(7696005)(52536014)(8936002)(478600001)(83380400001)(66946007)(71200400001)(76116006)(4326008)(66446008)(66556008)(6636002)(6862004)(8676002)(186003)(64756008)(26005)(55016002)(86362001)(2906002)(66476007)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 7On+eWzT4735o2P4UJ+l6cDXJoYfwII++3ITC3wI3C+jkDdfNriuhb9zvsVyDTvkGPOsCar/6XjCnOiX5mGhQ0FVxwBgR8YjnMQR4tYYGSb5ehgu3MOiw+wXcKPA+E1HwkeCXzIp5tqpa3AUuyKGLUsb+6DjoHWm9aDIC5duJjHaXxVr6OIqjwKXhj/2ozjzxb1McpR3bkXR0V6RhCcW/HTp/6K2uAkUwRvXOcH9kSGPmaGR56p59Z+mg4C3tQJ+A8x8FkoeRs+fwwslBWoxASTSx0exeA3QuRk89v3/HGCrqDSFRpXczdWU3heEE4JU2OJlrrsUW+OGBCoURVjygTH9rrY4+Tja1p3gIVEWg7gyig8WWDUqc53gykU6ydgUiREChCWDEyjABszARzoocer5CVgZEsOI5YdiUwMRF936ZE/e5pxkU0lrszqpkdaQOMA5OhQ67q9YeMDk454W150Ydr34ptOhR96z4tDFUd/5ffr1R+1aH2P63KJ+yGQ9H2tNan5QMpnp6VompjW4TIPWwUxgVWj23SgmJLr03cbE1AmnuzjFIZifWXvC7Kkut7gE+N3nHlqj3PIxww/EGMgROLtOu++O53xnlt4dcLAf+yZcN9uRevrS7ptFkrSJLcv2FhwGa5QUrhRa0UEl0g== 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: cfcd4da6-e07b-46d4-20c7-08d87500c221 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2020 14:02:18.8497 (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: MAb4y1n0NkdazlevavsQjlwkqbe+y56KdRDrKQlQM4jU6RzxJonIMYmInURhAovso88H3Ss51KYgk7EOLsV7pQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5100 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 12/22] event/dlb2: add port link 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: Saturday, October 17, 2020 1:21 PM > Cc: dev@dpdk.org; Carrillo, Erik G ; Eads, Gag= e > ; Van Haaren, Harry ; > jerinj@marvell.com > Subject: [PATCH v2 12/22] event/dlb2: add port link >=20 > Add port link entry point. Directed queues are identified and created > at this stage. Their setup deferred 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/dlb2/dlb2.c | 308 +++++++++++++- > drivers/event/dlb2/dlb2_iface.c | 6 + > drivers/event/dlb2/dlb2_iface.h | 6 + > drivers/event/dlb2/pf/base/dlb2_resource.c | 633 > +++++++++++++++++++++++++++++ > drivers/event/dlb2/pf/dlb2_main.c | 10 + > drivers/event/dlb2/pf/dlb2_pf.c | 50 +++ > 6 files changed, 1009 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c > index e956a7a..b448f59 100644 > --- a/drivers/event/dlb2/dlb2.c > +++ b/drivers/event/dlb2/dlb2.c > @@ -828,9 +828,8 @@ dlb2_hw_create_ldb_queue(struct dlb2_eventdev *dlb2, > sched_type =3D RTE_SCHED_TYPE_ORDERED; > else > sched_type =3D RTE_SCHED_TYPE_PARALLEL; > - } else { > + } else > sched_type =3D evq_conf->schedule_type; > - } >=20 > cfg.num_atomic_inflights =3D > DLB2_NUM_ATOMIC_INFLIGHTS_PER_QUEUE; > cfg.num_sequence_numbers =3D evq_conf- > >nb_atomic_order_sequences; > @@ -866,9 +865,8 @@ dlb2_hw_create_ldb_queue(struct dlb2_eventdev *dlb2, > if (ev_queue->depth_threshold =3D=3D 0) { > cfg.depth_threshold =3D > RTE_PMD_DLB2_DEFAULT_DEPTH_THRESH; > ev_queue->depth_threshold =3D > RTE_PMD_DLB2_DEFAULT_DEPTH_THRESH; > - } else { > + } else > cfg.depth_threshold =3D ev_queue->depth_threshold; > - } These two changes should be in patch 10 ("event/dlb2: add queue setup"). Be= sides that: Reviewed-by: Gage Eads Thanks, Gage