From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0077.outbound.protection.outlook.com [104.47.34.77]) by dpdk.org (Postfix) with ESMTP id 4070B2030; Mon, 4 Dec 2017 09:11:48 +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=RZJHB606Tu9aKqeBZVuLvNL1+zmBx/WHI4IR2WbyDc0=; b=VOc8OLN+BNg/05BBMA5SNnhHflAFNz4R5DAkNnc6oCOvAQ0sGOz4jc5vLlWzIl+7yUZcHXS56cEu/1LR7zz/pDNpwi0UaD1W6CF1adTsVUGWo9XKX7ELVp7zoQtS3D1ibWNhWsxxVy3JE5OhI7peQrgZ44zaT3KQ6i5BCVVUTnQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.domain.name (122.167.79.80) by BN3PR07MB2516.namprd07.prod.outlook.com (10.167.4.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 4 Dec 2017 08:11:44 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: pbhagavatula@caviumnetworks.com, Jerin Jacob , stable@dpdk.org Date: Mon, 4 Dec 2017 13:41:18 +0530 Message-Id: <20171204081118.15537-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.79.80] X-ClientProxiedBy: BM1PR01CA0099.INDPRD01.PROD.OUTLOOK.COM (10.174.208.15) To BN3PR07MB2516.namprd07.prod.outlook.com (10.167.4.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e0e19176-4c3c-4c38-f01a-08d53aeea9af X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:BN3PR07MB2516; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2516; 3:Xt7Fv5vqBXKKQ1WPMxRE4dycWUIr3Z7Nstgc28M+5j8GMy361Mhj3I7f8g8k574Nddh9tphjJLFHAPNv9ndpl+9mA3pvq41d31x0wU3epqajeF0xiQ/vH7AkzIx7npDDzEjER5+yZe/OnK7iT7EmLGIB4IEF5uDcHU9+MuKXzaT3YDvzCucVbHfv7GiPT5ReKCKBkdpQoFahFov4J+82Gp5wGDadNSoXmS8Q59SeWmiGSlEnoL3JEpc/9Cn7DDOA; 25:CrkvSynhBVZssUhQYpoo1LBWaoGhSP0ld+kzxPyUPMTa4k2401LJD/qQ491epuy2/AAayx4H5pnodt4XKZrpG83YVa2jcZlBtpH0yR168nuFc4EoUFnTebheBqrZb5BoxQMsl9pU17dWCNbsD3XRKNQmtVK3y8QpNGDgbYZ0b7J+J7d5lpcUmffg2uj9MT4Ta8EQXbd1tBM95AQbEJgOTBasnXrsJlitbikoHZKT60ZaAcD+g1SYTXC6oMWBEVkO3hOXeinrMZijNXiD0dRlorC1A+tfEX06PjfN47nsJCZ1rWBuI7mZLRltd+yPcKUj1hXqQuvwX9ZksG8DMkiCeA==; 31:o5dQQwQgV55rq1jp17xdP2nPZqt8janVFYcG9jfByKRLrzG6OWCghRgHqStUwcgB1Y1ciQewqDJZtz2EEYK/3tQSkQzGpPVadIBMzQJfyB8jsGcNVO6fUdT8ibv5AluPYbVeXZr7rLmMBH3/mNL1rzASh6DhDgkZo3Edd3T/v/ogCOHBppb+vFTm+NVzDxoJi8mooEnKQdfZQ4Z1clPZf7IsfzZemsRyQtMp8PjKFSU= X-MS-TrafficTypeDiagnostic: BN3PR07MB2516: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2516; 20:xllPzkopNfpwo1DX4id/Xe1SHj/qIAcxPp24uhJXgi30Pt+h/D9D3wibyyvNcupda4JPiArBlKZftALUevfdXkecbSj08HKEv8gyIzUD1daESjJKeTfHGTLpvIc/jUTlzPoVHKwZtfjxeRe8TeDbRgQQnK+8qMfTiEbqMufVgaEywzTQYNMGXZ5Al9CVGJtIUcQuzwScOOLJyaCwodTGcfs2eBG6NV1WElBb2JMCL7wl0BSQk51AhpV8CLvGgOSBKO9A4F3nM7lFYAK6mJU+kSW/CKtFCbYG35QdPtAJl5bqvTKG5JrwcN7HcpuzkgwtFaZ8Wpp2zj7uuKKtSQPj9PHIdQFvBMl5mPiSfOOXLvRhv+wvAVzp9waIxko6Pkulyn7W2Y1Ntna4nmllm8EYQXtQ3k64gHLU6Wh2qEvmUpXtvbzYu046EmIyD51GI/BM+yOaMfEHcQHEqTaszxcDtGwCzai83YPnql1PQOqEnp/U5Xuut8FPl1/P8JTpu+bOwW7Aog8R8f97kXbtO8Cj/TzgEMeDHfcSR5TuA7fUSWb01q3V5C6z+rJ5bHbvuRlVgmeJkCLKBp56uI72S5U5yALHozeH5AHvJtPAu2r60VI=; 4:fsXGA0EB4MxJvY7Dz+/9omu0NxjuY9bg10Y9GOY9IH2NilAMR5maOFcN1FrEZ8HWAmCKWTsJzTw9ZySvduYMhI9oXRZ3hlRcLJpjs8Rt0vVWybYGEc7HoEl4k+ivHCLKis5dc+mV6K/58cfFlptUZpg26mE22rJYPoYUP9amN1oYkpLaIVBSO/ZMvgAwGwItzPydV74YcwQ1BV9XYa+eD2GMyEE4rCQayO/5vKMjhoNSLqxdjN/KngWeIuf3f7fsTljfhjC09/qXimeGbiifCQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(10201501046)(93006095)(3002001)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN3PR07MB2516; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN3PR07MB2516; X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(366004)(376002)(189002)(199003)(2906002)(2361001)(2351001)(66066001)(106356001)(105586002)(189998001)(8936002)(575784001)(36756003)(50226002)(47776003)(25786009)(6486002)(478600001)(8676002)(6506006)(81156014)(81166006)(101416001)(53936002)(69596002)(16526018)(6512007)(16586007)(6116002)(3846002)(50466002)(48376002)(72206003)(52116002)(51416003)(6666003)(7736002)(6916009)(42882006)(316002)(1076002)(305945005)(33646002)(5660300001)(4326008)(53416004)(68736007)(97736004)(450100002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2516; H:jerin.domain.name; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2516; 23:WZ+bd0Hw8upY6i90YsrucX6SMn64GlIk9khtSa9IY?= =?us-ascii?Q?C0B6HYYflatuqxbhQQAAoDkoZE/42APPryLHOWb9Z6Ef5un2JZb0+Vxpn1nN?= =?us-ascii?Q?1GtDZJgpcR9w6sZVfT6hotetKsm8OVhxWmxzpGJn5W9mDwW5qzhv3dTAUtnS?= =?us-ascii?Q?bJ7HCZgzwcgvYXZAtXS4+QJTy1a7CCo0DY03WwLRwCAtqCjYmNdaN++1xE8O?= =?us-ascii?Q?TL8Ka5Wmdc5CU9Ad/vJscvSkP6PiicH2F3Khg1c1okd2PsmG/yHO55SksraA?= =?us-ascii?Q?0Oi3OcwBUVVeB/O6npyBPmCrj/9Wkr2pWeMxnUnEiZkM6v78WWuRX6t6vRil?= =?us-ascii?Q?zGcsaANrKFkWjr+pCqlCOn/qNjrWUtQmdQbqUuxQU1/ONeJpOSZ4crvNNBMU?= =?us-ascii?Q?S9SfCgk3P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/rUYBEkkp8CozkhAIjD0dH7zBmAUyUp4rAj2MRbc9QX2xrZbDMTaVCfaLLaxVxrxLCKTkKTB4zou0Tq45Qrxl78hw5AZEF4N206+f+Qh3TTgVM0K5qhXKDgqShj9/kpM+2OKNIEKLY1KOdgw0W7CnsfyCcxcpeU5GjKy5Eq/k0JB4Aw+EYKOgtEX4YGHql5mZQmj8XuKhQe3Zv4vUDM6K3AJ//Y+DRNSA6DQwXFuGJWmdoZjO9BnkeLfs3NfezS7DbvQZxHy4MoNm0co75MK+3fJkhuCJuFv0566JJy0=; 5:5ECDYa1fo/WBHx9SqYbZDoYM+e+ZbvWW3fq+DrJJh+2JVLx4qxYWhIxPRMUhyaGzIuAEgTTsFiSvQ9IKIqDsp26kF3YbljRfm9+UkAAWIR/pTyuAr0TKOGgKuwW5IF4yVzsSmIp4cgfgoHAemPXyJmIrAxd3lHBpZHTDfA4p2zo=; 24:n7Gg7G1lBt+xrqLOoy2IfRMFEVqKm6uYxZxV74Fn52Jeq41wDSyLSn7CwjR/OVhKNeIhKfER2FyCR6FvVaYeZ7jUhCE+PY71P4ETdaCMQqk=; 7:D3Ddpj1a4/944Mr7T4JFpQ/FfgHDODNHnQgdGgxzls8D9B9jlzcp9h/3YjK5QT3AS+UNTL+eMOaamzhdBj8nfcnk3yTMNaz3Wnje5DSM+QiqAOIcDZUKzFyinUo6TEbicSJ1Qeik11H7KQ49J05wL5EMMYD4Xncb/Zz1TJ4lAVmptelpILNrPMI/D2s5v+aWzn9a1aVP1EqtADapQ78IQXxuwRWLmrG3H08CI0XkxfCEeFbYTfhkPygyl9JiRYns SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 08:11:44.8018 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0e19176-4c3c-4c38-f01a-08d53aeea9af X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2516 Subject: [dpdk-dev] [PATCH] test/eventdev: use CPU event type 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: Mon, 04 Dec 2017 08:11:48 -0000 octeontx test application was using non RTE_EVENT_TYPE_CPU event type to generate the event from CPU. Upon the introduction of ethdev Rx adapter, RTE_EVENT_TYPE_ETHDEV has special meaning. So avoid using non RTE_EVENT_TYPE_CPU event types to inject events from CPU. Fixes: d0d654986018 ("net/octeontx: support event Rx adapter") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob --- test/test/test_eventdev_octeontx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c index dbc36d948..8fddb4fd2 100644 --- a/test/test/test_eventdev_octeontx.c +++ b/test/test/test_eventdev_octeontx.c @@ -355,7 +355,7 @@ generate_random_events(const unsigned int total_events) for (i = 0; i < total_events; i++) { ret = inject_events( rte_rand() % info.max_event_queue_flows /*flow_id */, - rte_rand() % (RTE_EVENT_TYPE_CPU + 1) /* event_type */, + RTE_EVENT_TYPE_CPU /* event_type */, rte_rand() % 256 /* sub_event_type */, rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), rte_rand() % queue_count /* queue */, @@ -745,7 +745,7 @@ test_queue_to_port_single_link(void) ret = inject_events( 0x100 /*flow_id */, - rte_rand() % (RTE_EVENT_TYPE_CPU + 1) /* event_type */, + RTE_EVENT_TYPE_CPU /* event_type */, rte_rand() % 256 /* sub_event_type */, rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), queue /* queue */, @@ -824,7 +824,7 @@ test_queue_to_port_multi_link(void) ret = inject_events( 0x100 /*flow_id */, - rte_rand() % (RTE_EVENT_TYPE_CPU + 1) /* event_type */, + RTE_EVENT_TYPE_CPU /* event_type */, rte_rand() % 256 /* sub_event_type */, rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), queue /* queue */, -- 2.15.1