From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0052.outbound.protection.outlook.com [104.47.34.52]) by dpdk.org (Postfix) with ESMTP id 2331FFFA for ; Mon, 6 Feb 2017 06:24:23 +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=x2MMnKNnU7fz5zSsTveO82jbqpBC1IYHoya2zKdTwYE=; b=PDHAR4kddArLuxada3jmOHfYJQaR/byviPaClL8E3QSch9OYpCDRHQ6Q/XDSD5yxNv8/O4yGux8L28EcUHBWodbUuDfjDUCrbgSa4hQXcMCbUTsFCU0tAkDE2cgdEiEG5rLfu9eam7MDEZulrCM4ojEw0DmgBFxXyjDQ+Sh2SVQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (122.171.53.66) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Mon, 6 Feb 2017 05:24:18 +0000 From: Jerin Jacob To: CC: , , , , Jerin Jacob Date: Mon, 6 Feb 2017 10:53:37 +0530 Message-ID: <1486358620-4075-2-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1486358620-4075-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1486358620-4075-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.171.53.66] X-ClientProxiedBy: PN1PR01CA0029.INDPRD01.PROD.OUTLOOK.COM (10.164.137.36) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: 135e426d-986b-4e46-70cc-08d44e506754 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:0DF8NfYv0hjqiZpy3KwQFzajU4tj3zh1kAWzcd+tn5Opq2kbgI1GRmHqNwz2HCxMMrYUPEwMT5EnSteTU/P8pFF1hQYIy4oiPDwy2hycpPUnw6THkRwEVCyAxAn1lXALTGYfOmADs/Xi11paAOrc2qQT/MEF5bAa7vQqmsVHAbEnV6OcyW0mzL3gu8DN2Di++hSM9ZYCm1EJM43V7g5VqRD2PXxNRCnqDgCqirxIZrVVxcLnoWKFOLxWgPK/YB9gIvxfiWT62zgGUr2t1/M3BQ==; 25:xc/KghEzOmqWdWei+zRapsQqhni3/wxA/nf2kyvwnans1qD72OkOc8W2oVObJwiOJqAPX1cIxxwuwW8UoUPXFdOsYD5TMfs8lQjL4pNCK6OorDBtn08RMaWdCySmbKDGcEEtRuxgqdI1mY4i63YHwt5zDXw+5omQeuQu/ZI7kqNaLlh2wUaBz/DpA9L3Ieo1CBS6C/AGoa1KaQF+sV1L7K2ZmavXIh4ePySFGOcQudNHZraMyy/AAS0i7zQKvsmITAJx+JTUU4ec9puExBaYKZBgmYUCxe8/bGVPl+yMq3S+0UaY9Rgjs+niFbVOpyP/nEPmLkH2wRur0xueRhrQcYB31VhqLqBhPI1IdFiQ8iBLRFVwWViwkGbIbQjzlFFxEhPYH64jenEypsvn1RjSlm2mCMXnGUpdOJDWIEMDGK1Pn8gjv8hXV8uVCUxETIVTDRJyrS6xpWEaJ3oFFUgM9w== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:vc/KfVapFMcpnVsYK5zOqI21A4UuB3X8f8bG2tSWMZVMw6LFp0zJpYAteikP0rZK5JpTRQrGg38N+jxw+FYf0GDivKh01wAFxye2lQsUh9kFbjc6M7quKwZO+tYl9B0IRKNkQnv/APXIvyPTd+duINBcF3obV2iUO1if4eYY/W31PFWljIpQpQ3h+UYE8M6lj8XDDwQfLn4D17lXmz/p0uocldq6y4HqwbRv+2e7tUH9tYyhiPbQxYz+JlRWAyiZm0br3R7yTk3uIGDZnj6y6w==; 20:lwXUcVd3L8jYdVe3d7one+Ukb2495U0bdMCIvOVdzfvgw0LWVTyHLbVWijFfvjrnKdqhecI7St+3Pf81dqI80+kK8oAQHYdHr1kO7+hPZxWc8nQZcdGZGcHoCyR2mZ7/7ouC/IBjbnYpO+38XZ16Sr/2wbHqltyKNLjCIzBDVQXm1ZB144KWSaKCCNTy0m851gG+ayhunDzeeWtZfWwTH+V5k4dWrtnDZXVv02JtR2FUqkLIUNbwoAq3XEE2m47VOIDrFhn8OmvG7Gr4kNavaON/+aSvuIJTB2a4s4LH37UJhsMltZG/++7ihRPy5s/yzQPb6sflihpDtJER/uuoctkBFp3nQC7YkChnUz95jdS6YhQKZXAUQR7iMgxCgHQE3McAlRoPGDmfVTLE4lEg+igSI9SnDeUuK/Lo+Vj253yoRId+Y8nL/0+cDqnd9w0QRYB1kwj8kA9yO/HI4oFEsyTcDWIvVEfx568Q4UjXmpOzd+zUMPlOQtI/LAfDP3W0khiNZ+4gnNqN1O+0WPFb8Q+LMbElyqhRqg9mzv3MbWTA2D1qgtwoVz/XjJ40LdfnoStuB/O1ztCGP6N5sOchJnpUbEHF5kejvAifTwnrbLc= 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)(20170203043)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123558025)(20161123564025)(20161123560025)(20161123562025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:T3J4+sGUiAzm0zG1vf2Ze3EpNXLrWQoiOtdXydSSFkztB+PoYsvFfaqZwz20k5cskh+K7QoplFpXhQn/gHuy1Q2QIJTKCUEzj7p+38aqU7O3RrdniRzv7QdnUZhK5le5lDI1YcKapUyQdxKkoqe+IPKZkccx22/pT0rXNgr1sA+kDOwOj4A7RCNljdfIdk34qsiyuy6FhPM/A1BQoQfqWRjxxucnJR8TUFHasnafWeN6+D/ZdYrU7TuN7IMNbBv9X7Amtx17hhc24qGFHV4kCKq9Lo2N4e4YR+kpcdV7kzprFqUiNh7uRFuR7as4cYywaIhpzpSibWffHlLuFid8oJmCAe9V5LTqbnHBHViWKfOCtO723IOilTOqNNwX+dlFVsKd3ZpbYiV/ZGwcggh2t1BsqrVWhAdwe3u2VPdv3odcVmKa6hNaot+TJJEkq2kxfbMvbxt9eiJBpRHOwJJZCzhD7lDpwvFHBfhRoGwKAPuuXYlzhUDoKOZAUFNcd0u1sOjd4DppvHbag6BT63KdAwc4avLNCnYpsF9hjhKZ9NrFHxV5RBK+3Ogvl7Y2pRJ0tBVSOmz6b9qsca+tLD9AM4GmHLGN9Fe9S2d7wZM51v+dxVA7Ma5+BNJBg5YmImqm X-Forefront-PRVS: 0210479ED8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(189002)(199003)(42186005)(97736004)(50986999)(5003940100001)(76176999)(6666003)(53936002)(47776003)(38730400001)(107886002)(6916009)(2950100002)(42882006)(2351001)(4326007)(36756003)(6486002)(66066001)(110136003)(101416001)(6506006)(3846002)(6116002)(81156014)(2906002)(305945005)(6512007)(50226002)(189998001)(25786008)(54906002)(81166006)(7736002)(5890100001)(8676002)(4001430100002)(92566002)(48376002)(106356001)(105586002)(68736007)(50466002)(33646002)(8656002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain.localdomain; 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; BLUPR0701MB1714; 23:vf1xLqMXvANHioJqyXxatqo7S4u5do4mVw1Qwch?= =?us-ascii?Q?dIHjCoDERlL1q2Gfm5Le3sCsxIKFoc1pqiJbFUGyoSLB+W5fgsP23KMwI7h3?= =?us-ascii?Q?j/sGnG0gzjzxXxoJByXgSjwwz2JSy4tnaCYxGx8IIyxg8+lPLzffyhaY+y32?= =?us-ascii?Q?sio+l64KqABGStPl5fgy79yuasw/+mFzBlWTFCiWeZqrEikn5pcVLDMUJp7U?= =?us-ascii?Q?TcvGo5qj1CTli72d1lEJpiqZYN9Zgzbe6zwV+47acuUa4VI8ySsvZnjLqQeH?= =?us-ascii?Q?THvaxoc6NtE/iNMb+EfO/Ge+M4hvzwLDOsbqhXjUbBX+klz2U0LOS68XOinw?= =?us-ascii?Q?Kyv54uY4zL2j+9pgb3Q0JgVGTW8HuSTAONC+JtKzlFikwGpJQFRFID8uolAy?= =?us-ascii?Q?BqDQ0KWofjZXGUsrrpF0uZOck8dI94IiD1ig5gsGCROISd3vvVsPyg3Mazr0?= =?us-ascii?Q?TnZrRmmMTb3PHpg22MDet6zeIjQehz2O/1883ApCTepbbR2UP7wiIcNkfMHj?= =?us-ascii?Q?tyiqAQTc+oIOQDJ5U1MHlT8qFATOGYAnOtbn1XnYQS5tQ7ZGfaxG3bgmQthG?= =?us-ascii?Q?hFPHNt+CDqOkK0199HKclnJbPf6mjrByUdZnF4xT+rQABj4cfXhJrfVwLq+r?= =?us-ascii?Q?+LvxM4Rpnsak5TGUbGapTagLKALD3vsHvLvQfomWtbeyiPC8LgSOkMjQd1i7?= =?us-ascii?Q?mJ3005SrhtyDiRNyCI1pEhHULlDFzNFnCYyF9XMK03uhauajdvzfmBByQG//?= =?us-ascii?Q?SED8vk2oVmSazg15tMWA0nzmrhKqWKlTsNHzTadaoE5gWf+LgkRMTO8W0bed?= =?us-ascii?Q?F3jL1wyhNuXSbo/nCD+CoDas7u0GZ4nnNHtevDdt0ozIjPZL+rbN+YcKYejR?= =?us-ascii?Q?04fKUtwDx3Xa39eLDdsG+NnVrMZdI5RIgb74ScraKYuc6pOZxF1cekMNaz3K?= =?us-ascii?Q?O7nXSWTVYTF7YL7EncZLftchXDyZqHUKCFQOBDce1I88Jd4LwIRrPi+teHah?= =?us-ascii?Q?nIo1jIz4MjfaKYGNTv6tgbvGWj7xKEi+uzTVCRM8g9fHWdHX0q+/+xSvuJOr?= =?us-ascii?Q?iN2en2VXde4JypBas9mKoGZR8dJG1+3wW2e3AJebaQk2jlga53IT3i5ld8nZ?= =?us-ascii?Q?ijoudjakneEh3aVfvbCJZ+XWDluxiR6/vnFK4qJz/z2AAaLO120cc6hB1Ri3?= =?us-ascii?Q?yCfLO/79q/LZ3Z2c1wK1luaSeAQNDWqEQUMYSYtFOyfGnB4wj5UIlwHzwrWj?= =?us-ascii?Q?MpDF/QkaTjyqhEjAd/2I=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 6:AQxqh7DFSHehrrDgtY6YEFHSorljpAcVJQAvIfKYBq+jshUthQGf611jxpCWvks+Hqdzd4r6uuvuy4mb393ECGS/0T2xssOjMgVKnb+HUr9Hcw9qlDFk8CwJMFoxSciq+4WHfn4fZ8s+e43RzY8pdLlH553uHcM2huejl/CNdtyKOR2m4V7YIb1/bLkjmxdzuTltbQMUNudAdYQdwzkLyxlWMrxQpaFytRGZEhbpxCsk77q0HVfytf5qyamSHY7NHG3BizDLP9hrajr8yoseEi449rsFBiH5PyrQk12aQiw0X9AM6L4Dk0TzEvZMYDl4tXgJYwbuZ764J47zwRTajMsRCOTu5WvpvWHTWdCgsZvP2mDit051XmW29JrRjTuvxldk9L1iHk+rLzZsNS/Oqw==; 5:+t0DLN+aE9Va/BdGbTOqParNutjWqROuyt7tuKiO5EKnrfQFctCaUfFZvCOeCAyxcbsApnNjvSX344WVTDL53taC9jygcztThUF3Oxdc6YBqLytkhUdGouIduNpRQGd4fQEcL7cAsQh28zp/qxBEgg==; 24:UWAIMLM85mZkPhFXF0qjVlGtSrBp5PrV5SPwAUcCpPs0hcuOv16VKRI/beZa2xMqjvuJUu83lZW2JD1XdcqIsgXvDNp0ktOj/sSPhlobI6o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:j/irZIctEN2OMU9Uzc+3JxAUE6AXrwHHoG6c7zBuocNrsHAiUyApTk9NwLMDwMAXyBFDNayZMBaHsasUpVYj0ks4Cc/o3ppggR2QoWNyLiSaP/6bmKjp7fQKimB0om7HxRmO+v2YzzPUOaNaecPc7p7KLid6IVkbdaLRC5RPz0m0KOrlXpOf6Z1oHMH1N4P8ir/J0rz0b+2fj3SJvT62+2gWXup+NHZlQaXS/qrF7GOMOZS9YIedRMr7myHtV8GaOCBhEPC42soiw1cVC3byZdG8YaCPavQ7d6slOxM5Gdu7MF15zIamcOCPKwRgBim+hzB0vBc/v2CP1NOrieHq+91PCWlbHafdTqkC3owSxVcszqHnVzkpgRGDSMDnIjYOzu5Mk1Ji2aPGwV9ipNmC81hl+wZUfovvIQYRdHy4FYcV297HOWPqfl0Aw5AgHXIWWMTlDIJzhceZ0mGJRnNDob0xpxLvI6Fk2u94EEayjkxjKUDwzk0hL2uiFjQwk+vclGGC+PbRwu83tq4LAmiZVA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2017 05:24:18.1099 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH 1/4] eventdev: fix event driver name to eventdev lookup 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, 06 Feb 2017 05:24:23 -0000 - Removed uninitialized max_devs value - Corrected dev assignment Fixes: 8ca610e0487c ("eventdev: implement the northbound APIs") Signed-off-by: Jerin Jacob --- lib/librte_eventdev/rte_eventdev_pmd.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/librte_eventdev/rte_eventdev_pmd.h b/lib/librte_eventdev/rte_eventdev_pmd.h index 15843c6..4eea618 100644 --- a/lib/librte_eventdev/rte_eventdev_pmd.h +++ b/lib/librte_eventdev/rte_eventdev_pmd.h @@ -149,7 +149,6 @@ struct rte_eventdev_driver { /** Global structure used for maintaining state of allocated event devices */ struct rte_eventdev_global { uint8_t nb_devs; /**< Number of devices found */ - uint8_t max_devs; /**< Max number of devices */ }; extern struct rte_eventdev_global *rte_eventdev_globals; @@ -175,8 +174,8 @@ rte_event_pmd_get_named_dev(const char *name) if (name == NULL) return NULL; - for (i = 0, dev = &rte_eventdevs[i]; - i < rte_eventdev_globals->max_devs; i++) { + for (i = 0; i < RTE_EVENT_MAX_DEVS; i++) { + dev = &rte_eventdevs[i]; if ((dev->attached == RTE_EVENTDEV_ATTACHED) && (strcmp(dev->data->name, name) == 0)) return dev; -- 2.5.5