From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0067.outbound.protection.outlook.com [104.47.38.67]) by dpdk.org (Postfix) with ESMTP id ABAF9237 for ; Mon, 4 Dec 2017 09:45:00 +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=WQlDWeBHi/f+uiupac2dxmo0CUibe4JeclgcOT6hiTQ=; b=kjxHg7gjfeuARZnQdn0kUuNqSnMgv3WAPhgDdiPhiFygtsDZjiQtpIMC77kCoWqtg2VsEDQ0pd+x7eV3XRRRC1KMx+S9H9GeNpTlRJWdYD4N7WJ2uHumzexu7nAkchWOaKC5Nkfkkrc18brGkvYd4SxEsLpEWLXa1mYMFxae5uU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT (111.93.218.67) by MWHPR07MB3472.namprd07.prod.outlook.com (10.164.192.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 4 Dec 2017 08:44:57 +0000 Date: Mon, 4 Dec 2017 14:14:45 +0530 From: Pavan Nikhilesh Bhagavatula To: Jerin Jacob Cc: dev@dpdk.org Message-ID: <20171204084444.7awnhs2rz2wmblt7@Pavan-LT> References: <20171204081118.15537-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171204081118.15537-1-jerin.jacob@caviumnetworks.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SN4PR0801CA0022.namprd08.prod.outlook.com (10.161.215.160) To MWHPR07MB3472.namprd07.prod.outlook.com (10.164.192.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 15300a91-7dd6-4aa6-c95f-08d53af34d12 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603286); SRVR:MWHPR07MB3472; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 3:8jut9Z7hU2HdRDDRZjMeGDdm+adr5tPQIzj+vhvKG8y6t0sd86HCj0Z9tW9tr7rNUkxn/v6rt5CYCcTbUiqxQAgZHaAYq1hacPCO3JZvqN3TYWd3bNFdy+XJmraauHw5mLi/dw97sJrGLixmtCR3xF2Pjv/OmWCd581zpUXVuTWsl/M6VCkguFt3rIXDoDi1Z6MFbWT3f+7Go8zP+HJt6sl9OqzZm28gPiFZoQLTa9lXvGzOJDkQF6xHGW0QlKA7; 25:EF/WNfnkMkYn1jg8SkjuIzkePVKelt0wMuT8pRG0xFiwvEV1zGgL3x/aHhk/7SYjUCycIJf02+L4kOAVkOh8Bd4L3G2UqRw4Z8mD0MOiE9H+s1spH1Qk0aRqweKzVVV2Scg/OAUlF2svKH2dAQVNMV+m95P7PNuTMRptaENB7KN7DSHqCVlUFSSJ4HPvdWj9qA3MDlYh0k55xQFi7LDpI5rTROYiCCEwS4SVmFmVBl2Z7kck1luTi5dcrTRuiqoUJcdXPd8WJ5j02OG6OObzdyFIjkp/0ypjGAXJVkeYckX9mz3/VdWuOQZYEdFMewWHOAwJufnaAW19GRC9BCK5Sg==; 31:/ZKZF6jo+RznulxjhEQ2ZCmPkEGiZ04WdmYL3BY0p/NCa6jQ2BUYrPV97pPMAbDxb6Q69GARmjBmTwOnaG32MNX97GjE4Ir4kFiiM/7kHEN+8dUdL+0vIRtGY3r0oAnPsjXp15DeZcQzIvvy05KXGB1BG+Jtn/nq85YaddxntuKlWQ/iVusB7SWF0+brJpt7Gyq8RQDM5Pecp5QpVPoMADiSDqSRB3j0XCl51C9TT9E= X-MS-TrafficTypeDiagnostic: MWHPR07MB3472: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 20:r0fUdCtoQluBXtmfFsambAIwp6g7RcwuP1jiVopw5AZRhQbwlPCOA261APGYq0B3sD3nmdalO+PdBRAybv8siNn9wPb1z8VC3ItcOCSt9/tFpyA723F1a5TDDC3KT2mG4KZa3j+1DDJy9UD7c+EnRSPGHDj8KIMBE2vfqeszrAxzyIlOmz+UfRcw6h3uOj08dLMAB5ZpCfft2N7JlDptr+RFTwtCMkB8sA/vn1p8HQIzlvWMZcBohkpLPVVOeE+cPadO5Qvrp9x8R/IsDuQww9QYu05wvhWyIozgNCRz0djHgyBCdxQOqY2SGu8e2LwWXCUp5jzJUVdDbuZ2aMp1jfsTCDooO3G6zBSBtfN5tqDXoQXHROAZZtsN+YnQmAdmMnZqIxNr2d1orUje4eV3XnkGK/f5GUxdYcjyNSbQ0lrV5B/AExk+rl5/1BoMluzHVe6FxUCN9pFdVNKphVF29YyA0+3TKO/nbbKJj8rNciLLP6nDu5OhoTFnuE+wipAw5ilPmrk6xlzfdYqbQXbqRWQ9+X6X78LaL3aHIGsOn710q/yr28E3tvOKax8XKSDAqpbZun7WJM7bUORXpmYxrc4Mr3RrjTHP+1/01+ZnUB4=; 4:wESE4VRSLbtPyEbRBsWiOJp1z2nh+47h4P4G4Cx9BAc4KCfV9g3u0UEkJQ1UjoQxWqFqpFhy5rt7HbK5nKkGGEuXL3/RYL36GkRd3i9ZnKp9XKAnPjNJYYcEMjjlEEKfVh1sZToW1nuI133cHl/WFjEEUJ0Abnke7HvkW14RAf61GY3MEk8iitSnhBVUj8U6iOYQRfdJsX+TkTIiFp69bEHJVMjAmtD2e+dfP+th4q29ft7a5Ro2jC0uw4bTmZLESaXCZ4KYNXzyscTAOMqmiA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231022)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR07MB3472; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3472; X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(376002)(346002)(24454002)(199003)(189002)(66066001)(8676002)(81156014)(47776003)(81166006)(25786009)(5660300001)(50466002)(5009440100003)(68736007)(575784001)(83506002)(4326008)(6862004)(8936002)(189998001)(6246003)(53936002)(2950100002)(42882006)(6666003)(3846002)(6636002)(9686003)(6116002)(101416001)(33646002)(1076002)(478600001)(72206003)(106356001)(23726003)(105586002)(55016002)(305945005)(6496006)(52116002)(7736002)(97736004)(316002)(58126008)(2906002)(16586007)(33716001)(76176011)(229853002)(54356011)(16526018)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3472; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; MWHPR07MB3472; 23:O3tqibVCycNl2l314/qo7cxBRu437SD+7BWDOQUld?= =?us-ascii?Q?M8osjt1kAzOtnkwE0pbkgqLLDM3qb9zxuKSadbJChp3kHopKvvbGk9c7beWt?= =?us-ascii?Q?AwIuHWNiAZjeW3Dj3EiaDzjR6B2Ywna9xS0lKUI1o7sw87dzn+KgWslZ4hO4?= =?us-ascii?Q?uUMMQ71WBd0OJNvtvvKUcnlf/wa49ww/t/8eUuAxkSWhBzYf0FZC6lxEjEB+?= =?us-ascii?Q?pTIRcl+N0j5Ll5SXBdUcdat4h92O9c5IK4W99q5nlfVafBuW/dsvjElDwyBn?= =?us-ascii?Q?j0R4DjxCtbek1Y1adyqpd2MCzreJxFzhLcIr5fikzwrG6yweXWdUW3CHqg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9phMB3NPKsUwgLPOtgDo6u772ZTF/dbMXf8bF8qzidnHnTWBRbpWIPLUkQg4MT4X5FadEUPbVa9Tf37XOzdZnHQTF2nCQ7bhLK4luhOHmpIUd00O3YN5Izooam SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 08:44:57.3896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15300a91-7dd6-4aa6-c95f-08d53af34d12 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3472 Subject: Re: [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:45:01 -0000 On Mon, Dec 04, 2017 at 01:41:18PM +0530, Jerin Jacob wrote: > 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 > Reviewed-by: Pavan Nikhilesh