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 E6BD5A0032; Tue, 28 Sep 2021 11:35:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CFFC140E3C; Tue, 28 Sep 2021 11:35:43 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 2166840DF6 for ; Tue, 28 Sep 2021 11:35:41 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10120"; a="310208079" X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="310208079" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 02:35:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="538056183" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga004.fm.intel.com with ESMTP; 28 Sep 2021 02:35:41 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 28 Sep 2021 02:35:40 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 28 Sep 2021 02:35:40 -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.2242.12 via Frontend Transport; Tue, 28 Sep 2021 02:35:40 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) 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.2242.12; Tue, 28 Sep 2021 02:35:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WwJC37kTXvymYq2yYrmJqHtdUXZHPmZzOnxOLxqtsIPvtAoOpEqh0cKIE/WWKURmjXv1FMesKFVZrAS1euoi34d1FccuUgJBSO6hIbqiQq6hJqKXhWoREG5O5ixV2hxE4OJJN8u7zrjRnogm/NVCaXZRD0na7/gUwqF/CKahF76Li2IUrN3IqJh8g+qEPRY3H2GgiWKHzVRo42pZvT75/RBnKk0jhCYJPzTsdsfcBeC7tqxPCTuAKTq9P8+zuOitSU7m5zcGoa6mlo8T6NnvPE73QVcudk9TD4f7wHI6GOJ4Dt02BMaKOWSSDicKaB05wAhH/fC6J+/3JKDXkBrj9Q== 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; bh=RReWuDlAPW/HKw9Q7z9yW8uwIwmleJcMlrH2HkPkCUs=; b=JHS7dBxV/47FhhIhHzK/XwweUZVk+0ZL+9TkGb0g5JmHlJox0s08R7kX40nH3ftkjX1gFNmw2mUdzi9f+qq5vX2PwIxWUtCrzPl1ZbriawiRPJjrrsicfLBWeAa+bDh+PzFrJFuTBK4N5EDS6NaKXaUyM5AZVdqS/e86P/5rA1s4+aR3W6p/fSICRFzdDVRhBjf047VuR11RZ/PNrC3v3jZHvlnUxyY5GqbPMozKP8uWIhjhg3/I0n97EfyktnGzuk72H+B+GnZCTE0Ok2c8QZE2bJgUQkOWXD+/qqkrwpSihbFhekYELAGFIQPP48YwPYyN403aOey0oXQ6sPLgoQ== 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=RReWuDlAPW/HKw9Q7z9yW8uwIwmleJcMlrH2HkPkCUs=; b=nQhimWSokr8YyIdSyKE9ZWXkagveqnDcpdXJGv4Yroef/2I7ubcdQUrYYheSt1OBB7708Ybky5yi4XKEPdRnJc9fyOnEbO4MNT54i7VoXwjui1nE82szM+oYFx5fNEDbbfO1VQV2mpiHyJn0iCMStA6h7xXWt2U+K7lVolEg88s= Received: from MWHPR1101MB2253.namprd11.prod.outlook.com (2603:10b6:301:52::17) by MW3PR11MB4699.namprd11.prod.outlook.com (2603:10b6:303:54::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15; Tue, 28 Sep 2021 09:35:38 +0000 Received: from MWHPR1101MB2253.namprd11.prod.outlook.com ([fe80::d56:f55:5cb9:1b28]) by MWHPR1101MB2253.namprd11.prod.outlook.com ([fe80::d56:f55:5cb9:1b28%3]) with mapi id 15.20.4544.022; Tue, 28 Sep 2021 09:35:38 +0000 From: "Jayatheerthan, Jay" To: "Kundapura, Ganapati" , "jerinjacobk@gmail.com" CC: "dev@dpdk.org" , "Yigit, Ferruh" Thread-Topic: [PATCH v5 2/2] test/event: Add rx queue conf get test in rx adapter autotest Thread-Index: AQHXqvmLbE8Pb3T4TEy574+zV/L/Wqu5QkCQ Date: Tue, 28 Sep 2021 09:35:38 +0000 Message-ID: References: <20210912155858.1397453-1-ganapati.kundapura@intel.com> <20210916125107.2024111-1-ganapati.kundapura@intel.com> <20210916125107.2024111-2-ganapati.kundapura@intel.com> In-Reply-To: <20210916125107.2024111-2-ganapati.kundapura@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 999d87a0-1c05-4d05-954c-08d9826354f2 x-ms-traffictypediagnostic: MW3PR11MB4699: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:923; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XsBRF+cx5vmlNRRPwFZOk+vkTF8XKQb8CaXQlnCGv31WdRkZlXeNBEUx8ObIb8+T5A3sb/2cYcji4tqmuLoOdRUmU6sAVhWd0vZhbvHZvcO9L59V5hLN8NCAoMN41EB5UWKlx9Do0JJHVCf5qvRRar6sA8j70hlbR+Mx1544BCKEpK1F7Wt5d34vra1u0yu175xjQ9B7Gik5ofeTouvPUysXM+XvE7lFH+925XLieCY2ktpQ4KCQObAfrMWhPq6cKG4OiSFUqqv/b2FxG//JJNO8FCLNM5RG1pLDMNObFtzcdYgcqYXD1BqfF/liYvR5v1ZcRGU7POXfsICrz8tw2ev2o9EfqwRT/yFfQs/rkN+rq7JoG9DZYCkOnYCcqQn4Nygw4r4hxlwFp9JucGtzdHuXUYwXHP74cXtifkRruMOC68octQWaOCoAsWTFw7a2Jt4Tox/7Xg3ScQwNWOnMVGL/wXtSj9jCGu2tuiBmPuPomZ/AMCiLafqcJy8YjskB81GpLabJnPRZbAbvN7ik+m7/XtUG9qrVkpNNhADj5gq+qBg0JBZTAr9mUxx7CrUH90LRN6fu5A2raa55liCwQ2HK+Y/22/9C/9W+1qLApbkbY7ITUt6PMVRry7KlIkcZftvDM4jj1JWWlNYJK4zoPkg0LLOBOkNrajmorB1iXCAu/kBUtXQOvnBzdyOuPSVdOBtp/QaxES0Lbr0lwX5abw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2253.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66446008)(66476007)(66556008)(64756008)(38100700002)(2906002)(5660300002)(33656002)(7696005)(122000001)(52536014)(508600001)(55016002)(26005)(66946007)(38070700005)(9686003)(110136005)(86362001)(55236004)(4326008)(8936002)(8676002)(6506007)(83380400001)(71200400001)(76116006)(53546011)(316002)(107886003)(54906003)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6L4eBNtL3z9X+/TBWNTG3y3Qhx0gsvLVQTOpr5q1o35yreh65NqQf0n00SPV?= =?us-ascii?Q?+ByP3p2HAO9Hx4xl54Vj7Yzg3bhGa70mLCPXoMsmjlE+h44nn1ND6F6UFy+X?= =?us-ascii?Q?mfWRR8bhvjT0FbbCFSTw3D5XT9xxyS+zEl/d3+T5vNvItohu94T/XIvOPOIx?= =?us-ascii?Q?WGeQh1IptKAofm3CY/MwDUu7BX6evmsRQcwTtvP5t9sfQhb0uehK4G+kZ4bw?= =?us-ascii?Q?BeEt03yNh8m0UCpncJGGGUQd/H1k/uJkSEWMcXwdEtnKr/LyNbxV6YYIpocd?= =?us-ascii?Q?j7UW9y+cPg4mEJTmJqI90UXMv2Qq7pJTujsmemglIKEl3FHNN4VKwkZnyPhu?= =?us-ascii?Q?Gs3O3NJRD4qqNvtPR6QjehnXhqBflCIleE4yH9BsUG2kVBt0+1n3THxVry31?= =?us-ascii?Q?GOteT7dqFV7h1eWQaJrFhHykPNZfq85fl7QIZl9XhDg+eLnlFPkxfC7yd/uO?= =?us-ascii?Q?jhtJwRM8gvhgoZF3IQNeltJmhgdlb5EHzGQShinvM1xLt2w6erKXf1kD9XRC?= =?us-ascii?Q?mjWTDjGFp55HxXcP/+j51fzm0gO5KJVziUEItbKLU+IIWkaC8G9NB7gb0xpB?= =?us-ascii?Q?hwAL+fHiswPa+sNpPAgX7HImH0RCA5CA8aBAGoT/ek4KDxYXaEue42c42QB4?= =?us-ascii?Q?/XbEeXkOycVB8Lgi/In17AKxOCE4eL5GoF6JnQfL8KCoiJupl+wICt319mWy?= =?us-ascii?Q?Y/aVrbFifTOua4G8B1n6mHNJ7ovploCiMbow9FqqdeAyPkfPBniqaxlfvh6/?= =?us-ascii?Q?LPL142okTJioQkWI4QMfTEa8XBT80bVx1rBUPfr3TJHnfM6C63Y4UsRrLFC8?= =?us-ascii?Q?Y01DMFzcsQqEC4RtP3Qt/cMKh054FgJN/FKaAfzJ2ZkFvsWIzbuq/3I15CsY?= =?us-ascii?Q?WQZmSZNgSZhtz79oeYkKJX7LIHWqbtsPNVQYSuDWJASdx0I6rJ+tQEgQaVcv?= =?us-ascii?Q?ITyQOJ8ENRgXMg9KplpcbOi1p9fWaOSO5TYvPwMQXCK/L010mzcDT2U/D+zB?= =?us-ascii?Q?kvh1ZG8wA+KgNV6+h5LZr0mcIvHLa14ElBrLQAThedFANjm0Hx01S2E1sAXA?= =?us-ascii?Q?D0P6m9LzHPmAJTYqCNFGBMhGjk6/q1WhtdtCG5A1WL61GnV8AuTu9h8JnE4F?= =?us-ascii?Q?JN0bOvLRzSvuwDd5oExK9jFhcmfB6lilbAFR2ZLo7uJB/gcVpDPg0UiiUbl3?= =?us-ascii?Q?MHOAszfE3JuV5J07Bi3lybdJ2HgjUYrX4y7c1P+aCex+ZX2je/HGnmpZjPGS?= =?us-ascii?Q?HTjEUPjrWmx7TU8m4Qn6VG0XH71FySF3AZcXRCpN0zlawCRLI1rS3dx5W/OS?= =?us-ascii?Q?YFgNIddiZwaVLDCueqFAZtdX?= 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: MWHPR1101MB2253.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 999d87a0-1c05-4d05-954c-08d9826354f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2021 09:35:38.7583 (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: kk7J7uWqm+/UVrXzrb/bcMplXofcX/qRGp1AMfCoy8zzzTOp7Utt1MfrUK/Yg4mTK34K/JVBj1EKG6hwiGQP6hfFiJf2iP6cP1YPqp6fq3M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4699 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v5 2/2] test/event: Add rx queue conf get test in rx adapter autotest 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 Sender: "dev" > -----Original Message----- > From: Kundapura, Ganapati > Sent: Thursday, September 16, 2021 6:21 PM > To: Jayatheerthan, Jay ; jerinjacobk@gmail.c= om > Cc: dev@dpdk.org; Yigit, Ferruh > Subject: [PATCH v5 2/2] test/event: Add rx queue conf get test in rx adap= ter autotest >=20 > Add unit tests for rte_event_eth_rx_adapter_queue_conf_get() > in rx adapter autotest >=20 > Signed-off-by: Ganapati Kundapura > --- > app/test/test_event_eth_rx_adapter.c | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) >=20 > diff --git a/app/test/test_event_eth_rx_adapter.c b/app/test/test_event_e= th_rx_adapter.c > index add4d8a..13664a3 100644 > --- a/app/test/test_event_eth_rx_adapter.c > +++ b/app/test/test_event_eth_rx_adapter.c > @@ -747,6 +747,27 @@ adapter_stats(void) > return TEST_SUCCESS; > } >=20 > +static int > +adapter_queue_conf(void) > +{ > + int err; > + struct rte_event_eth_rx_adapter_queue_conf queue_conf; > + > + err =3D rte_event_eth_rx_adapter_queue_conf_get(TEST_INST_ID, TEST_DEV_= ID, > + 0, &queue_conf); > + TEST_ASSERT(err =3D=3D 0, "Expected 0 got %d", err); > + > + err =3D rte_event_eth_rx_adapter_queue_conf_get(TEST_INST_ID, TEST_DEV_= ID, > + -1, &queue_conf); > + TEST_ASSERT(err =3D=3D -EINVAL, "Expected -EINVAL got %d", err); > + > + err =3D rte_event_eth_rx_adapter_queue_conf_get(TEST_INST_ID, TEST_DEV_= ID, > + 0, NULL); > + TEST_ASSERT(err =3D=3D -EINVAL, "Expected -EINVAL got %d", err); > + > + return TEST_SUCCESS; > +} > + > static struct unit_test_suite event_eth_rx_tests =3D { > .suite_name =3D "rx event eth adapter test suite", > .setup =3D testsuite_setup, > @@ -759,6 +780,7 @@ static struct unit_test_suite event_eth_rx_tests =3D = { > adapter_multi_eth_add_del), > TEST_CASE_ST(adapter_create, adapter_free, adapter_start_stop), > TEST_CASE_ST(adapter_create, adapter_free, adapter_stats), > + TEST_CASE_ST(adapter_create, adapter_free, adapter_queue_conf), > TEST_CASES_END() /**< NULL terminate unit test array */ > } > }; > -- > 2.6.4 Acked-by: Jay Jayatheerthan