From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0070.outbound.protection.outlook.com [104.47.38.70]) by dpdk.org (Postfix) with ESMTP id D2590324E for ; Tue, 20 Jun 2017 16:11:32 +0200 (CEST) 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=oVYEJJHPuPeXELUen3Ea9Yz6TRQc5jHxSa+KhYVsPNY=; b=O2comDdrIh7w7LQx14GoSlWOow5jTxvfQ0ebut2p2kTmzq4nKngbjFU5/4hlO0F23qOpuxQoQE18cPi3zD6B5pnqK89Uep78HKC+qFzSRltbqYbD3D4uwDbNuqKm4Mzb5a96n9XE4rrAMPqGS7iOTjWbepmnknf0scheU15RRiY= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (122.167.106.99) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Tue, 20 Jun 2017 14:11:30 +0000 Date: Tue, 20 Jun 2017 19:41:14 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org Message-ID: <20170620141113.GB16157@jerin> References: <1496829884-189816-1-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1496829884-189816-1-git-send-email-harry.van.haaren@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [122.167.106.99] X-ClientProxiedBy: MA1PR01CA0103.INDPRD01.PROD.OUTLOOK.COM (10.174.56.147) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: 16ea1976-2081-41de-068a-08d4b7e64020 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:j7G+l8MmWa1fUqBcVeIyvMQ06hOd6zmyWwIlipE/km5g8wc7Sj3wf0JH69nPvs6vtep55aeg7skM8CuBVS8PyqO4kVJZWMPO0dBhS15vcnYAakCczi6/7ceXnHjuaYp/cGa1X+HmShSiYt0iwE+lRfBSS1qGo48RZTVVN/xkliP+FAdd6iiQdSpulIxwcuoaPu0UqB+KoeOCqgEMJxPjshmLvN4DgCOU3DDbMAXJcyyrSiOKwJMngm9Q6iOIkkJC8sLUQfuYS46iWgPhW5QK3z2TkUhxZBt4HDuf4aqkHNFaO9O/pBP3eClApdwL3mQpL9KIsKN7vz6jmkLrwtJHNg==; 25:+G0N6qA0A3thlNl0tCHR17Ru9WGFiCOlc6SPt7sUm4H6tjiQbrpKcymrSp2+lka9ueEhT0L4WAYPK1Khb0tISezuPps9h/3uqi7z622dwkZs09wLL3bR+2gQd2CK4ETt1lzKqbBWDbyy2jy68/j6RKHlnqd16UaStvVymK3dh5BzuDcRpnKvu99WeZW/CDGdxACEvsXlzX57goP3EsOpZBAwEN3Hqe2OnnXKKvF4odIQEaMbMcsewmzMFywWob8Rc/f4GBZC8NcfyT/phDQ/Rzc2nWjFvPjyC49U4xmLxEFUwiy1jRgygzitv9cBCJfNt7F2yJ2uxAHNBM9RAYuQYLFqJ0O1hJ2HHzUsHeb5GXssg7dQT5SWGhBcwLjHVQ9XYNWndCDqALynCL3mz/tLI/S7oNCLJt3rzEO3jF/jLZB3OIdv331jEhTAbj3T2e+8HsV3P97My5Jx/QCpE03AYLJiu8uAeWh24MAD2jNo/NE= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:GqK+wPk88n6Jb6QCjwoEHslk0BlABzZ+Yy+uoQp3R86yvWvrY7A7iLikx1/fqasIfJuuFcjpIHbTMRmgqupM++7T2HBonLDv00BYiF85RmXduXQxop3dfcKVq7gSVnd0HI2mKW2vJSE3S8Y+/XP1RsybkNiQm2yKPIbCZvDL+50GT6zRehKL1uQP5xYRcD91VqsGeo9hWBu5x9lMukAz//MioaPmZl/qiAxkM6APiDE+XCW+gZwR7szrKWjxrjgX2Y7Arkas8hCNSL8rRMxRYg==; 20:MGaRuHtN26AvP3OA1fWHi4ebBg84Ex1qPTKqPXln8yn8B3w8zjTY/IbMrh21wdXDIwLCnXas2dP4YRjq+CMvnn0KioLBeNZ23ZiVSYoC+qm8+K3jYlqYXJ0DVVZ+t6pvCAP/sXa0dzOXpSlftZajB/0V3+1/57uYloj+Hj3ylRyosqXFmS8DaMFbpJa0dePq5zdZ65qVPGkUU6c6f311xBS7dB27WonKgy2h9ffFEiBT0eq3s2cQsjBfgkDZ1t9n42ayroaTFCG/DHDPduyuhudYPktdVDbaAMeUb2BkAmhQ+32bLMzdqNpXFTZ4Mgj/4WE0CW+rgNyjnFB8dr3nJ/alJpy4dfaUs/yUtkOWxE4RFc0IIWi8LyXQj6A3VVdqrrpcFVAXB5b7PubVD+rZ4hDuG/BwwqMWaQ4eXiFAJNRQhD2hTrMdDYG98bZmeMGOSkrKqnBAATtqbTWCB9ZYsLq6cDW8WSIgWRzpBhR1zkaEWUntEVIn89vK3DivRcSDYz8EWHCSoYPA1vZmhKT0sO9cSBreAgBo75Hp9qoMkvnfcGFc9J8Xek7ywKXrDFllzzYNHKANt/sVQcrJb2REVYEeap7ArXlEqoREUXxGEhc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:t/8TOPbmhmNEjuH1oRwW0PSM45M1+E5bobvXI4V9?= =?us-ascii?Q?3j5da1Cf273ppOlQhLSIeSM6TUfkXoiix90i+tRwPyyxMF0gysr30o6Jt3jD?= =?us-ascii?Q?uVhBstsHA5WmAXIlvZXwxFbSuiM/MkSFHwZvhLD4olNDgvl3rjZ6A8ybXsmr?= =?us-ascii?Q?hU4/8+kJ5t5SVTva0y/aTegU4dtQXx2+UPbF6jldc150rrvupPpWhURrY6OA?= =?us-ascii?Q?ac5NWAO0Q3ZHkbasjyQQT81bFmYnMaospJVfAthp9QoBhNo47+3XLdz8jhV6?= =?us-ascii?Q?za20EAcWORJ/60rBp3vKRHOJ0m6IO86L2Sj4vAGgM48E53HG5bUOwVJjx0Vi?= =?us-ascii?Q?8Evszlzl08kPDfzPoYJtHbvG75t2xijHGkE0wAp6LhIDpAEpUD12rxVmna9a?= =?us-ascii?Q?FPwhm+VqUO0beMPVJambFgbYA3w1jZBSGEGMXBCMslWPvcpJMYVf8ke7wtUQ?= =?us-ascii?Q?7nkKYRHIRQ2JBfWA+b8zYsRZIMZvW2hsQIAnv+oXPWWG2cTgJtJ0o/HBqhFz?= =?us-ascii?Q?otXugAN9aPjG/CWtjyrX03yzMXxOofb8Ma6+8RoGMmHK4cfj1RvjbBu3duzW?= =?us-ascii?Q?0nqJArNg2qSHy3MrdrIMk7qw/vOdaNwUut52IyP8ZPiKoCJWxYArqtHp4720?= =?us-ascii?Q?q9Si0lhq90btg57yiAiaGZtm7cOj1p4Urvj1cxoLaUP73pwxeuG7pMkoZAzx?= =?us-ascii?Q?4n/T2zpb7UncWgvRvy7jBbnrlrCpJ2QuFqoJLsxF3nppjTNrTyuxKyQzYXWa?= =?us-ascii?Q?qshKCegnkfmeKsBfGcUzIzRuTnKSskSswA8x5e5ZD6rvPKJjeUOMSytIihmz?= =?us-ascii?Q?bGCAXB043CUKeRJiG4HZhfIA47ubRcLbmSK5IU4s5ODJGjKT7BiqbwA7qwTG?= =?us-ascii?Q?UEbNvTKOEIcTZXueK3MBIphxBdmKq7gIAFzE0v2Kb5j8Uv5D/WRQmYvb6/DO?= =?us-ascii?Q?RP7drzSkIn3pP0e2c8SZgng41X3Cx4xpW4FOr89nPlUvwwyNmCUeo/gaYAOm?= =?us-ascii?Q?brAve/bR5lJK9qJ8UrBzbhbXLPAZjWUM1mc/kN8vGUNhFYl3UR94yIHDqGom?= =?us-ascii?Q?6RlwkoP0Tmr/Eoi4FdYMm32X8saaA1VyHD8Y2oEOogCOJOhLCJxlaQEm8tN2?= =?us-ascii?Q?lyCVGw2x03o5xyoQ7C+AP4pLzu2pLrkVpL3y1zpAYGt4SkkEnQc06A=3D=3D?= X-Forefront-PRVS: 03449D5DD1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39840400002)(39850400002)(39450400003)(39410400002)(13464003)(33656002)(6666003)(5660300001)(4326008)(33716001)(2950100002)(2906002)(8676002)(229853002)(189998001)(25786009)(81166006)(6916009)(9686003)(42882006)(53936002)(50466002)(3846002)(6116002)(55016002)(575784001)(83506001)(42186005)(47776003)(4001350100001)(72206003)(66066001)(1076002)(76176999)(50986999)(54356999)(478600001)(6496005)(23726003)(305945005)(38730400002)(6246003)(110136004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701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lqYa6S7nsFYMkZLP9/7fqNqnqc= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 14:11:30.0252 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [dpdk-dev] [PATCH] event/sw: fix mapped qid count with parallel queue 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: Tue, 20 Jun 2017 14:11:33 -0000 -----Original Message----- > Date: Wed, 7 Jun 2017 11:04:44 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, Harry van Haaren > > Subject: [PATCH] event/sw: fix mapped qid count with parallel queue > X-Mailer: git-send-email 2.7.4 > > This commit fixes the counting of mapped queues to a port, > when the type of queue type is PARALLEL. Not incrementing > the count here could lead to an underflow of the count when > unlinking at a later date. > > Fixes: 371a688fc159 ("event/sw: support linking queues to ports") Applied to dpdk-next-eventdev/master. Thanks. > > Reported-by: Jesse Bruni > Signed-off-by: Harry van Haaren > --- > drivers/event/sw/sw_evdev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c > index a31aaa6..235e0cc 100644 > --- a/drivers/event/sw/sw_evdev.c > +++ b/drivers/event/sw/sw_evdev.c > @@ -90,7 +90,8 @@ sw_port_link(struct rte_eventdev *dev, void *port, const uint8_t queues[], > } else if (q->type == RTE_SCHED_TYPE_ORDERED) { > p->num_ordered_qids++; > p->num_qids_mapped++; > - } else if (q->type == RTE_SCHED_TYPE_ATOMIC) { > + } else if (q->type == RTE_SCHED_TYPE_ATOMIC || > + q->type == RTE_SCHED_TYPE_PARALLEL) { > p->num_qids_mapped++; > } > > -- > 2.7.4 >