From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0059.outbound.protection.outlook.com [104.47.32.59]) by dpdk.org (Postfix) with ESMTP id DD1862A5E for ; Fri, 3 Mar 2017 18:29:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tCAVvaHmQWRTwq5tOzm7YtvGVkK/PeBJTjTzP4Z4XmM=; b=o5OBQrINeGBmym0ElGio5ookWcpeMlW8mDI9fvipsZdKXq40dIaZYLOIsSeNr5FDRZbywQOlYGnw9+8XAkwsdHgEnsbdJXRkvp4+TQeNvcd2ic/DhCp/cC8ep7EXYDW9YLSe8JjDyotvZidheqStueKF5rXki6Q5PG0/4vJ+wGE= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain.localdomain (14.140.2.178) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Fri, 3 Mar 2017 17:28:58 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Fri, 3 Mar 2017 22:57:44 +0530 Message-Id: <1488562101-6658-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.174.214.159) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: a25270fb-4a21-483f-1b9f-08d4625ac85e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:y8Qh4WnNZAjlekE4FGITUNJvfDtIfNWofZ0kFbi5pLDqqAE0zHo9JeW8aIEJ9dxRMZjPbn8laza9AaXCptTtom8n/ixUhFf+A0pdfIOR3TZdhV15yLGdCmMBA10+L3+cKwDIww/h9aHOGH3HcGApHBj76Sgk8RohwuzYDubLiRzwEkcYrwPdqoYeaJIgUo60bTmfzUlqic6Cvu5ZlI0ZwbP1VjRp3LEj+fG9xXEwAgaWMTrCDBkzisPsB7ZJf97ildJOzIopTzSkIiQ0V48A/Q==; 25:S0cXc/dttyPn2q8sdVNxUoVPjhTR1+wAYfzmzRWvsXUmRGSlTakGi2VX/syA/IrDy/u5D5g9h7Ck1GoZ50Y5Im+wXc9euG9pBd2nRnMQjVCnUWrhNXqf89YG4xcMQupFDn2KW87jfp8lyMdAiJjPsstKsv0TUtwRMAU3WtDBG3VYVsepiznsXcW4nIMVVhDDCSKE7PpFMExDvH8CqM0O5OH/YzCRGoqY3L/z6R9KGn1YYN6m6R5ekqQghkwtSfXv0XNfpx7MMG/yjUmtGzeYly+IJfsF7LBAs59SGuH/ws9t/VvHzxHMfG7Iu2eL7vhsP/ljKEw2G1fBtL3jZTenBojxdKHB1Ew9W/tXuJwvZkOb5UwpD/TpiZaWAJ1rpwHBlDIRI2ZgvPRb24KHbrkRvmQ5fIFX7f03FZwElrwoVAPL0ogmrC8iFLIlHXG4DN4jAlwYrNDxWalZNZs+vSmI/A== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:FReWLOyjzIWChmXPWQ20GI2iUi6ck0cr0tsv8V8rglSJsMG2uECwrcIxd51v4hZDFw2kHZlaL2doj7+Y/VM5lkumbmfGx4wcV6kb0QADmic+055pEGYvXhderVEs1d4gK5czxFW34o0lwyLqrOeHIQ4sOyzKoR3fiC0EzDh52g3nc5OUaJXz0h+jIhiVhTAmMsq95XYNT3Wjxw8oPHnH/ju78Y//mA3YGKluXSsiaZJwGFFlQIzF2kcvaHF4BijE; 20:IHHGufGLJGClzWXLeF3XkyrkHnJI4PI8Yh/JEg7lfSKryqCkNdqSk1A8y2JFoPM0SLIW0qYYHFR5nEsYsvK/E1p2Sm+vGm+FcUhinS9v/cV4/tx8mnoN+b0B0SqCNXZ7gDlPzXwHLndCXt/E2OCKY0syrurRu191TUdA0S9YYaoQdYTzrF2gRQuzu/sXT5SOPi2R3b4ij8U19P15nsq9Ojoxj9pXmIyjuGxyLduCJ7wEKTZQLKdb6zWSXKtyWnq5/Q+cKUO1pOqqZ+7BVBdaJr2ZRiTmNnqSsvZHP9/c09CXwpey80Z+Og1OrUO/4whqbNfJssb+TtwQD+gPUNReuCjyjJaUYBaE7IaWe8X89JNN393+lqCvYgRuj7svquKGESANFj3CzhsrFyyacTSNvkyHPjzg4djwGIUNPI0Pjgmi6D80Fco8+yldT4P6jw2p0uMmp8Kla7HYKAMFpJdRXqHEMY0M7NxZXMgiWCBpnWS2dOJ0n7XhX5yLQq2cTODlerkMQmpNOoOhRggPowV4ePa3qQX6TK0F462PamoDZmtUqEb00/DrO02/AZxNLhYHvMMCD4xv7mMSbd9Eele7kPpnVboxjw4lkZtukovYtDk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123558025)(20161123564025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:tHLzYK1Vhzjpt6VmgaMpBysZVrzM2QHM021TuIPWP/z/bbOK6TIJirt2Ww3YyrbGdwQTT9Dp97G/W1MLC5H76k+yMDWa9kHMrG3LeZL5RuBFAlLFUZq/ytXq2qQQOw6sMloM426Q5qrt8QCrB7RkWod3rEV0NhYTleViOy+U/YAkWaJ2UnqTFYH13aZFEAgZLBi/H3wRYiyacEj89NJRNVgD225z2CyS5I+SOtmnBimc0GWUjWwkZZp/WK9L0Xp3lKKsgQH+9ZqoLU5MwY/wXYYXyTQOcm5u3lshp9kTbIcybDoBjivfOS7VaYQ9JgO9uG5aLY0WP4R+qLiMzAxrLIKTBnUNhbFjbGsA2vCQSjuZ2QvGz4bu0x0URDGez9j4n7QjAzdAy58KkpoGcvMUHwexfAnESz/qdTo+N3o/gfYz4QN33Y8eH9PFB3OxP+ulu9Bh2Hn97SApwlk6GPWkLhKQF/BYNmfVVjQQqubzrvOQrteUABSrLjhyFmxj0Kswj5TOQVAwD7OWXYbW3jyGuJTLqUL29S0NmR7m2JnTISjatyLNdhlTylbteCIlqAFYe5xDsQdV72HgdeX67sZf92HLQzXFsM8HPu+Y/k2d9WM= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(3846002)(50986999)(6116002)(36756003)(81166006)(6512007)(97736004)(2361001)(2351001)(6506006)(5660300001)(42186005)(50226002)(8676002)(6666003)(106356001)(8656002)(2950100002)(2906002)(25786008)(47776003)(6486002)(76176999)(33646002)(7736002)(107886003)(42882006)(66066001)(110136004)(4326008)(38730400002)(6916009)(305945005)(48376002)(92566002)(5009440100003)(5003940100001)(50466002)(189998001)(53936002)(7099028)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Micro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p0qVp7EvQKAd/R7UH44nUs3EQVoQ1Ac3liSxWHPTM0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:cgUXT3va6dNL3zedmt+mNBbHivOWcptjDvw8s4StKXMhL2Jc78nXqGuAz4F/RyAvI1PjkaMBafEt2V893GW+bA12kaEG8ChJZ3hThYpin7zjDHoanApQFSafTN+VruOeGTDHGFZoegDTU9MZJlw7ei+782wIMyf3D+E+8RKjc5IE7OCbAc3Cm9DVxg3FyJQWZ21g4J0O4FLFgCJKUf4Rx0Kj+ja0pmxdXuDslAfBNhcLHtU8vig38uu3C1Q+Q+RTUG+2rKJZ64ZslOKASb0qHckwY065fH4ylX6AEcyTYT1Q1asAJZj8xclMKcxwNj7Zbifu6gTNvG4zXoo8HafFuw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 17:28:58.0208 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 02/39] app/test: fix eventdev reconfigure test 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: , X-List-Received-Date: Fri, 03 Mar 2017 17:29:03 -0000 Minimum value of nb_event_ports and/or nb_event_queues should be one before reconfiguring the event device. Fixes: 4c9a26e419a7 ("app/test: unit test case for eventdev APIs") Signed-off-by: Jerin Jacob --- app/test/test_eventdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index 042a446..e087af2 100644 --- a/app/test/test_eventdev.c +++ b/app/test/test_eventdev.c @@ -244,8 +244,8 @@ test_eventdev_configure(void) /* re-configure */ devconf_set_default_sane_values(&dev_conf, &info); - dev_conf.nb_event_ports = info.max_event_ports/2; - dev_conf.nb_event_queues = info.max_event_queues/2; + dev_conf.nb_event_ports = RTE_MAX(info.max_event_ports/2, 1); + dev_conf.nb_event_queues = RTE_MAX(info.max_event_queues/2, 1); ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); TEST_ASSERT_SUCCESS(ret, "Failed to re configure eventdev"); -- 2.5.5