From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0079.outbound.protection.outlook.com [104.47.32.79]) by dpdk.org (Postfix) with ESMTP id C318629CA for ; Thu, 29 Jun 2017 16:20:37 +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=mzjrTeKYoXcdg/GU1nUoG2v4Pma67iBjc2TGHcpVEVw=; b=lMw5H8IdqDrgp5IkesHSjzEJAOOtvSoB8RrQcVD23pKcv80yPLPAcQjxmA6TKqqAyzOaSKvZHXE8jSEDQta2N1pfa1KcA+zkZ630rE5KJ1UgVPoq79Sm2HiFCFV78odqonyZIOgnJERIOA3UvWUSN6fTc4humefjzNkClc9yCGU= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (111.93.218.67) 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.1199.15; Thu, 29 Jun 2017 14:20:31 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, narender.vangati@intel.com, nikhil.rao@intel.com, Jerin Jacob Date: Thu, 29 Jun 2017 19:49:52 +0530 Message-Id: <20170629141956.23132-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0109.INDPRD01.PROD.OUTLOOK.COM (10.174.208.25) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fa77835-947c-42ac-a051-08d4befa01ac X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:OlPFA56jHAKnmuRy952Kq9zcvThh72isSXCsGuoGeJ144FiFt3zz9aE+fUWBy0n5IILe9rgtTbfH8DHpXUUbrmzUZXG8jzDcFecD0GjBCIic2WSHsrb3u8DmK0RkHXV3EijcsReADREhcUwAXMUopJHLEpARZZgLHgNxYuvujRR1NwDvjT9WOMjXki9J0Cp3A610LTb4SjOE0hfv+2ZPfUW4u/+gCFnuvzjEnA9cVfwozx2ORUfTV8B+qKKCY2bhvybVfU8D9akYCy9d94bQwUshBqvGkyPPtmg4jxekH7NtgcjevVLM94I7KA7Kt7XNBcLyI0o9i2hzqZd4T880MBjOwiVHYQ763qmSNcYbhQcUPo0oZx/W4celqtcJtfeRQh45dCEwRm03qfXhDrthGMssSxQzN1sq4NkNQdwkzJ37EhsJ13zJLEdzBPgGedGnbfNfA2EEDVwA3tyX0YIDQHqFUldHJ948O9xVWLvrBu/h84+ldgspnRmbh4sZ1Y3DZ/JY1uIVFVqjhoejbDn7AgLssSwlkhbTs6AgACsodfphC378nNpW3T/+sDOYrzB1QCB4HmwMBbE37AHgOz/2OKNN8UUitJwMj4E2QAbhxJFBfohnheagER56q+X+SqAEtaVI/VmuLmQXUnw70BfRfyhnR2k9cpl8UFUFuB0SOIrl/QhqKca9zGZ+loWQAaCWkeGakrdlxwy0Zz4C3cUa4y6XHxF/eV5YpMrZAGLSQV8= X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 25:lEuT4pBCjGvSs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sTSIArp/ZvacLQ//7lbHCcldsA4ByFdIoq3nGKOz49rmXFOQI2n6ziqMaCRnfDa+Pdnk5eRuBWgAxQb17SkcSpr9NPxDUh1s/8N9FjAvSqMURTOCvuYDcHfJsVkf67Ras0ZY48eumaJT+1wKxhNK3s= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(93006095)(10201501046)(6041248)(20161123558100)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(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:3fymfsI8Zoa83zhzFrulazU3zuF8uv6nzh3djXVj?= =?us-ascii?Q?Coo7ovpRnu4Mj5caM51lvU8+/mW51ShxH7MT49BqAmeUb6pp/ptVNjjh60Cr?= =?us-ascii?Q?JvprZfTwX5YFNYLD9xyS0l7aNm/6I1KVYmSZZofZsbkXLZqhqSfBRX0dyj5c?= =?us-ascii?Q?PkvT49zll2w5YH0bWd//ejoTuFDRj9j3JPsgTPYVWXiFw4pfkCh9y4hEXdjJ?= =?us-ascii?Q?JSRvhW8PjmsckEX/mU6k7CIisOctFZF2zMTiwOORV2JX/3A72OCIfbGtvfi3?= =?us-ascii?Q?9i9P0+q0ZQB7aalTlW0Ti+vdsubA0XtE9gWvJCGif0n9qnvig+t24wYwlF9X?= =?us-ascii?Q?vc0CWU5n/3GmAnI2qAhhKFUcVsqsIOBYN6YoZPQBe0yOceJujYtXxFopGJaQ?= =?us-ascii?Q?QN/ep61NaUyW8a4XVw5PpX2ExDazWL2ivl1wSa9jVq7F89Jdopf/azULW+9p?= =?us-ascii?Q?MG9hkvqoBqxrnsim2lUYb6BZaMGPLtMpC+b0evn5pS19V3QSXy70Z0B5J8FQ?= =?us-ascii?Q?1XwHSKqibopxOT4okCrx6/sv9FSz0fqOftqz8AoGrmE+Kc+ptiNkoXXsXfcJ?= =?us-ascii?Q?AnoRl9fNeas9CtDE5n/Pq1hx05Hw65l06rKBtyfdVrp7BxCxm/9VMI/K2fJR?= =?us-ascii?Q?W91MLwhPYNRhQphGpydNMFlsKxKAFBPHOtqUJE5HZ+aG6+I9QqVVUPsqqM0O?= =?us-ascii?Q?JpAvQaU9twFLQRvGpZHmirtV/f4uKFtQ2E+ywtA4MiFL8zGd3Z63Y2UtY/If?= =?us-ascii?Q?r8lVA4/DYvMrROQUnrVz8aXR7nuSEPC04TWQmJPZ2GhLk6pFZy491z1cNJr+?= =?us-ascii?Q?QYlDonNmId6lcJWloteJBNnvbmIkeGxSXB81kZofDAp+nRq2Jjp+kiAzvABA?= =?us-ascii?Q?rYURFBwHpBH3brlq++BOaiIuDjwvhGNrN83H3E3VQON+QfP/UYU/AYMDwEun?= =?us-ascii?Q?rou06ik+MKuCH7DNZQRy8pk2c/OC/F4EdySKFqF0GajNo6rzzlLEUn+TGhxQ?= =?us-ascii?Q?0bzVabT9o8MzWuYmUiGLVVoL+OtB5NzgOGigyBDlrTNxBWpfghMmzAryE9om?= =?us-ascii?Q?t9VryV+R6Em6ctvB/GzHnsN0MbSKf9zkRd/jYOA5XkndiO151Nc86lB3qot0?= =?us-ascii?Q?aAUvIuux/X09SJDuwDWBTaEhTPg/Ox9t/df5a6C8vZpKao7yX1xKASpCqT8V?= =?us-ascii?Q?Taj+4GxcP6cLhkkOwdZeX0uzD6it8TzwsWhX?= X-Forefront-PRVS: 0353563E2B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39450400003)(39410400002)(39840400002)(39400400002)(66066001)(5009440100003)(50986999)(53416004)(33646002)(5660300001)(42186005)(2351001)(53936002)(3846002)(189998001)(6506006)(8656002)(72206003)(50226002)(4326008)(6916009)(5003940100001)(42882006)(478600001)(6116002)(6666003)(81166006)(1076002)(25786009)(2361001)(8676002)(305945005)(48376002)(50466002)(6512007)(36756003)(5890100001)(6486002)(7736002)(38730400002)(107886003)(110136004)(47776003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:Gco4brBFWjARbl0S0fBIGLmdDWjf19fXzy+5x1N?= =?us-ascii?Q?UkjrJlsPaOABY2GoH8/5rrhjlqN3AATScvdhGP5mMCwEGApMlrFFOioC3nFg?= =?us-ascii?Q?QqNbDfXb0+210LqR90HvP7z4vQf37jNMapRjx9/4mYN2JtnwGucExPpP/gOH?= =?us-ascii?Q?79i7KOAdVckDVyzB4OvL3Q+GE1j9secr/rWWn7TSMxjftV17DKrAuolGSxN5?= =?us-ascii?Q?aeil0rYLAJsX+RUUL9euOUs77/O2aIKa/QvYoUQy+X6wOrALT4Eq13oMV6bn?= =?us-ascii?Q?nkX05Hol19nH/VRiZl8EYsNWHW6W3NNYBNBMg+CpRm7mdlKF5EijBZt2chpR?= =?us-ascii?Q?tXd0BBe3cTu4b2bd6qbDCJtj/Mz+UAJJDXK9vBw4aPZKOP2j/6/ESRVpzQGE?= =?us-ascii?Q?Vmd/Ns2HKFadJ6u+HPg8tCa94xwp2X0KHYgJpw3/202xcYM1TyZelJyLsD+T?= =?us-ascii?Q?HhVuzdYTrpRox6Po8O/gMWKscVX0vXFMYX9mhigpxHBT7Re8Q58j9czWZ8zX?= =?us-ascii?Q?yE82SqBQkicn3f6B7PaltBRVYrmlJJ+Vcu0m8rMWBX/kfFwYzbEnbWMEjRmN?= =?us-ascii?Q?9SvFpqP3IDaxusuUklGro0VZIu0CFdivJ+neutlFdf0lu5vMY29JhvABaXt7?= =?us-ascii?Q?PJa2wnRRMRS9LOtyBjiaGJhH72+4n9C8RouAcoQe/n96fZMm5iZIrBYw9kAX?= =?us-ascii?Q?W1V+h99DtoIuJx8jjkYDOEGJjir8lvDmo69heLof7/ifPtVDoG8jG7Xim5Cu?= =?us-ascii?Q?/Ck3pEN2T9meuMFoCPxRzP2Ji2F6nqhN+LSV5OjZ9cszN3hAehaFiNLX5+Hq?= =?us-ascii?Q?1VvBOvJOgbshDDNM5nBHjRq3y71YwyeoWVp/skkbITucgX6W4gdIcDGMvD6r?= =?us-ascii?Q?PjKJwDvKqejHUftm5sKYirUeIVbJoawcvKGSVtczVZyC/vh9jD/zmjAyO8Ir?= =?us-ascii?Q?Om1DGjZ2TVtlqlSIq8gIhIjaLElxaS9zFF3vPb416ehmQWhsYdPpzdST4jQ5?= =?us-ascii?Q?Q9FhTmmGKhsSar6d74EEuAWW1QWafPYirKKn0l/E4uOs4aHdHXzjThxBRbpC?= =?us-ascii?Q?eagCBsiZoAh3g/v5GhGUgd2AsnVseomIcrlqtiJCSlndqgQQc5tZgT0tBzTX?= =?us-ascii?Q?FTu6t2OBUA5bfCxm2MvvhKILIOTkh+pGlmlfuAuNTR2RaxyqKhWBy+GeLv/L?= =?us-ascii?Q?CFLp7uFafValB5rc=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 6:bRLf3l3J6CeXziDQLK0R/0NVYYYpicQdTyKFtWjG?= =?us-ascii?Q?FCoN1GSwD27s/kmOak38tfGDLv6FFj4Vl5mJNuveDBBzF+5jTvxnxS6N70yb?= =?us-ascii?Q?5bvmv7a4P0UoMpsQurFGmSB2x5NXaT7BoEt6mN4pIxB1ESs1M0xZN8iQNnTz?= =?us-ascii?Q?YnVCPhU1nLykH1gFDUhxuhmd3+XRMvaGibDrHlQE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y1J+Q2wkawOd7lH/ODy8JQBh6shPFtjXyNh58ZF0cBF6XzBHjLYaCFd+7RwM/ul5ijXeSWb51/40YUiSoCViPt2uVNU2gpJd6YahzEqQ3xrcS1HxNDIIL9iRdlEtllgZW8O7iHKcWT6L9iLIH3hEWV1B8LytFgl8K/o1NaCkbuErVdmMx0hXeM+QZMPa34jnlcRkOHes+fUcThM229q5kh8UolY4cQFwGGaq/vqjSHV6bYnSFgw3PKJEai9AgVslq1SXidIx4l0UKLcy18x66wGIouk59AqmMcMjx8YDukDhj/AcxbHL5gfi8V5eTFz1AWjtAoIViGZU3dT/XPYXOnWBYLpk/dx+ktdB2itIc+0kw4giMh1JGgHm3pYxP79j7CJhKVOSrS2xAkVXnmg= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2017 14:20:31.3085 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH 1/5] eventdev: introduce a helper function for enqueue burst 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: Thu, 29 Jun 2017 14:20:38 -0000 Introducing a helper function to avoid duplicating common enqueue burst code when introducing enqueue burst variants. Signed-off-by: Jerin Jacob --- lib/librte_eventdev/rte_eventdev.h | 54 ++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index a79a827ee..c4d623a62 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -1103,6 +1103,34 @@ rte_event_schedule(uint8_t dev_id) (*dev->schedule)(dev); } +static __rte_always_inline uint16_t +__rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id, + const struct rte_event ev[], uint16_t nb_events, + const event_enqueue_burst_t fn) +{ + const struct rte_eventdev *dev = &rte_eventdevs[dev_id]; + +#ifdef RTE_LIBRTE_EVENTDEV_DEBUG + if (dev_id >= RTE_EVENT_MAX_DEVS || !rte_eventdevs[dev_id].attached) { + rte_errno = -EINVAL; + return 0; + } + + if (port_id >= dev->data->nb_ports) { + rte_errno = -EINVAL; + return 0; + } +#endif + /* + * Allow zero cost non burst mode routine invocation if application + * requests nb_events as const one + */ + if (nb_events == 1) + return (*dev->enqueue)(dev->data->ports[port_id], ev); + else + return fn(dev->data->ports[port_id], ev, nb_events); +} + /** * Enqueue a burst of events objects or an event object supplied in *rte_event* * structure on an event device designated by its *dev_id* through the event @@ -1146,30 +1174,10 @@ static inline uint16_t rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id, const struct rte_event ev[], uint16_t nb_events) { - struct rte_eventdev *dev = &rte_eventdevs[dev_id]; + const struct rte_eventdev *dev = &rte_eventdevs[dev_id]; -#ifdef RTE_LIBRTE_EVENTDEV_DEBUG - if (dev_id >= RTE_EVENT_MAX_DEVS || !rte_eventdevs[dev_id].attached) { - rte_errno = -EINVAL; - return 0; - } - - if (port_id >= dev->data->nb_ports) { - rte_errno = -EINVAL; - return 0; - } -#endif - - /* - * Allow zero cost non burst mode routine invocation if application - * requests nb_events as const one - */ - if (nb_events == 1) - return (*dev->enqueue)( - dev->data->ports[port_id], ev); - else - return (*dev->enqueue_burst)( - dev->data->ports[port_id], ev, nb_events); + return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events, + dev->enqueue_burst); } /** -- 2.13.2