From patchwork Tue Jun 27 13:22:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 106432 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1208402qge; Tue, 27 Jun 2017 06:32:35 -0700 (PDT) X-Received: by 10.200.58.71 with SMTP id w65mr6313585qte.136.1498570354980; Tue, 27 Jun 2017 06:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498570354; cv=none; d=google.com; s=arc-20160816; b=pRSWaMZwx2xYzMnqLWjVOnWJs9jWmLa61saZcy/kjxbv7fta0JENoD/SoVLo6PKJq3 rWmh2ZHugkufdqx3T1SVzxLPKK7agLastz+Y1S4IHKQGis+gIwJxgtMc3dJ9z/q/jBug UG6OzzlyvCXFGwayJoRELq7n7TevugJqOMFXPT2RZspf+i//VOJy7aCnoXakviDb0XKt YaIahEw0C/+i+ijoBgJ4qylZmrHZYv11/B9FtfOtK0ysGxqNQiOet+vSXc1Fb3Lg9CQe /hCSq7T4wipO0IEwqT5smB6/Y7qWIXg7hQOfIAXachttORvMdx1O/0csaTUuB7tTXB2A ZHmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=6TpV46jdxgZT6WtW8ei/eLzPmQUv1sqgEQaiBRm1jU4=; b=EqUCwOS7Ivk0yTNvY+ksOGWB9I8NOibyKG5XpsrrRcmEGUTdZH5RsdVzkRqeKOBqh8 vaK+WhWbxfhO13FdSBMV4cnYCLG8grybIMQ+cVXbVW9DckF6F5AbfxcZ5J2YqRYfXTUn tCW9syvjK6lbZcJ8tSVq2u6SXAWW1cP+UkMqzKLRmA90WkqnVW/OTHo42BdT+U8Rqw6k D6J1KiKe1DfPVOZUolXjYTlMRAUXAetMnVCdHI8R13DjwIZXpL2RIpBa7CUjhLGRzsv7 4enoc9LEYVPRAgGZgU3wM9quhWP3X1uwnFAFlvAroEm1FfsGX03ehsWe7113GSGPWRZh FqGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 139si2764963qkk.236.2017.06.27.06.32.34; Tue, 27 Jun 2017 06:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 894D560D48; Tue, 27 Jun 2017 13:32:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 74E1360C1A; Tue, 27 Jun 2017 13:24:37 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B15E860D48; Tue, 27 Jun 2017 13:24:30 +0000 (UTC) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40138.outbound.protection.outlook.com [40.107.4.138]) by lists.linaro.org (Postfix) with ESMTPS id 13D4760BF8 for ; Tue, 27 Jun 2017 13:23:06 +0000 (UTC) Received: from HE1PR0701CA0032.eurprd07.prod.outlook.com (2603:10a6:3:5::42) by AM4PR0701MB2195.eurprd07.prod.outlook.com (2603:10a6:200:45::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5; Tue, 27 Jun 2017 13:23:04 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::202) by HE1PR0701CA0032.outlook.office365.com (2603:10a6:3:5::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5 via Frontend Transport; Tue, 27 Jun 2017 13:23:04 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.240 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.240) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 13:23:03 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMhpb014764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2017 16:22:43 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMheq014758 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Tue, 27 Jun 2017 16:22:43 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Tue, 27 Jun 2017 16:22:39 +0300 Message-ID: <20170627132243.17298-2-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170627132243.17298-1-petri.savolainen@linaro.org> References: <20170627132243.17298-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:CAL; SCL:-1; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39840400002)(39850400002)(39400400002)(39410400002)(39450400003)(2980300002)(189002)(199003)(9170700003)(22756006)(5660300001)(2906002)(305945005)(47776003)(48376002)(189998001)(5003940100001)(2950100002)(498600001)(6666003)(6916009)(77096006)(1076002)(38730400002)(110136004)(36756003)(50466002)(50226002)(8936002)(33646002)(76176999)(53936002)(8676002)(575784001)(50986999)(86362001)(106466001)(2351001)(356003)(105596002)(81166006)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR0701MB2195; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT021; 1:YFTnaYtbVA1lPHfIc5V1oxf6dGe1uKd610k3fhKvOaqj6wH+F/crTC2bBGeOglxA+sAQGeRW2Y/LO8LF7ClvZMuCSqW53bH//qgqogT6P9qK1cPiKbyHOFF/Rno2SZkXAqVKyi0da1H3iehxYTJHKPaXBtMR+LVrd3wfoARTKSTmZEg2Jv72ZOAA0xYDiLGtmwn86mmUqqp6M3fpwGQG6arKxIcNPlZZ302VSS2IXyYIdVA0jpUmMuXU05NCSRq5m3C+6ZEiq15HBM8RcA4g9la9cbzhHIxlGibYPICbxDbCc0PVLwJL8Vl69fmAH7z478z8zn8CQFONKvqQlqA+L1LvDE3eZ0OGIfOIwl/iLYOpJoPI1DySMmn9sjp0yItQyXrezUSdn3nQCw6q/+E98UUHDYW+5LzFddsPl/sRw3/q9RK0NA6D97YPpB3ilbdYw/rvn3mBHRXaqFyVtPNNdRQ7h/1Nu4x4yZcY5WfdeiRScXBamZ4iGMx5aPwpNeOPxmXx3wxV5svi9opWQSQz0ZFpniV7cE8/LCMIF9WK25a0jmYils1DagFAlTdsFCCNO5xUG0QSrfC5bIHkPD4mfVSm6WVD7AJr6cTqPNKNLS0ECBVQk5Pn92z9EapUydI7ZjbYucSCOD/2oQtrsmPALxAokykVv0vnCpdAyDlVi2Ki/8JlpAItLMpQ+3jM4n1RnlUOUam1B73kgjib1XKCdvHL5+EF3ONOF1+g1vNiwvqqyWsisiWQxl1uOeH3KykX9ZDSmoAmapNQBhE5X0ZG3l1+JOWVSslFvSB1t3yOhxO1AGXtDhPaUWUDzkYubW89d05Z5dYwrSwXsBw5l1eWSa1TJEFi7gg7i1iOvKwkJai5YG6Ww3I/MR/hYAQGkL8k MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6724ce6c-c653-4c8a-08eb-08d4bd5fa410 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:AM4PR0701MB2195; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0701MB2195; 3:cw5pWIv+t+8mnkPunLdDsoaiW71RHWnDyh6CBvL1m5T87dwEsmMddM8f1X8DeOCy6vHNMbp4tcsTI1xRKYxGhHkMZhQ8FtPVRM1oJRW/OrXf6iCqlXCp9z15uQb8rZRWV1oo8cjEHb56admhZbg8K66IFg1rTnXeT7lZ4Mnldo4aA8Ks/HhUf72qyRKSL/pDnYQd9dQ0zdAoMzvPP0H0l7CeTt0bEqiWX5+uw4lvw0JIMf8bf60A3M52POhbwiEymNLUIKXCoObCTfy+R39VGVxJj20FCeqNzHS6u6sw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kNTmDaLT8/yhLJAvDBZM0BdoNKFufTxaMORUnI/rpyqSZXqb0Oro28y4hra2pEKARXs55cv9iqmCS9YWepTNkW2R8wQEir7Gn6yv8BBQXes3UmWl3DsGVezP1vFtRO943RI4gc1W02L91Y4Pld3e/DkA== X-Microsoft-Exchange-Diagnostics: 1; AM4PR0701MB2195; 20:rMRQ1ZSKAy8YnvOBX1GrFw4MIVKv7ZZYgm5AWbe1sZvtS1/ZcuU7/ZB85CUvfABqmuq1yp7Q/5F0z3r1jsR/Fw7p09eGpM+5G0Ao1pALmYRsZ+gnL5iDtxu44tFv+wrhyLPK2E80ojfOd/OT+VSc9TtOSUZdvis8xjhxiQ6VCat8DHVyzKOEZ2VM7hyliptCnjZ0UWAshLBf9e9ZttigCvK4zCdEfR7GRJiemr0ehNXG8lwTlUqXa0Bi7ELa/VjOR/z8+7Cp7ngnyZKqU4trNjJ7XaVsuSD3skVPibbXFx66YvQcsm3sCa8vdGBXx/Ld9h4lckgqId9etke03JZ4fjuWpkZsfkl90j/cc86NAZsFKJxyeQZ5dUL7rOkT5NrYaokQ0qXXWRjCSLu5LfxbTMhv2gXQP7snVkbGjAUhJNTcDQJxPC8dDrnI7c9TuBk5Qz1aBJFBxXJYiEpGzwdypa8YavFt2HS45waXxptrdh3Rwg6ef9EYeqtlJiQQltHh+ccV5Os0W2YwYFILkoGgQC4oNeQsA5ipCyV8l/vdLd1+N9ms197l6SLR68YmQuMNnIvoi/SZT2hs6HtzjiiYoC+fQEKF2MpzKmkbY/sdSPw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13021025)(13013025)(3002001)(93006095)(93003095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR0701MB2195; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR0701MB2195; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0701MB2195; 4:G0AVpUpNkeE5JTl48OFawK8fVtmyG0C55S1CSvYb?= m4kOLGQ5VNOI+MbkkGLGtUytceSjKl7q77YJbE8VK4eOjGQJ6AF82spHnstepRuiD42blJukFYWo52Ygp1idS/SCh2wKNsKeXHS3RYLYxnzr5d1ZXF6atoTUiF3fJ2bxYqLTbyE5VpTwotl+wiv5AoM39ts1gByRUaHLCxlU98YHPykJ1ff1CaqOkrE5b6cS5eDXXEKDiHV00de1Foc63hEPCwTj50IeLa/q3t/tMlbBRUP2DDje+AksYRzSnVzdBtfNpqMeVAxhR9K7DAatIcAu1xmsv0RzXg3+/QYi1GLfljNFl9zLtEr2FEzWarq4Liag33FLRvHpNfhW+FwbaaoVSqB9J5qlmzfZqSF7qEwJTPm1A4hD1ia1sJl1Xw7TofOoZY6P+9exp3UM++J46CytRQw/+Im7mz7XPLagt84dbuqaA5y2BsGN30rVdBLQ3QTSSFPmLc4nHJPD8FSWYznJ86d2HnJ/eIyqygfxmB+wcOWA0qTvHwCVDOaTSHwXeRrdpkN+dy+NZzSF03elGDufS2r8L+nTWKrk7mZMWaLzaF0kppk/crIVBtWLRQE+shTbTsVFolghPR80bGIw76ChIYaqLW0JE/L3kXaOtp5ON3meOlfVs1VSHpRO8dBAcFk9VfbK+OAjze0omoTr4rCe9DJq4GAQeSBT0IWmG9Vu5mVACEt+Cyd1JV6jj8ifUEyQCVFiQowoJ2qoi4gXQnIYpaDjrdWp3/28zcqP5cshO7r5WGIVjiL8+PEK5C+y3ErxqQm75WOt5VhImAliw0RQuR2ifoeKYj0ZVASxEyWajlD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GmvVa0o+JcePEQo/IyH6jK+f7tL6xgG8/0u92414jLGyHDKK/AwtIw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0701MB2195; 7:zdeCHUPDbepODt0fGcMq6hyl5NGd9ALNCYBr9Eh2XWHp9dj4EA5ttpwV+Rm5cdFYDvxMNrl64M0giJq+QoAWuPMt1XdcFFi8iQSHufjoPK4w8kmjP2O5rEm0tFnjS/p3GB+gOIbv70ejHlUP+01XAiwqjFvDiwfPkdQTDrYCa0hsvQ8lLrTvqjgTQBT58AH7dCIiGUDDfaUy2SlLGmy/7gr0t4aEKjC5Ie0dwtRlgXA8S+FfbUcjSgZQ3Qlk+7DY1w/oPTM9B+DCYz/eYJDjheviMRy3lX8ADgLVQWImXXlhWVzCRX/R8id4FDDKzqBvy0wqf1KeE1hiaeaGdVvrtm/pXXussoLbHlPbL8IGCpPDLn6XfLWJ8OiqYHQOHbKxDeRux2TltjM/mj97TsVNJ+KjxwZQXNzHLekBh+dvZtY2WQ8qRGDrIznppiWiOVIixsqKNalsH+2Yks9Is6VapFhZHcr+/0t3Hf0tLwHf6WKr5OLOF4XrhgyFdlFa+f5N3jpNt4H+kosbSVH694sZiUeohE9Kye7tlerHPM5jb4IoUfSQ5cw08Wev90d3I8TMic3xxrJzRnhvtYhlt8uDTLFHD40xo+VzNKgn5bXBDovQG/ORXIsqYN3zChG9gX+nwr0Otnde8SLwZ1ZetmwrzA3OAF299nMuMJEYIMYqbfv0jq3vrsAczswH2FFMqArYpl74CiE1qaqebaZA9Rz7MiC+v2HSDeHo2B6CCd3phNjTFNA+iz2gqnniuVWwIPw/CBvheXA+eawdnTarVEX7y26m5iVq9od4d05JLvMZgcQ= X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 13:23:03.6420 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.240]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0701MB2195 Subject: [lng-odp] [API-NEXT PATCH 1/5] linux-gen: cls: avoid queue conversions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Use internal queue type instead of API handle. This way per packet queue conversions are avoided. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_packet_internal.h | 3 ++- platform/linux-generic/include/odp_queue_if.h | 2 ++ platform/linux-generic/odp_classification.c | 10 +++++----- platform/linux-generic/odp_packet_io.c | 4 +--- 4 files changed, 10 insertions(+), 9 deletions(-) -- 2.13.0 diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index cdd139bb..d513f05e 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -27,6 +27,7 @@ extern "C" { #include #include #include +#include /** Minimum segment length expected by packet_parse_common() */ #define PACKET_PARSE_SEG_LEN 96 @@ -126,7 +127,7 @@ typedef struct { odp_time_t timestamp; /* Classifier destination queue */ - odp_queue_t dst_queue; + queue_t dst_queue; /* Result for crypto */ odp_crypto_generic_op_result_t op_result; diff --git a/platform/linux-generic/include/odp_queue_if.h b/platform/linux-generic/include/odp_queue_if.h index 168d0e9e..b5cbd515 100644 --- a/platform/linux-generic/include/odp_queue_if.h +++ b/platform/linux-generic/include/odp_queue_if.h @@ -48,6 +48,8 @@ typedef struct { typedef struct { char dummy; } _queue_t; typedef _queue_t *queue_t; +#define QUEUE_NULL ((queue_t)NULL) + typedef int (*queue_init_global_fn_t)(void); typedef int (*queue_term_global_fn_t)(void); typedef int (*queue_init_local_fn_t)(void); diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index 5f153e73..cc08b9f4 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -162,7 +162,7 @@ odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param) /* Packets are dropped if Queue or Pool is invalid*/ if (param->queue == ODP_QUEUE_INVALID) - queue = NULL; + queue = QUEUE_NULL; else queue = queue_fn->from_ext(param->queue); @@ -264,7 +264,7 @@ int odp_cos_queue_set(odp_cos_t cos_id, odp_queue_t queue_id) /* Locking is not required as intermittent stale data during CoS modification is acceptable*/ if (queue_id == ODP_QUEUE_INVALID) - cos->s.queue = NULL; + cos->s.queue = QUEUE_NULL; else cos->s.queue = queue_fn->from_ext(queue_id); return 0; @@ -279,7 +279,7 @@ odp_queue_t odp_cos_queue(odp_cos_t cos_id) return ODP_QUEUE_INVALID; } - if (!cos->s.queue) + if (cos->s.queue == QUEUE_NULL) return ODP_QUEUE_INVALID; return queue_fn->to_ext(cos->s.queue); @@ -841,12 +841,12 @@ int cls_classify_packet(pktio_entry_t *entry, const uint8_t *base, if (cos == NULL) return -EINVAL; - if (cos->s.queue == NULL || cos->s.pool == ODP_POOL_INVALID) + if (cos->s.queue == QUEUE_NULL || cos->s.pool == ODP_POOL_INVALID) return -EFAULT; *pool = cos->s.pool; pkt_hdr->p.input_flags.dst_queue = 1; - pkt_hdr->dst_queue = queue_fn->to_ext(cos->s.queue); + pkt_hdr->dst_queue = cos->s.queue; return 0; } diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 4dd28549..6ff35046 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -566,11 +566,9 @@ static inline int pktin_recv_buf(odp_pktin_queue_t queue, buf_hdr = packet_to_buf_hdr(pkt); if (pkt_hdr->p.input_flags.dst_queue) { - queue_t dst_queue; int ret; - dst_queue = queue_fn->from_ext(pkt_hdr->dst_queue); - ret = queue_fn->enq(dst_queue, buf_hdr); + ret = queue_fn->enq(pkt_hdr->dst_queue, buf_hdr); if (ret < 0) odp_packet_free(pkt); continue; From patchwork Tue Jun 27 13:22:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 106435 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1211792qge; Tue, 27 Jun 2017 06:35:55 -0700 (PDT) X-Received: by 10.200.39.24 with SMTP id g24mr6141773qtg.163.1498570555279; Tue, 27 Jun 2017 06:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498570555; cv=none; d=google.com; s=arc-20160816; b=Ha9LxhaYiMAvnMWeJpI83i2y8ee0xHeP/aodTKwtvRGy+/nRPH1ZggXyBmB94LOQgt JVO7u4lbRoXqYbsCbGmF7/wcjlN30MvfCCI4R6qJLkSW21oDtl6OM1yc6aH5DCS852lU kcT4tMfcXmQGqB5beiY7SFURPW6DA5aDQ3otopfbJu4bWcY/Ri1rpwNCmJgVOUJxAWI2 yq6MFMABmw2icokro8ScKRhwN18juDC88v3VESzIwhklTxxl5L35mr01Wm9II/uCSlb/ 5m6NABgGWd098MdM5tR0+9MS4DEMTNtlRT+dInAdDRigDo3jr5UdaTgLKT/JgI9xorSc pv1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=iEuySg1IQpO71Kiin4UVTJTjOGObRqctUpAUM/QETrc=; b=hFhBQY0rt/BJd7+/cfrVwS9jmaK6vHF5t588moxpADQuIpvwd9FylEW45bHUCxhWF1 y/H/9aobaORDPrZlBuDJUIie3HfvnrbQR6PLH3378hhJsrMUmN72RTVagI7OZwMZq6Ud lHdGcQ5Q2CMw6uGnYwt4C0MdNCNAnYdLvjJtSTvS3c/UziN3vqOVVmfZ5lW26sK9dCnk lEI2KXYyBF4O+8LuF+jmM7NIJu6z4OGIW/hj8kHWiQK08EYG4YQoV7Bn4D5hgi38kjuC sDEjabTSMOEEZp/izCW/w5cI4QFeOjr8VWZAQU6eUzi1hnaRbi+Sl6kvBbSDHPFLSkOA NA3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k8si2759658qtb.392.2017.06.27.06.35.55; Tue, 27 Jun 2017 06:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E35EA60665; Tue, 27 Jun 2017 13:35:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DD46960656; Tue, 27 Jun 2017 13:25:14 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B75C960D69; Tue, 27 Jun 2017 13:25:03 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00092.outbound.protection.outlook.com [40.107.0.92]) by lists.linaro.org (Postfix) with ESMTPS id C3F5960D6F for ; Tue, 27 Jun 2017 13:23:09 +0000 (UTC) Received: from HE1PR0701CA0001.eurprd07.prod.outlook.com (2603:10a6:3:5::11) by VI1PR07MB1054.eurprd07.prod.outlook.com (2a01:111:e400:5096::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5; Tue, 27 Jun 2017 13:23:07 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::207) by HE1PR0701CA0001.outlook.office365.com (2603:10a6:3:5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5 via Frontend Transport; Tue, 27 Jun 2017 13:23:06 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.240 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.240) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 13:23:06 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMhmX014767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2017 16:22:43 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMher014758 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Tue, 27 Jun 2017 16:22:43 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Tue, 27 Jun 2017 16:22:40 +0300 Message-ID: <20170627132243.17298-3-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170627132243.17298-1-petri.savolainen@linaro.org> References: <20170627132243.17298-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:CAL; SCL:-1; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39840400002)(39400400002)(39850400002)(39860400002)(39410400002)(2980300002)(199003)(189002)(9170700003)(356003)(2351001)(498600001)(106466001)(2906002)(105596002)(36756003)(47776003)(8936002)(110136004)(38730400002)(8676002)(50226002)(1076002)(50466002)(50986999)(76176999)(81166006)(33646002)(48376002)(5003940100001)(5660300001)(2950100002)(305945005)(22756006)(86362001)(6916009)(77096006)(189998001)(53936002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB1054; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT021; 1:MrZZUktqApkQjRTHufdW6tMNWW+aTQYs+Oq6oeVSLLF7IUUII0fJytL7waPLRphUQZ1UEAyZfz2ALfb3oZ34u60EiIpGcmswSgi7jvC7c7+Q0fO2fxTrd4O2nNvzwM2uVtI+igq9feXxzhu+0MPjxgAY7iWMhHqmh5qSjpK6KfrLE9gBpZcCnCYLD78zRQEBCMQvmNW6Tr9NxGeZ97G8NDnPWlXmsv0VuWWshaEKghHzuW8n2onMPlOIL+VoDGQdr/p18ANu8EaDk6VuPbP8Qz3JJq/I6e5je2Cn51sNe00SRARElpxQ6Lxtg71GZT+T5/5vmj26bHXAuwh809EpEFQZgPGPzrZEPJlNVIaVW6fKhZ/Mgw2xDYVNzzOMZkaGktFLmuWJvVQNp5pXPgxv1rr1gfxMHB2IlTi6VHd1MOJ1+f/3MHBa42/GPFlcELUaG2/yvl/C+EVNsCHddTllju6Ym1CLjcBeIX16ASqdfq9du7WJy0uU+MoVB9Xf6gPCbC2zmUIM2Vcl3lUq9PXMCiGhtTfXhr/qSzBd+jBvqrAkS3dWwndPOkxxThzY5RUuIa9xS2+6MBuALc6t6BU9R7cpM5IFbZFp/9Fg1ud8FzplqfI+VIxNojMjM/FVQDQpr6i1BadFoeRgdlVAgR0IM9/AZpbghldblm3EILO0Kk2i+pTxFAYXqceKcYno7TG+16AtsX9zjw8O47Io3jIBauIRq4Rsq1z67YlsZR4aW59gXrSVmtiHD65eB/3gEZZjVOkNWBVeQoHf3+OS20kjhEWO9yAPk0mKG8XybJxEbV8Ukcfc4EEbtBBA+JwaH7m5mYF46d/HkuZFDC1NtqC9sdEnkUHaBSpkpLmaRhkjH841VXw3h8yJlDq8pLMnOwRj MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 04448909-1b34-4e14-9558-08d4bd5fa5a0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:VI1PR07MB1054; X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB1054; 3:MjErmErM4iWYMUkjbLbNQxNKE0OkVWCsV1VCUU2VZga74YUIoXZh2J/hgXmug+yQAWwvFSw++R0tMGNq8jGlJCr1+k8+P0dCNsC4aFDuxkuiJ//9o/2qkOiY8vtX3O6Wi9DaZqLaM7SiFuk5OUaFuz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WgmNrQHVoHy0E4jQUSHYCBG6XxSu/XCYK9eF6Y37UqyDZASSl302QfJZ9kFxEiGUvvq4FuGPVteLNiDC6COrIWpvcQNhH/Ai5MBHMIbEZjOt8r4tp0Sxl5gz8C7exUbRFC9JiYNk4lQxJIbbIQye7XkMexaqKWRr0W8V7XiJjuDqA7R5Co12yKcqh1NWoU86rwnFdARQTtPVkrczI72eeiMNRVTAF46b+LnGEb1RgZmsUCOYy+akIgm/6BQaHUiZmS5SQXWQktjvo8EOwmuxtGMmpDocrZzOVUA+/bxmeiTTIjUlRUN4BLCbifHPXngBZQbQmFBDS6Y6xxw X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB1054; 20:G4RIS40OZ54luClTvxUjZQ3G3uRpt2gN/5JJBR7sYI7J+JWSWi0R7xn2dA+vyYivVmeQNfQxA5slm6wpfY+nKUpqgjcyCfGGSbGaRCjPgzqpvZvtayo655uRHA8rx3sHS95BdRJdWnBYELg9/2iqnn0FKZNgA73SNpTguHTY+hKJ++7A1Xv77aSIuwzHYlVsiMCk/e+gXVCLbRGd+mo2EQci69TjD9heU48W8v9PIxlVTb9PRsXahdm31mrzMEEQr9a3XOvRVTlczNDkDQLfSF9fsQW1l6DXSG2/kfy5SWvs9KPz6+xTZLAjDFcAvViovuGxJKuJB4gQ35EAmBJ+KSgEYFtkzdEHFhopVdx8I3Ak2ZjW0RP2JYC19WAwKeXbnk9M9S7rvEbIvcZXn9/aJ+hb1mwEt3bbGlwMcK5iUuiAffsYPWnuEl+iIyhNdEgQW0AYsQ4/iXAPvUrzjntqv5UcF5PyJkeot2EyOHvPUBBHtgjzpBG6HY69Q1KpT88VpkIzsMVRoH6xsYWHkTskSCB9afw6YzbvmyplYHiEK3yewB9jrZybE/h0u0LbILhOuLBXeb+oeb/q3hgxwLM43i3W++fHw9Vo3ZDBtNiL1Ok= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(13021025)(5005006)(13013025)(93006095)(93003095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123564025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR07MB1054; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR07MB1054; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR07MB1054; 4:zasSi3Ja8R9q2owvgSCl7gfrstyULeu5FgrMURrQc3?= r2aol/q+gksE/TPihjtbRVRxc+8qRjdfUC43U+p9GTR5Xl1x7J23Lw5h7plLHnpgG9EWYQcCN5BXoNWO+ryXq4mtSkWk8G9fAGygOKas2R1c8kJ4aSe00lZk3ErG2f0427pSeTgv02jRr9yUHwgUJRRfPbk6a0Ejxi+EHxy9JOM2PcGXCBrNWjLVXQ8BDHufMDweSo6Jmu2Uw4QJFwapPffis1xfWd9ZmQQEoSk8qE3wzFBQcmXvo3RIfiTQsUe7u/vwy8gTIZvuKwYwYUKlXgUTE74KxrSdxWt3yzbtGqeo1NE1w1ZD5UUx8E2d8epAlAKA1nAeDRAf41B3pbZ3cqOunZM2cYrMpykG65tm3CTK/ClRlvTqUWRKhoFGDisRPSyRM38N11z7KNISYiEZ5WBelTwIuwtha6qzXVAwu6IuHOL3WfTgoOT8XaHf6OXhJEI6q2Cdngu9isMaKQbSQJYh/1PAI3vkrwKaXMrAGkEOi7PacAdo/XnPlW1/VdVkLBP1Zd4Ie/scmlOncQTNpWvQrlUa6ZOeI0VTvYiKhe8vbOrm+bsuE+JlQNu/y3ZES5unOoUNZOYwWXl41/zjdGtzjlMr9oBTVy5lQQ4LscQGuzS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f9o= X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 13:23:06.2827 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.240]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB1054 Subject: [lng-odp] [API-NEXT PATCH 2/5] linux-gen: pktio: clean up and avoid conversion X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Remove references to qentry as it's not visible in this file anymore. Avoid API handle to internal queue conversion on fast path (sched_cb_pktin_poll()). Signed-off-by: Petri Savolainen --- .../linux-generic/include/odp_packet_io_internal.h | 3 + platform/linux-generic/odp_packet_io.c | 81 ++++++++++++---------- 2 files changed, 46 insertions(+), 38 deletions(-) -- 2.13.0 diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h index 89bb6f3a..17239444 100644 --- a/platform/linux-generic/include/odp_packet_io_internal.h +++ b/platform/linux-generic/include/odp_packet_io_internal.h @@ -24,6 +24,7 @@ extern "C" { #include #include #include +#include #include #include @@ -165,11 +166,13 @@ struct pktio_entry { struct { odp_queue_t queue; + queue_t queue_int; odp_pktin_queue_t pktin; } in_queue[PKTIO_MAX_QUEUES]; struct { odp_queue_t queue; + queue_t queue_int; odp_pktout_queue_t pktout; } out_queue[PKTIO_MAX_QUEUES]; }; diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 6ff35046..aa03495f 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -128,6 +128,7 @@ static void init_in_queues(pktio_entry_t *entry) for (i = 0; i < PKTIO_MAX_QUEUES; i++) { entry->s.in_queue[i].queue = ODP_QUEUE_INVALID; + entry->s.in_queue[i].queue_int = QUEUE_NULL; entry->s.in_queue[i].pktin = PKTIN_INVALID; } } @@ -138,6 +139,7 @@ static void init_out_queues(pktio_entry_t *entry) for (i = 0; i < PKTIO_MAX_QUEUES; i++) { entry->s.out_queue[i].queue = ODP_QUEUE_INVALID; + entry->s.out_queue[i].queue_int = QUEUE_NULL; entry->s.out_queue[i].pktout = PKTOUT_INVALID; } } @@ -305,6 +307,7 @@ static void destroy_in_queues(pktio_entry_t *entry, int num) if (entry->s.in_queue[i].queue != ODP_QUEUE_INVALID) { odp_queue_destroy(entry->s.in_queue[i].queue); entry->s.in_queue[i].queue = ODP_QUEUE_INVALID; + entry->s.in_queue[i].queue_int = QUEUE_NULL; } } } @@ -318,6 +321,7 @@ static void destroy_out_queues(pktio_entry_t *entry, int num) rc = odp_queue_destroy(entry->s.out_queue[i].queue); ODP_ASSERT(rc == 0); entry->s.out_queue[i].queue = ODP_QUEUE_INVALID; + entry->s.out_queue[i].queue_int = QUEUE_NULL; } } } @@ -578,42 +582,42 @@ static inline int pktin_recv_buf(odp_pktin_queue_t queue, return num_rx; } -int pktout_enqueue(queue_t qentry, odp_buffer_hdr_t *buf_hdr) +int pktout_enqueue(queue_t q_int, odp_buffer_hdr_t *buf_hdr) { odp_packet_t pkt = packet_from_buf_hdr(buf_hdr); int len = 1; int nbr; - if (sched_fn->ord_enq_multi(qentry, (void **)buf_hdr, len, &nbr)) + if (sched_fn->ord_enq_multi(q_int, (void **)buf_hdr, len, &nbr)) return (nbr == len ? 0 : -1); - nbr = odp_pktout_send(queue_fn->get_pktout(qentry), &pkt, len); + nbr = odp_pktout_send(queue_fn->get_pktout(q_int), &pkt, len); return (nbr == len ? 0 : -1); } -odp_buffer_hdr_t *pktout_dequeue(queue_t qentry ODP_UNUSED) +odp_buffer_hdr_t *pktout_dequeue(queue_t q_int ODP_UNUSED) { ODP_ABORT("attempted dequeue from a pktout queue"); return NULL; } -int pktout_enq_multi(queue_t qentry, odp_buffer_hdr_t *buf_hdr[], int num) +int pktout_enq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) { odp_packet_t pkt_tbl[QUEUE_MULTI_MAX]; int nbr; int i; - if (sched_fn->ord_enq_multi(qentry, (void **)buf_hdr, num, &nbr)) + if (sched_fn->ord_enq_multi(q_int, (void **)buf_hdr, num, &nbr)) return nbr; for (i = 0; i < num; ++i) pkt_tbl[i] = packet_from_buf_hdr(buf_hdr[i]); - nbr = odp_pktout_send(queue_fn->get_pktout(qentry), pkt_tbl, num); + nbr = odp_pktout_send(queue_fn->get_pktout(q_int), pkt_tbl, num); return nbr; } -int pktout_deq_multi(queue_t qentry ODP_UNUSED, +int pktout_deq_multi(queue_t q_int ODP_UNUSED, odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, int num ODP_UNUSED) { @@ -621,49 +625,49 @@ int pktout_deq_multi(queue_t qentry ODP_UNUSED, return 0; } -int pktin_enqueue(queue_t qentry ODP_UNUSED, +int pktin_enqueue(queue_t q_int ODP_UNUSED, odp_buffer_hdr_t *buf_hdr ODP_UNUSED) { ODP_ABORT("attempted enqueue to a pktin queue"); return -1; } -odp_buffer_hdr_t *pktin_dequeue(queue_t qentry) +odp_buffer_hdr_t *pktin_dequeue(queue_t q_int) { odp_buffer_hdr_t *buf_hdr; odp_buffer_hdr_t *hdr_tbl[QUEUE_MULTI_MAX]; int pkts; - buf_hdr = queue_fn->deq(qentry); + buf_hdr = queue_fn->deq(q_int); if (buf_hdr != NULL) return buf_hdr; - pkts = pktin_recv_buf(queue_fn->get_pktin(qentry), + pkts = pktin_recv_buf(queue_fn->get_pktin(q_int), hdr_tbl, QUEUE_MULTI_MAX); if (pkts <= 0) return NULL; if (pkts > 1) - queue_fn->enq_multi(qentry, &hdr_tbl[1], pkts - 1); + queue_fn->enq_multi(q_int, &hdr_tbl[1], pkts - 1); buf_hdr = hdr_tbl[0]; return buf_hdr; } -int pktin_enq_multi(queue_t qentry ODP_UNUSED, +int pktin_enq_multi(queue_t q_int ODP_UNUSED, odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, int num ODP_UNUSED) { ODP_ABORT("attempted enqueue to a pktin queue"); return 0; } -int pktin_deq_multi(queue_t qentry, odp_buffer_hdr_t *buf_hdr[], int num) +int pktin_deq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) { int nbr; odp_buffer_hdr_t *hdr_tbl[QUEUE_MULTI_MAX]; int pkts, i, j; - nbr = queue_fn->deq_multi(qentry, buf_hdr, num); + nbr = queue_fn->deq_multi(q_int, buf_hdr, num); if (odp_unlikely(nbr > num)) ODP_ABORT("queue_deq_multi req: %d, returned %d\n", num, nbr); @@ -673,7 +677,7 @@ int pktin_deq_multi(queue_t qentry, odp_buffer_hdr_t *buf_hdr[], int num) if (nbr == num) return nbr; - pkts = pktin_recv_buf(queue_fn->get_pktin(qentry), + pkts = pktin_recv_buf(queue_fn->get_pktin(q_int), hdr_tbl, QUEUE_MULTI_MAX); if (pkts <= 0) return nbr; @@ -686,7 +690,7 @@ int pktin_deq_multi(queue_t qentry, odp_buffer_hdr_t *buf_hdr[], int num) hdr_tbl[j] = hdr_tbl[i]; if (j) - queue_fn->enq_multi(qentry, hdr_tbl, j); + queue_fn->enq_multi(q_int, hdr_tbl, j); return nbr; } @@ -708,8 +712,7 @@ int sched_cb_pktin_poll(int pktio_index, int num_queue, int index[]) } for (idx = 0; idx < num_queue; idx++) { - queue_t qentry; - odp_queue_t queue; + queue_t q_int; odp_pktin_queue_t pktin = entry->s.in_queue[index[idx]].pktin; num = pktin_recv_buf(pktin, hdr_tbl, QUEUE_MULTI_MAX); @@ -722,9 +725,8 @@ int sched_cb_pktin_poll(int pktio_index, int num_queue, int index[]) return -1; } - queue = entry->s.in_queue[index[idx]].queue; - qentry = queue_fn->from_ext(queue); - queue_fn->enq_multi(qentry, hdr_tbl, num); + q_int = entry->s.in_queue[index[idx]].queue_int; + queue_fn->enq_multi(q_int, hdr_tbl, num); } return 0; @@ -1193,6 +1195,7 @@ int odp_pktin_queue_config(odp_pktio_t pktio, unsigned i; int rc; odp_queue_t queue; + queue_t q_int; odp_pktin_queue_param_t default_param; if (param == NULL) { @@ -1267,22 +1270,24 @@ int odp_pktin_queue_config(odp_pktio_t pktio, return -1; } - if (mode == ODP_PKTIN_MODE_QUEUE) { - queue_t qentry; + q_int = queue_fn->from_ext(queue); - qentry = queue_fn->from_ext(queue); - queue_fn->set_pktin(qentry, pktio, i); - queue_fn->set_enq_fn(qentry, pktin_enqueue); - queue_fn->set_deq_fn(qentry, pktin_dequeue); - queue_fn->set_enq_multi_fn(qentry, + if (mode == ODP_PKTIN_MODE_QUEUE) { + queue_fn->set_pktin(q_int, pktio, i); + queue_fn->set_enq_fn(q_int, pktin_enqueue); + queue_fn->set_deq_fn(q_int, pktin_dequeue); + queue_fn->set_enq_multi_fn(q_int, pktin_enq_multi); - queue_fn->set_deq_multi_fn(qentry, + queue_fn->set_deq_multi_fn(q_int, pktin_deq_multi); } entry->s.in_queue[i].queue = queue; + entry->s.in_queue[i].queue_int = q_int; + } else { entry->s.in_queue[i].queue = ODP_QUEUE_INVALID; + entry->s.in_queue[i].queue_int = QUEUE_NULL; } entry->s.in_queue[i].pktin.index = i; @@ -1374,7 +1379,7 @@ int odp_pktout_queue_config(odp_pktio_t pktio, for (i = 0; i < num_queues; i++) { odp_queue_t queue; odp_queue_param_t queue_param; - queue_t qentry; + queue_t q_int; char name[ODP_QUEUE_NAME_LEN]; int pktio_id = pktio_to_id(pktio); @@ -1394,14 +1399,14 @@ int odp_pktout_queue_config(odp_pktio_t pktio, return -1; } - qentry = queue_fn->from_ext(queue); - queue_fn->set_pktout(qentry, pktio, i); + q_int = queue_fn->from_ext(queue); + queue_fn->set_pktout(q_int, pktio, i); /* Override default enqueue / dequeue functions */ - queue_fn->set_enq_fn(qentry, pktout_enqueue); - queue_fn->set_deq_fn(qentry, pktout_dequeue); - queue_fn->set_enq_multi_fn(qentry, pktout_enq_multi); - queue_fn->set_deq_multi_fn(qentry, pktout_deq_multi); + queue_fn->set_enq_fn(q_int, pktout_enqueue); + queue_fn->set_deq_fn(q_int, pktout_dequeue); + queue_fn->set_enq_multi_fn(q_int, pktout_enq_multi); + queue_fn->set_deq_multi_fn(q_int, pktout_deq_multi); entry->s.out_queue[i].queue = queue; } From patchwork Tue Jun 27 13:22:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 106434 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1210052qge; Tue, 27 Jun 2017 06:34:11 -0700 (PDT) X-Received: by 10.233.222.69 with SMTP id s66mr6239439qkf.30.1498570451427; Tue, 27 Jun 2017 06:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498570451; cv=none; d=google.com; s=arc-20160816; b=GwyVMvw25MPgfC1xpdPUHggU1DsHxSfvDiJrL+WbH15NBuaaAoP5+5ZPWKuTAt5PwF lxUUh4rPgzsztlie4fXDcM4KmCTevV1PwwgNEcJ5E4JVe7vsy8qkrGXMXmVgHr02phYY B8lZ01jGdsS7GPOTyIcYCwehzoUWO3Y+goTv0ttJl8TyoXSnigwZruwafT3VdUwiYee8 d2tpYZEWhmtnr9YNAMVr8sxIkFqU8cZ1K2rfttx23nsgCGgIqg/2n/sKZOWUGZrkR13L THyMOh2LjTdxfekrq6rikgDiEBCuo/zaANDqB4PS6tHnW86Q1yOMhk5L1EzqHN+I7iNP 6oRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=WjWNPGHGzjbxgloJbAyPKoygYVt2dhwMHETFcM/g9y0=; b=T3GYw4mBrt3d6OIb6uTc8MOrRATH7VL+Kz6qy/mLvsu/uPs+w3Aat/5unKmHA/cVa4 cvZc/9p6nNSqEEHg6guxUny6HTh+CxYLM2Qpwf3ER8TcZIjQ8j7+F3cLZL28NZMSiwnm r0O4TBhgBtho3QpYUmoSxc1PuRUMWvWechaBr1zVkDugL96m9919gwYWDj2ORM7BnDnT p4Mgg1a0s+bmtVKXSSS3PRBUfWlU8vc9483iB9eXRKB7HdPL9OZpik1IzU0/+m5gktO3 AmP8VNAbJtGRwxDngvPm7PcpUr7D2fszPt3h9BIWqiaIPulHa8SvfrVF2QqKOKKmfQIS mnYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k16si2735004qtc.263.2017.06.27.06.34.11; Tue, 27 Jun 2017 06:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1E3B460CBA; Tue, 27 Jun 2017 13:34:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, URIBL_SBL,URIBL_SBL_A autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1AB6460D6A; Tue, 27 Jun 2017 13:24:45 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 78B7560C1A; Tue, 27 Jun 2017 13:24:36 +0000 (UTC) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10106.outbound.protection.outlook.com [40.107.1.106]) by lists.linaro.org (Postfix) with ESMTPS id 553CA60D6C for ; Tue, 27 Jun 2017 13:23:07 +0000 (UTC) Received: from HE1PR0701CA0041.eurprd07.prod.outlook.com (2603:10a6:3:5::51) by HE1PR0701MB2204.eurprd07.prod.outlook.com (2603:10a6:3:2c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5; Tue, 27 Jun 2017 13:23:05 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::205) by HE1PR0701CA0041.outlook.office365.com (2603:10a6:3:5::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5 via Frontend Transport; Tue, 27 Jun 2017 13:23:05 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.240 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.240) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 13:23:05 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMiGw014770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2017 16:22:44 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMhes014758 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Tue, 27 Jun 2017 16:22:43 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Tue, 27 Jun 2017 16:22:41 +0300 Message-ID: <20170627132243.17298-4-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170627132243.17298-1-petri.savolainen@linaro.org> References: <20170627132243.17298-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:CAL; SCL:-1; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39850400002)(39860400002)(39400400002)(39840400002)(39410400002)(2980300002)(189002)(199003)(9170700003)(8936002)(305945005)(50226002)(47776003)(106466001)(105596002)(81166006)(1076002)(356003)(2351001)(189998001)(22756006)(76176999)(5660300001)(498600001)(50986999)(8676002)(77096006)(38730400002)(86362001)(110136004)(5003940100001)(2950100002)(6916009)(53936002)(2906002)(50466002)(33646002)(36756003)(48376002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2204; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT021; 1:mtwzHZkd0umkxex6mAyYqkT1m2n5VRj/XA1CztJDLDUJVWlQv21sODwF1RQ0JORA4F/NvrbGh9BjbV0+ubL0yPeF6zm76oD0Ut1YkyuzpAwupoP4RXvenLsgMy/acoH9dx3C+0hGVyHMEg27+n+V8nUGtMFwgTa4opk1dcxAv/UwB0VMCW/cR7eon74Q/es/6wNqQuLauKLfBFDWOfNd0+VuFRROgzS9aqSYURTf3bq2tyd24HVqG8ScHA+3dWcrvhS9IOIjO0yGMExRF5OEX7qQCrDXhvZjU2rWV9sZXvggzjZQgiRDGNnAfooHxGI4akNTFdAOmyj9ZSRmhbOikgX0ZF1+4/P1NvdtRA8YNw4Yq4cnby+6b+8A6iuzyrC1PLgISUN7pquUgYMPv7q5Z5is11nYHjCwj8Uq8Xnsd9I+G1v8Wm686nmhzuPcrrHefW96+XaQ0xeoNS8vlYsjNdJ9DX9bgcB+R9SVm/3Ao5mBiAMY5VxNGy6lWQ8isNWdog8jtR2lW2asqWgmY82dkgBndbkvEJHFGqj+zciUvf/BEjKSzg7CrlHbPp9j4uYdXTgGo50wjQcikhw9nkwXpXab8LWlahAqmDCVyVyiJIflxTqFI3gmFGthURcUjIUWtu1VffeSrU/+4OkAnuMmlmj1E6Zhf691Mn5XpOlLwkKRiGZsyN4tvJd4hF0uNKkvY0fiRdK/Xh40rsOr14+nIMpt3jFj/f4kkHLT7qm8OQkQ1AGK7amctIHU/wjmE29X0jIBvO0Lj50N97UymjqzL+PAIiFQLJOBe/cbGJye23/o/dC96i0eg/rj0dlEpwjExb1cjN/zmIbhhXTELCV1FW9i+eMi5STxL3ckU6eYnGrq5XWlxH6x5YsRet8xwP3y MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75015562-81cb-430e-26b7-08d4bd5fa4f0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:HE1PR0701MB2204; X-Microsoft-Exchange-Di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nekhLU758DyPm0G+a0QEvbOPT6avHSMtFICYwjXdrEY5Jm9QcBMg8YF9g7Qzk7LgNhKIVPpxkJOlJZieX26h/DShYzn/+j5qnTH+ECsQZZse3DCE/uLld8bjgYFi2WQ= 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)(5005006)(8121501046)(13021025)(13013025)(3002001)(93006095)(93003095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0701MB2204; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0701MB2204; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0701MB2204; 4:07wgW3hPoCNw6sD5m7TqLJ2lpllA/+blOIf2cBJu?= iwuMWsLGL4DxnZSTm4PBBUcZuVd1Q6hJOTMljfa0bnaiYn++v8yg1Wew6JhICdDhdyojgRh+vLcXVrfZ1N0Od2AkRrj3YfcbdcdH624iRtT4cPIFqoxVOxGof83zaYM83JAZSwo4QnuWUT0Y0NoT2U/mz80nL04WIvH46ph/LHx6gmhuW9eq0TWAv5sUGV13NWEJYgisYb3WTmDDGgl3XtuhgUZHl61S95CEfLB2LyKClQsoz95WTS4FEGR8iRsu7ZDrGUHN/2NXjtcOaS9CA14F8C/IDUX70ZZ70OS2jS6OIEu0LN4yPq1KOcw+dgGWBu8aC410CWOFOCj7KX/lvRj3QsBAub/Q5A65Qw1W9ZmD5QPgbzn5OzBxBYrwFCw24WeO8GGL+PieAeWGjncfAT5JPMc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nwhHWhIBXcKE5XH6A5FNpi05Yvlhea+AqG04CeVcqboZP8tTjRFOpj3/6EbygeMwksSS07IsFCUre+gcPb6LVf1mtR0M3b6yThBs2gZAQQk9PaQe565Y4u9+0v8YIyxEQr7THxFSkPq/c7kV9sep+8/emTD49hBxwv3j4Vr7KsQ6X1vUpGywuLU3WFxDf4lH3wlXSDQRUG6E25yO09fhRi0Oqc0fx6p3moaChVfC7K0HAk2GZ1A4dPS0JDdAO511Rmh9JzKZXM7ombxoI7vEa44sFPq5eHNPF2SCDGHjlXAxMa60+vSOF0apCv6r3Xdfsd0Cg4xrp4sQUNc= X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 13:23:05.1108 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.240]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2204 Subject: [lng-odp] [API-NEXT PATCH 3/5] linux-gen: pktio: remove unused header file X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" odp_packet_io_queue.h is not needed anymore as the queue interface has replaced it. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 1 - .../linux-generic/include/odp_packet_io_queue.h | 48 ---------------- platform/linux-generic/odp_packet_io.c | 66 +++++++++++----------- platform/linux-generic/odp_queue.c | 1 - 4 files changed, 33 insertions(+), 83 deletions(-) delete mode 100644 platform/linux-generic/include/odp_packet_io_queue.h -- 2.13.0 diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 2293f7f0..2dda785f 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -172,7 +172,6 @@ noinst_HEADERS = \ ${srcdir}/include/odp_packet_internal.h \ ${srcdir}/include/odp_packet_io_internal.h \ ${srcdir}/include/odp_packet_io_ipc_internal.h \ - ${srcdir}/include/odp_packet_io_queue.h \ ${srcdir}/include/odp_packet_io_ring_internal.h \ ${srcdir}/include/odp_packet_netmap.h \ ${srcdir}/include/odp_packet_dpdk.h \ diff --git a/platform/linux-generic/include/odp_packet_io_queue.h b/platform/linux-generic/include/odp_packet_io_queue.h deleted file mode 100644 index 71333ddc..00000000 --- a/platform/linux-generic/include/odp_packet_io_queue.h +++ /dev/null @@ -1,48 +0,0 @@ -/* Copyright (c) 2013, Linaro Limited - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - - -/** - * @file - * - * ODP packet IO - implementation internal - */ - -#ifndef ODP_PACKET_IO_QUEUE_H_ -#define ODP_PACKET_IO_QUEUE_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include - -/** Max nbr of pkts to receive in one burst (keep same as QUEUE_MULTI_MAX) */ -#define ODP_PKTIN_QUEUE_MAX_BURST CONFIG_BURST_SIZE -/* pktin_deq_multi() depends on the condition: */ -ODP_STATIC_ASSERT(ODP_PKTIN_QUEUE_MAX_BURST >= QUEUE_MULTI_MAX, - "ODP_PKTIN_DEQ_MULTI_MAX_ERROR"); - -int pktin_enqueue(queue_t queue, odp_buffer_hdr_t *buf_hdr); -odp_buffer_hdr_t *pktin_dequeue(queue_t queue); - -int pktin_enq_multi(queue_t queue, odp_buffer_hdr_t *buf_hdr[], int num); -int pktin_deq_multi(queue_t queue, odp_buffer_hdr_t *buf_hdr[], int num); - - -int pktout_enqueue(queue_t queue, odp_buffer_hdr_t *buf_hdr); -odp_buffer_hdr_t *pktout_dequeue(queue_t queue); - -int pktout_enq_multi(queue_t queue, odp_buffer_hdr_t *buf_hdr[], int num); -int pktout_deq_multi(queue_t queue, odp_buffer_hdr_t *buf_hdr[], int num); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index aa03495f..f230db01 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -7,7 +7,6 @@ #include #include -#include #include #include #include @@ -582,7 +581,7 @@ static inline int pktin_recv_buf(odp_pktin_queue_t queue, return num_rx; } -int pktout_enqueue(queue_t q_int, odp_buffer_hdr_t *buf_hdr) +static int pktout_enqueue(queue_t q_int, odp_buffer_hdr_t *buf_hdr) { odp_packet_t pkt = packet_from_buf_hdr(buf_hdr); int len = 1; @@ -595,13 +594,7 @@ int pktout_enqueue(queue_t q_int, odp_buffer_hdr_t *buf_hdr) return (nbr == len ? 0 : -1); } -odp_buffer_hdr_t *pktout_dequeue(queue_t q_int ODP_UNUSED) -{ - ODP_ABORT("attempted dequeue from a pktout queue"); - return NULL; -} - -int pktout_enq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) +static int pktout_enq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) { odp_packet_t pkt_tbl[QUEUE_MULTI_MAX]; int nbr; @@ -617,22 +610,7 @@ int pktout_enq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) return nbr; } -int pktout_deq_multi(queue_t q_int ODP_UNUSED, - odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, - int num ODP_UNUSED) -{ - ODP_ABORT("attempted dequeue from a pktout queue"); - return 0; -} - -int pktin_enqueue(queue_t q_int ODP_UNUSED, - odp_buffer_hdr_t *buf_hdr ODP_UNUSED) -{ - ODP_ABORT("attempted enqueue to a pktin queue"); - return -1; -} - -odp_buffer_hdr_t *pktin_dequeue(queue_t q_int) +static odp_buffer_hdr_t *pktin_dequeue(queue_t q_int) { odp_buffer_hdr_t *buf_hdr; odp_buffer_hdr_t *hdr_tbl[QUEUE_MULTI_MAX]; @@ -654,14 +632,7 @@ odp_buffer_hdr_t *pktin_dequeue(queue_t q_int) return buf_hdr; } -int pktin_enq_multi(queue_t q_int ODP_UNUSED, - odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, int num ODP_UNUSED) -{ - ODP_ABORT("attempted enqueue to a pktin queue"); - return 0; -} - -int pktin_deq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) +static int pktin_deq_multi(queue_t q_int, odp_buffer_hdr_t *buf_hdr[], int num) { int nbr; odp_buffer_hdr_t *hdr_tbl[QUEUE_MULTI_MAX]; @@ -1185,6 +1156,35 @@ int odp_pktio_stats_reset(odp_pktio_t pktio) return ret; } +static int pktin_enqueue(queue_t q_int ODP_UNUSED, + odp_buffer_hdr_t *buf_hdr ODP_UNUSED) +{ + ODP_ABORT("attempted enqueue to a pktin queue"); + return -1; +} + +static int pktin_enq_multi(queue_t q_int ODP_UNUSED, + odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, + int num ODP_UNUSED) +{ + ODP_ABORT("attempted enqueue to a pktin queue"); + return 0; +} + +static odp_buffer_hdr_t *pktout_dequeue(queue_t q_int ODP_UNUSED) +{ + ODP_ABORT("attempted dequeue from a pktout queue"); + return NULL; +} + +static int pktout_deq_multi(queue_t q_int ODP_UNUSED, + odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, + int num ODP_UNUSED) +{ + ODP_ABORT("attempted dequeue from a pktout queue"); + return 0; +} + int odp_pktin_queue_config(odp_pktio_t pktio, const odp_pktin_queue_param_t *param) { diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 19945584..9d74f092 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include From patchwork Tue Jun 27 13:22:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 106436 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1212872qge; Tue, 27 Jun 2017 06:36:59 -0700 (PDT) X-Received: by 10.200.38.70 with SMTP id v6mr6641750qtv.157.1498570619159; Tue, 27 Jun 2017 06:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498570619; cv=none; d=google.com; s=arc-20160816; b=e1t3dMy3MYGUdTl3oEdFBaBSNvbUP0Ui5PsA/PcZxxHRNcge/mw5wvcg5Bu0pRLPWC go6CeqIb8UgX5AHYlBW0XF19fluF7ujzOSM6v/jZKyb3OinlVop5LkvffOJWpBa2yCYY 04ECrwrQSaPzNn2qAsGb7rVnMt9SUMETs6G5TkTfijTtzOE6MIVRVVsuKYzAYmMDN/Rb cYk/FkS8SLutxH+jVZtCnDHqL8TVKQ23oz7I+YDa8CLVDcChD9wTo3ucZ4ixjQq4sb5P 8xCYyl6Lrlm9Qa0moApCPrvEpApiYw4JU7pTV/5W3m1zq+gRXTo155K2aBQ/P0WSF5Bp navw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=j8eChC6ALovJtc9q7Y1GmSRhrJgBT0TGoNJvpk0NCs8=; b=AYMJY4Cn+z4lYVa97Ir5dhoNo19fcGqA45iEwiPYFuoIQi4HchkfNJDYiSkpb3k0b0 cCXnuzdH20i+lX2trXxKEYOUNhcPemKrCQhPilrK5hFmqtoiyIBx8WMLVxOdoJMIJUkd pizdQlpasn90JtCVrq3CBBcfYuwDBFKHXOe+TtSXX0uIAFqCmFvfdMQuEAm7w68hSVTd h2DX3A3iuVvfZPXp95iGAkZwbVaU/ESgLkYOZn/vKrzRO0lWkTkB9r8UhqtZKnzJKTgO bT6pQqF5fSLxRwgft81RSPUaI4yAHRiBum2PtaScfwn9OX+9rlvoCuU6ISXJVp0rMzMb GOcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c77si2615597qkb.328.2017.06.27.06.36.58; Tue, 27 Jun 2017 06:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D5AE46071C; Tue, 27 Jun 2017 13:36:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4A2526092B; Tue, 27 Jun 2017 13:25:21 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 52C7960725; Tue, 27 Jun 2017 13:25:09 +0000 (UTC) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10102.outbound.protection.outlook.com [40.107.1.102]) by lists.linaro.org (Postfix) with ESMTPS id 2BCB760D75 for ; Tue, 27 Jun 2017 13:23:10 +0000 (UTC) Received: from HE1PR0701CA0027.eurprd07.prod.outlook.com (2603:10a6:3:5::37) by HE1PR0701MB2201.eurprd07.prod.outlook.com (2603:10a6:3:2b::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5; Tue, 27 Jun 2017 13:23:08 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::205) by HE1PR0701CA0027.outlook.office365.com (2603:10a6:3:5::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5 via Frontend Transport; Tue, 27 Jun 2017 13:23:08 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.240 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.240) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 13:23:07 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMi6W014773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2017 16:22:44 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMhet014758 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Tue, 27 Jun 2017 16:22:44 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Tue, 27 Jun 2017 16:22:42 +0300 Message-ID: <20170627132243.17298-5-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170627132243.17298-1-petri.savolainen@linaro.org> References: <20170627132243.17298-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:CAL; SCL:-1; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39400400002)(39850400002)(39840400002)(39450400003)(39860400002)(2980300002)(189002)(199003)(9170700003)(110136004)(6916009)(53936002)(38730400002)(189998001)(356003)(8676002)(50226002)(47776003)(77096006)(8936002)(50466002)(48376002)(305945005)(5660300001)(2950100002)(81166006)(2351001)(86362001)(105596002)(33646002)(1076002)(36756003)(22756006)(5003940100001)(50986999)(2906002)(498600001)(76176999)(106466001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2201; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT021; 1:BXdlyXwu+l+bCwCvP7loKLWK50cEdHHwzbq8/jJw2xbg55kHP+LRISe65fqdVTS9ZbNFDLfI0Iw75WiHtLZpzfnVSaG4xX4xqgjnaFOrLbmyao6pSnS0CWVyVwQ2e7ldMKXqI/UtiKraIW2al8fIHjYmKKUIsOrOjncqSA9GVIJUuGtuf2rkwKkyrqyWWZ8lu+Cc6iuKfWlvhjzlDkC3bK5ZPR428nOTCZaJNGzpsdUNUf9PrXOfw6szeKBpbgWH06UGc5PPvUUUKJr/F/HxMnwt5ca5xf1El17kIL+S4BlAAk8K89R30H1pnqEwAa6CKQHR33b85DkDH7JJyvf382/Tt6xk0OiuVeaGjBq9gl0v52O3Mqm4F1kYu0fbovpFVhTQTRF5sOxg6Zkuxa/w6oHxAMqExfCia+bGe+f59YQUun0CLc9s0Fl1OaqMmVcxBFhYLXUplvkTNTNwCJXSPEgLiixqAN07HCPCUdZt56v3XI0JhW9qpjALFPsB6Eo2jQh2qZcrbsf/wKSPeYky7AnhAne4Cvg6/Sw35kqlp2R9UpLSrum3+bFlCxn3FV6Cm+dheWtAmvDOrUeeFlWh6jIj0H58Vzt81kB4RgLMtY+XPN+0NpnUhCWvWtsJGGZgmQECiaf8lmJlhcVGL/Bl2CsxY/cUtDr+KUwqoBH63jRDXSo2okbYDRXuHqby0HwBGb+Q6F7WSkXEzimPzeJlWyskTSBl7s8oAqblMmdjxNDksPyaIAJ9AIf8nhzbGJ5fdKzY6rR5/nOylvA/4FgcqPo2haAO5Csv6+NLGI7T8rsKHOtAp3+mYYiLhen0gfb1yft8cN6RRnxo/WjhJhPVZ06r3jiXXcgs6r+HuGmv1H0k94gG1XC/prmHwUuZoqgU MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88876542-0b52-4b0b-c604-08d4bd5fa693 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:HE1PR0701MB2201; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2201; 3:zTl1NGGeUay3IKXNeDiYcRDuGChhvzNIyMGgg1RSEb9CD+2RNBi5Bmk0EXeaDXJIqggU9uxMBOU4KF0BlS33LqJoq5G13zMt1OpWQtj/rI5d1WeTxxpCHHpTj3XB1weGDORVeSM7Qi8mzJ5spLZDX6+QhAivbfEBgIyGcS0LAGcfHIlN9U18IXwQoESJ29VisQYzMjmt0uDgmkcuh9p6J6cDYkYkJRFdc+yVUAov1xFedBkOb38YNfDWmhmqxyctwfVgec1x0zE8etWXNlQKElHCjrYNoPAME2ddlDGyK5he70b2H3muv7hj6mEShNL2rJull580MeveiWgpNPMVx55ql0lAe51n5wZs2m1xpFUX40nNGseOZ35TgxC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iSkNStkhfYCJHSVlPAoTk63sNvYoVSFGsj4LPIiJOD2knWxlVj0IGqqahRC4jF4H68O/RxKLeYEgoeU+iwrs0WnxQoh2Wy4Kr9IGwkcWiwRktn6DIhcamSTB/zMwZ2YxpXkTDOiLPgpKL+MSg== X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2201; 20:QVvugU6ZO7OzT0+hPY31pr7dOJ75bcPGiXElVkDarg8QGG2IKhEuqkH+1rsOcij4mIZ0bt6BXK5C73eq25dsGZtSTYRDmB6IZV+19CvRCk29FnpgjnHTKu/QwOCI9GtckIw2QAkrJIqHB3AkJ14lgRB+akafRXwmevqumstOJMHVLVfQHBG0Up5bSGrNcXhJjOQqzAX1Pl89IrPO8+8XvBr907Jg1m/oaeTQgzJkyFB8FXjYkRoDW9es9IKBM7wdyq0JOBZpBB0fvf0Pq3koboeU+bB8LkvZE9qc0UNJKObmhipyXUbuIZPY8KvcSsJvmVRpY+BGsgwCw0gu1ls3d105ePAvMyjuZFca9qms1ff46kQ5xwb/iUyoYi1Bbk0axgk80Wsvswoy0EgN8G70eW5gf3kpccRal7dupjoNx6CwumaoskbtSZ50keM1fx69s51RasMxjxGvR7eTdGCpIjBjBMiZJifiam4nMHDQiIgaBXngkYfcMbw7JPlkJFYBFOMXcCbRkxo+V70xIdaSRd9Dggv+2RjZiPHlo/0g8uXIoV2vQs5DowAIkNVeobKLzR07pFeso4OFZo4Y0vVdsn5jvM06b51JxyKgvQTDOGM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(13021025)(5005006)(13013025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93003095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0701MB2201; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0701MB2201; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0701MB2201; 4:QHk47MAiYpPBQfF9QoLqS+/R57fEhv0/CX5b8bZQ?= ZJ+yb4g5Ri8d2s9fiaxt67I1r+Uq1MaaRtQWq9B9tVw3BSwCTQRx4sLKD033EpbE4VwSXRzUn0kZ1d3E6bzLzU//nP2DmBpjdKDFe6WV9Ct8vRPiRnNFif543iaQ/DsCjXeT7ccEzOongRg9ZAgFqE1kF60XC+oWDAJ51yWhq/l53G7RJAcZkaZ0X+TWXCAI01GuNnkqXzVNB4AMiEoD5nDeOA0F2tTL8uVWxKP8tnqZTwLsevRXMO9QSC6h28JAvXmX/5mzyczYtnvSW6Q9+3yzT+VLdTe4O8PnDkygafi4E/tU6BBrTURII9fJVHALPGZ88esPFvhiV/y3+59YhrAKAMLkYvlHJcQFVjL/fhBHLZnYqG3J5OKlVcLhEt4HcmU94hjrVFdPUhe9BPCd80stPh0wBw66xJxuguDKJvEmQgxiTGOPAyC7aBz1XjghbMl54NZd91Oj0Awn8y22zgLktDKhOOx0YB9N0XeBPW2/oTXo6txJjZQjUvsNVVmB36MthCUp5egFu5yojoA1sUGd+EC24hJ87sXFKM5nQ9+KiUgQ+bgfb9I1kxLOlW0UB3gK7Rj6RCrsifujBZvMFKOeAP7OAOgvlJ+5kskXOGowF/7ayrAMYVtTYRN5cgrvIdEe93U8ff4/3/UH+zyaC0QmCa6yL8u1k7zA/gVSj2YJ4Q+hfr/lRLpmywX7y1c7wCwSWX0MGO4J6qbGYT71hxL0uUUbrFYFzvyAbvUnXBRwnwMnlLiv/SBbE5b//2f2eutEU+yiRZqWY8EalL3BjXrm7W68h7lbruAf3xTsNlrNOMcEA3NVgRT9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QEbV51u+X2oV/6uVSoOxBeg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2201; 7:VgtlEssBdyTJaQVdfvfwK6JA03lJ+3g5TT/ILWBgLlDyoxEylrIVjL3HorfBzH7GtQuUkUjyXTwXfCDFgf0vt/fc/eDQ4L45rzYuiBf26BEfS6H3G9C7C7Qsqd1OUm0yqWHDgn7EQL/VM9hQ3G74dgdXRtfnPVC5VbCdlCDvv0SRKrfIwu4S4+FXNnX9Pbm0vLpjPm41Uu/qbt3ALlbL6xu0dRdsthMbMY0SjTCKJW61ni4Yvw9aHSwQaCC32qLM3HhBBFiYfADrVYeYvoyo3mHO/3CADTUjkVCjvi4lvLmcUlXr1bOLuUlqbgvAUbgQVqHEQrNH70X9TiC8A6MPrXamGrkKBKx6WzpF+/I1kYyuA3ry4defFrrHPWotpHEHfCwcPGCd7MnnQwwOiHNQTw+TNbGvE7/up0DBdpQK5a4vumuxdMif6ME8U1kzoK/f7F9ig0nqhZjBI6dX/aURonz4f4qWBB/fgVpLCFyoqJcrrKACPHKgRdYCGooTgOaplxI4ZMbb+JxjY1pfWtE2xURgzlEmNAGIwkrMH/GuNfuMM+QjeaYb0r80eei2gXCcJUqKg0zHOU72RlW5EeYPjTY9rFy+IlU7r6MMSRzIlKwmjAV5He/W7WrgJvOfXglxPDfOU5hwLL0WReRP7lmm1O8qWIOUXmI8wyEDNm9lR3Nk5yeQvKO3pn48QrY+MjuV3mUZ4j/fo5sgwv88al/adkm4tvZSChtiAeVfVwNidwYm6w4v4n3qB/Iw4nEThptaCAYNa4TltH2NkuMCxZ0vVpgaYw1I2zfOLXmYm4eQ1rg= X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 13:23:07.8608 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.240]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2201 Subject: [lng-odp] [API-NEXT PATCH 4/5] linux-gen: queue: combine queue interface functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Combine enqueue and dequeue function pointer set functions into pktin/pktout calls so that queue interface size gets smaller and code more readable. Also provide single call for TM. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_queue_if.h | 30 +++++++++-------- platform/linux-generic/odp_packet_io.c | 44 ++++++++++++------------- platform/linux-generic/odp_queue.c | 46 +++++++++++++-------------- platform/linux-generic/odp_traffic_mngr.c | 6 ++-- 4 files changed, 61 insertions(+), 65 deletions(-) -- 2.13.0 diff --git a/platform/linux-generic/include/odp_queue_if.h b/platform/linux-generic/include/odp_queue_if.h index b5cbd515..ad807d75 100644 --- a/platform/linux-generic/include/odp_queue_if.h +++ b/platform/linux-generic/include/odp_queue_if.h @@ -61,17 +61,22 @@ typedef int (*queue_enq_multi_fn_t)(queue_t q_int, odp_buffer_hdr_t **, int); typedef odp_buffer_hdr_t *(*queue_deq_fn_t)(queue_t q_int); typedef int (*queue_deq_multi_fn_t)(queue_t q_int, odp_buffer_hdr_t **, int); typedef odp_pktout_queue_t (*queue_get_pktout_fn_t)(queue_t q_int); -typedef void (*queue_set_pktout_fn_t)(queue_t q_int, odp_pktio_t pktio, - int index); typedef odp_pktin_queue_t (*queue_get_pktin_fn_t)(queue_t q_int); -typedef void (*queue_set_pktin_fn_t)(queue_t q_int, odp_pktio_t pktio, - int index); -typedef void (*queue_set_enq_fn_t)(queue_t q_int, queue_enq_fn_t func); -typedef void (*queue_set_enq_multi_fn_t)(queue_t q_int, - queue_enq_multi_fn_t func); -typedef void (*queue_set_deq_fn_t)(queue_t q_int, queue_deq_fn_t func); -typedef void (*queue_set_deq_multi_fn_t)(queue_t q_int, - queue_deq_multi_fn_t func); +typedef void (*queue_set_pktin_fn_t)(odp_queue_t handle, odp_pktio_t pktio, + int idx, + queue_enq_fn_t enq, + queue_enq_multi_fn_t enq_multi, + queue_deq_fn_t deq, + queue_deq_multi_fn_t deq_multi); +typedef void (*queue_set_pktout_fn_t)(odp_queue_t handle, odp_pktio_t pktio, + int idx, + queue_enq_fn_t enq, + queue_enq_multi_fn_t enq_multi, + queue_deq_fn_t deq, + queue_deq_multi_fn_t deq_multi); +typedef void (*queue_set_enq_fn_t)(queue_t q_int, + queue_enq_fn_t enq, + queue_enq_multi_fn_t enq_multi); typedef void (*queue_set_type_fn_t)(queue_t q_int, odp_queue_type_t type); /* Queue functions towards other internal components */ @@ -90,10 +95,7 @@ typedef struct { queue_set_pktout_fn_t set_pktout; queue_get_pktin_fn_t get_pktin; queue_set_pktin_fn_t set_pktin; - queue_set_enq_fn_t set_enq_fn; - queue_set_enq_multi_fn_t set_enq_multi_fn; - queue_set_deq_fn_t set_deq_fn; - queue_set_deq_multi_fn_t set_deq_multi_fn; + queue_set_enq_fn_t set_enq; queue_set_type_fn_t set_type; } queue_fn_t; diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index f230db01..a48bbafb 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -1156,30 +1156,30 @@ int odp_pktio_stats_reset(odp_pktio_t pktio) return ret; } -static int pktin_enqueue(queue_t q_int ODP_UNUSED, - odp_buffer_hdr_t *buf_hdr ODP_UNUSED) +static int abort_pktin_enqueue(queue_t q_int ODP_UNUSED, + odp_buffer_hdr_t *buf_hdr ODP_UNUSED) { ODP_ABORT("attempted enqueue to a pktin queue"); return -1; } -static int pktin_enq_multi(queue_t q_int ODP_UNUSED, - odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, - int num ODP_UNUSED) +static int abort_pktin_enq_multi(queue_t q_int ODP_UNUSED, + odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, + int num ODP_UNUSED) { ODP_ABORT("attempted enqueue to a pktin queue"); return 0; } -static odp_buffer_hdr_t *pktout_dequeue(queue_t q_int ODP_UNUSED) +static odp_buffer_hdr_t *abort_pktout_dequeue(queue_t q_int ODP_UNUSED) { ODP_ABORT("attempted dequeue from a pktout queue"); return NULL; } -static int pktout_deq_multi(queue_t q_int ODP_UNUSED, - odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, - int num ODP_UNUSED) +static int abort_pktout_deq_multi(queue_t q_int ODP_UNUSED, + odp_buffer_hdr_t *buf_hdr[] ODP_UNUSED, + int num ODP_UNUSED) { ODP_ABORT("attempted dequeue from a pktout queue"); return 0; @@ -1273,13 +1273,12 @@ int odp_pktin_queue_config(odp_pktio_t pktio, q_int = queue_fn->from_ext(queue); if (mode == ODP_PKTIN_MODE_QUEUE) { - queue_fn->set_pktin(q_int, pktio, i); - queue_fn->set_enq_fn(q_int, pktin_enqueue); - queue_fn->set_deq_fn(q_int, pktin_dequeue); - queue_fn->set_enq_multi_fn(q_int, - pktin_enq_multi); - queue_fn->set_deq_multi_fn(q_int, - pktin_deq_multi); + /* Override default en-/dequeue functions */ + queue_fn->set_pktin(queue, pktio, i, + abort_pktin_enqueue, + abort_pktin_enq_multi, + pktin_dequeue, + pktin_deq_multi); } entry->s.in_queue[i].queue = queue; @@ -1379,7 +1378,6 @@ int odp_pktout_queue_config(odp_pktio_t pktio, for (i = 0; i < num_queues; i++) { odp_queue_t queue; odp_queue_param_t queue_param; - queue_t q_int; char name[ODP_QUEUE_NAME_LEN]; int pktio_id = pktio_to_id(pktio); @@ -1399,14 +1397,12 @@ int odp_pktout_queue_config(odp_pktio_t pktio, return -1; } - q_int = queue_fn->from_ext(queue); - queue_fn->set_pktout(q_int, pktio, i); - /* Override default enqueue / dequeue functions */ - queue_fn->set_enq_fn(q_int, pktout_enqueue); - queue_fn->set_deq_fn(q_int, pktout_dequeue); - queue_fn->set_enq_multi_fn(q_int, pktout_enq_multi); - queue_fn->set_deq_multi_fn(q_int, pktout_deq_multi); + queue_fn->set_pktout(queue, pktio, i, + pktout_enqueue, + pktout_enq_multi, + abort_pktout_dequeue, + abort_pktout_deq_multi); entry->s.out_queue[i].queue = queue; } diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 9d74f092..6cbf1040 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -781,12 +781,18 @@ static odp_pktout_queue_t queue_get_pktout(queue_t q_int) return qentry_from_int(q_int)->s.pktout; } -static void queue_set_pktout(queue_t q_int, odp_pktio_t pktio, int index) +static void queue_set_pktout(odp_queue_t handle, odp_pktio_t pktio, int index, + queue_enq_fn_t enq, queue_enq_multi_fn_t enq_multi, + queue_deq_fn_t deq, queue_deq_multi_fn_t deq_multi) { - queue_entry_t *qentry = qentry_from_int(q_int); + queue_entry_t *qentry = handle_to_qentry(handle); qentry->s.pktout.pktio = pktio; qentry->s.pktout.index = index; + qentry->s.enqueue = enq; + qentry->s.enqueue_multi = enq_multi; + qentry->s.dequeue = deq; + qentry->s.dequeue_multi = deq_multi; } static odp_pktin_queue_t queue_get_pktin(queue_t q_int) @@ -794,32 +800,27 @@ static odp_pktin_queue_t queue_get_pktin(queue_t q_int) return qentry_from_int(q_int)->s.pktin; } -static void queue_set_pktin(queue_t q_int, odp_pktio_t pktio, int index) +static void queue_set_pktin(odp_queue_t handle, odp_pktio_t pktio, int index, + queue_enq_fn_t enq, queue_enq_multi_fn_t enq_multi, + queue_deq_fn_t deq, queue_deq_multi_fn_t deq_multi) { - queue_entry_t *qentry = qentry_from_int(q_int); + queue_entry_t *qentry = handle_to_qentry(handle); qentry->s.pktin.pktio = pktio; qentry->s.pktin.index = index; + qentry->s.enqueue = enq; + qentry->s.enqueue_multi = enq_multi; + qentry->s.dequeue = deq; + qentry->s.dequeue_multi = deq_multi; } -static void queue_set_enq_func(queue_t q_int, queue_enq_fn_t func) -{ - qentry_from_int(q_int)->s.enqueue = func; -} - -static void queue_set_enq_multi_func(queue_t q_int, queue_enq_multi_fn_t func) +static void queue_set_enq(queue_t q_int, + queue_enq_fn_t enq, queue_enq_multi_fn_t enq_multi) { - qentry_from_int(q_int)->s.enqueue_multi = func; -} - -static void queue_set_deq_func(queue_t q_int, queue_deq_fn_t func) -{ - qentry_from_int(q_int)->s.dequeue = func; -} + queue_entry_t *qentry = qentry_from_int(q_int); -static void queue_set_deq_multi_func(queue_t q_int, queue_deq_multi_fn_t func) -{ - qentry_from_int(q_int)->s.dequeue_multi = func; + qentry->s.enqueue = enq; + qentry->s.enqueue_multi = enq_multi; } static void queue_set_type(queue_t q_int, odp_queue_type_t type) @@ -875,9 +876,6 @@ queue_fn_t queue_default_fn = { .set_pktout = queue_set_pktout, .get_pktin = queue_get_pktin, .set_pktin = queue_set_pktin, - .set_enq_fn = queue_set_enq_func, - .set_enq_multi_fn = queue_set_enq_multi_func, - .set_deq_fn = queue_set_deq_func, - .set_deq_multi_fn = queue_set_deq_multi_func, + .set_enq = queue_set_enq, .set_type = queue_set_type }; diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic/odp_traffic_mngr.c index 8b5f3187..04239884 100644 --- a/platform/linux-generic/odp_traffic_mngr.c +++ b/platform/linux-generic/odp_traffic_mngr.c @@ -3927,9 +3927,9 @@ odp_tm_queue_t odp_tm_queue_create(odp_tm_t odp_tm, } tm_queue_obj->tm_qentry = queue_fn->from_ext(queue); queue_fn->set_type(tm_queue_obj->tm_qentry, QUEUE_TYPE_TM); - queue_fn->set_enq_fn(tm_queue_obj->tm_qentry, queue_tm_reenq); - queue_fn->set_enq_multi_fn(tm_queue_obj->tm_qentry, - queue_tm_reenq_multi); + queue_fn->set_enq(tm_queue_obj->tm_qentry, + queue_tm_reenq, + queue_tm_reenq_multi); tm_system->queue_num_tbl[tm_queue_obj->queue_num - 1] = tm_queue_obj; odp_ticketlock_lock(&tm_system->tm_system_lock); From patchwork Tue Jun 27 13:22:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 106431 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1207358qge; Tue, 27 Jun 2017 06:31:34 -0700 (PDT) X-Received: by 10.237.50.4 with SMTP id y4mr6335345qtd.225.1498570293945; Tue, 27 Jun 2017 06:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498570293; cv=none; d=google.com; s=arc-20160816; b=sm00O0PXVSXRJM29w2ML/VCCroZCLskYxvANAgqyjLOE9Dtz4HUNW9itQyxJRaNzXo UsTCsTmooaCqwgHGc701jc0hjDV0srZ/rIlz559JRoknMxyU/BZyIGO28DjY1yrXpSxt DAwVFy9P1wkOmqwiIrHOw27W0TLzmFagc/gToLfxtFComzjSHS1A0szvrZCyLiLIaoEv xY8mcUoQtvwCp5ztecAqEfFdzn7lyrWsMuGCYz+FFVHqjo+dis8DVYPSeA+U2wcvpFhO Hc61mg8jmwGB88ZrhEolrl3EQFQcS3NDG1eS9M3ih/YmvM2xsWmc+Oq5/4vCCYNppuvQ YJWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=iJP+8nEg4+THcu7e1hI74j5CcF6PKQwmVtY4yRsD/0I=; b=hB7J04whUkE2sX+1mD/kb/iYdr5tWGXOVX1vqFlOh19BDeoJGLZI5N5WHykrjXVogm Zq4ZaSkapS2xj95q4ZD4EeFRATyg1MIeqh0apfN9NdHx7CQFrXSa+X14w6RwC4vF6enE vh43f985xCBUaNPJtg9v3JyLO9O3/yC80CmHtSGonpawmjbFE2FD9AU/Fd4y7NUpCwNj 0+93cEff+C3Q4TiMDHEvrbGGv9QMDHLsfiskQdxmHUwMesEVxeE4DdCH7h1hCzLEJI5Z ynOun9P+6jykuqg8YPRmCrPVQAncnbYGeDSw+Mq/ZOJoxqZfp8pOT2a8Q7kUVj9rBUfU JRXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j1si2760997qtc.347.2017.06.27.06.31.33; Tue, 27 Jun 2017 06:31:33 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7FEE660D3A; Tue, 27 Jun 2017 13:31:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 02A2C60C20; Tue, 27 Jun 2017 13:24:25 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 40B3560C19; Tue, 27 Jun 2017 13:24:19 +0000 (UTC) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00090.outbound.protection.outlook.com [40.107.0.90]) by lists.linaro.org (Postfix) with ESMTPS id DD5EC60D60 for ; Tue, 27 Jun 2017 13:23:04 +0000 (UTC) Received: from HE1PR0701CA0001.eurprd07.prod.outlook.com (2603:10a6:3:5::11) by HE1PR0701MB2203.eurprd07.prod.outlook.com (2603:10a6:3:2c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5; Tue, 27 Jun 2017 13:23:03 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::207) by HE1PR0701CA0001.outlook.office365.com (2603:10a6:3:5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.5 via Frontend Transport; Tue, 27 Jun 2017 13:23:03 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.240 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.240) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 13:23:02 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMiHX014776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2017 16:22:44 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v5RDMheu014758 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Tue, 27 Jun 2017 16:22:44 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Tue, 27 Jun 2017 16:22:43 +0300 Message-ID: <20170627132243.17298-6-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170627132243.17298-1-petri.savolainen@linaro.org> References: <20170627132243.17298-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:CAL; SCL:-1; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39860400002)(39450400003)(39410400002)(39400400002)(39850400002)(2980300002)(189002)(199003)(9170700003)(110136004)(575784001)(106466001)(38730400002)(33646002)(36756003)(8936002)(50226002)(189998001)(105596002)(498600001)(50466002)(86362001)(77096006)(5003940100001)(1076002)(2351001)(5660300001)(22756006)(48376002)(305945005)(6916009)(53936002)(2950100002)(2906002)(47776003)(81166006)(8676002)(50986999)(76176999)(356003)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2203; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT021; 1:SZdh5qAX/PN7nEQBtwQed0nuwqo1N0rWLqKi3MoHsLzr1WRuU97jOKN/GWtDlCuljS+9NaobkYYR2E5OjrhwzN4r5QUiUKEvanTjJ7/cY4M4Ijc9ruG6551ZNOA7L8juyGiqnkl9gMQlEPyJGkm8cqnSFSB+Nfc0PtYTEjsWxjKAphkbFpQNig8XZ9/32XBeOPxMoHDCwAW0RR6cdJxYTz0n8Y7EJbx0U0zbhEaS5HrLVbaA2LKI+QWFVJcPiAsKKTEFG2lIH4M/oczmeb9dgOR9ZHHlNQBgV5/pzWE+dH88yRt/lQMh3HUpeKj9JC7va/pMp4fOdtKz6rdsqxkHkAUBF9LkbSqX05SvkYOhuj9I9+VSTYFwbpHaAn4LHBbI2twWY+1nWWgCJ5BYFn2EjwBifOT/I7ASakU43LI9O7G/LItyfL/cv0kHnnxuKCGWrtkbUCDUBm2iHUdjVV2P2dTA/Lbb1FoL3Hn3lNdKP3ZFxazdTSHLVK68AEXPZhKl6W5ln3TMp6FT46dIw/LmkmFAOqOYLGchrMEVkpqDepi1oXMkPzLu9AEs9mO67bg8ynwYvzPA7b4XlDlDfTtN8TILDIDQdK1+M46RY5g2m5OXERvLizkS+RbPl5hObR8zFnbbUt8blyP78xOpRyU6VHmt2YX5HfSFQ0xGb61Pa2gQ/rmwE3/st9xyiHdPHvvdY9PkPrjoPfw4SMC+zj8n50+frtoK/cIY2Kbe+O2lKQJOJFJV7o9+ADSTeJnKLA7DebhqBqLqdKhkOH4tWwbY3GpkMzuaTKdr/hHivZ8SLj6Z25zOTT8hBbRFfcSMNsm3i/g1dmg0boAqLGLb2wtSB3JzmrfEgyL5sEppN1GHkn//VHynxjJN4SUvf1vPaGsJ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a7c96b59-4953-4c5e-71e6-08d4bd5fa377 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:HE1PR0701MB2203; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2203; 3:dhhfa3KC221PzcXQSWa4eRXv+3GcGiuY4mzhJuM4MULQ0Y8qcR9r4dNk4Anex//gKm39maheqlB59a/FJVlDxdS4f8fGdsnrByc3S4O0pfenF6CwkIxbbbsC7JfRpaRq6vvzHHnmD+E7kTRZfC0Dk8DqRhx2nvhD51Z89ZeQNWDE3gCxMN0Wl8W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7iU2izJv7NrodbCtu0ni91O/VRaRFskyZsHrUWlWJTZL4Qu75qaVUf5KDQAJx8GVNolK9cBJzLF4xz+7IunyG8Jdd74dshijqy83LkafmigLDpmx2iiW2OXIkDkY+RH9RW1w3l6ZnbJ23XGTL+FlT75Y9df21sIRfdi+nPP+Vv1udfplfOnZS/rzJvczg3wY4GC76+3s5qxxg/hNLAzDhEN6lameXFMajDkWQ7kGozYCaavV5HgeVaKhvC X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2203; 20:SmPcSMPMpT88KePTgaYLLYddd+udj6mFv3mbfmoI8gSj/HrWySLKYgh8xSg2TftTEa/HQQkuFcvr6PpWSZ9xPiC8K3UNlM0L+M2OaUv640mc/rApsCjmwtYGV0eiuJvGv3TG0JgbFou45j6QvLMULJFBhN4wJ2JLweTfohBcmvwc/KNZn0fK/JJUfeS1MJZVl8hJ/kJJY+h2Na1/pdbIdWW3EJYZrIfElwwYyY77BsjDCsNIaSKJ9/93gZZcPwo7KbrAuNYMKTjly9V11i2dRRo0HauOoGfM3hf/EsrgnB2k6DQJ/O+qFsUhWW2m5RVROrLfKGgMmf32xExnZRwv72hxmQTUYqNmG4UO2+IpvnjvW7iila9DYLKqPJasjm+G1CaXymQlkGjShKNmY8BzsPU0EuGbzcDDmCGmtF+4TA24WJM+M2na4E7tCWbEZLMTW8NKdhLCfjOqykcsOaBuWXkAn/nc81tMi1HvjWi6G+MNggxjptdebpjKk2+U+A0sQDKCS7S68DuTWxEHpO2R8qzLj9O1o8NVQcUY6heW8Zmnde83A5d8iXN2FzLJbhHRdD1SE3bMAbSQuKBk50FMxOtr6mDed3cRVYIq07zJbDA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13013025)(5005006)(13021025)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93003095)(6055026)(6041248)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0701MB2203; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0701MB2203; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0701MB2203; 4:Sb6zq0AHsjpB1lh7T+puXfLQgdPFxr5RLyeLMjlW?= dydynvXeeg7p7YjLfd51jv5J8GjXghPXgNEL9H0H0i7e8fdHty5Ni9gusrU29JUf/ysAnvaVzOvewxTXiMaqfD296GTHEE/Xj6577LrHL/2es9/AARFxajzCYXb6GUlw8P8rM7uqVmJloq1n2X9G7a71/I1TpLAj8U6p+8cg03Q5VnxM1IMIVVhAYmQ4ad4pXghv6zpyNfKWhlkc+Jda8clRQjZY2Z3plJRCFZkG55fdWVKgMyUTtY96tNoGQP4txSaz+i6N1tnCD5SirP4lcWWPmxZLhLq1N4DUM5FuwZMCFnVaomJppb3FpGhCIdC58n+9dTfpngvhtNh1MLFwzwaXSq7vTOp0T/SaFiRd6fXk9YFWDfTl9MOmIPVJqlkN2QlPKPlQzmlk1e/LGXXpxT72d3AqZOf1yxepJy8TlFDNPUkI0bgPr7x4+kt6WQRwl1wzwA/AgP4Px7y8v0pxQUmJN4/fU3U7uFBCeHH4F2601esoWzxFdpn9bzoKNqAaXDKNfyfS5g3VMvQZ9jcMfL07qO3SdkHHIto4mFILwaDm5BkjrEHOZpyz8a05nVblZjk/mp33b/Luxyg5SID8dRIKitfOkgiy7mUtXRKxf13honmWYJyiK6ENN2/HX00x3LU3zY4er6i9+AaRUF8rDtrBo1jGhvUOkk4skBMYWFIZG7duxoQHnKWyBf9F6ePRsHP/DK4JgEwvWEBCui2ZMdmuWMor00L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oft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 13:23:02.6420 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.240]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2203 Subject: [lng-odp] [API-NEXT PATCH 5/5] linux-gen: queue: remove type set from interface X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" TM should not modify queue type, thus the interface function is not needed for that. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_queue_if.h | 2 -- platform/linux-generic/odp_queue.c | 8 +------- platform/linux-generic/odp_traffic_mngr.c | 4 ---- 3 files changed, 1 insertion(+), 13 deletions(-) -- 2.13.0 diff --git a/platform/linux-generic/include/odp_queue_if.h b/platform/linux-generic/include/odp_queue_if.h index ad807d75..604bb25a 100644 --- a/platform/linux-generic/include/odp_queue_if.h +++ b/platform/linux-generic/include/odp_queue_if.h @@ -77,7 +77,6 @@ typedef void (*queue_set_pktout_fn_t)(odp_queue_t handle, odp_pktio_t pktio, typedef void (*queue_set_enq_fn_t)(queue_t q_int, queue_enq_fn_t enq, queue_enq_multi_fn_t enq_multi); -typedef void (*queue_set_type_fn_t)(queue_t q_int, odp_queue_type_t type); /* Queue functions towards other internal components */ typedef struct { @@ -96,7 +95,6 @@ typedef struct { queue_get_pktin_fn_t get_pktin; queue_set_pktin_fn_t set_pktin; queue_set_enq_fn_t set_enq; - queue_set_type_fn_t set_type; } queue_fn_t; extern const queue_fn_t *queue_fn; diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 6cbf1040..81e37822 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -823,11 +823,6 @@ static void queue_set_enq(queue_t q_int, qentry->s.enqueue_multi = enq_multi; } -static void queue_set_type(queue_t q_int, odp_queue_type_t type) -{ - qentry_from_int(q_int)->s.type = type; -} - static queue_t queue_from_ext(odp_queue_t handle) { return qentry_to_int(handle_to_qentry(handle)); @@ -876,6 +871,5 @@ queue_fn_t queue_default_fn = { .set_pktout = queue_set_pktout, .get_pktin = queue_get_pktin, .set_pktin = queue_set_pktin, - .set_enq = queue_set_enq, - .set_type = queue_set_type + .set_enq = queue_set_enq }; diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic/odp_traffic_mngr.c index 04239884..c8ff0d07 100644 --- a/platform/linux-generic/odp_traffic_mngr.c +++ b/platform/linux-generic/odp_traffic_mngr.c @@ -37,9 +37,6 @@ static const pkt_desc_t EMPTY_PKT_DESC = { .word = 0 }; #define MAX_PRIORITIES ODP_TM_MAX_PRIORITIES #define NUM_SHAPER_COLORS ODP_NUM_SHAPER_COLORS -/* Traffic manager queue */ -#define QUEUE_TYPE_TM 4 - static tm_prop_t basic_prop_tbl[MAX_PRIORITIES][NUM_SHAPER_COLORS] = { [0] = { [ODP_TM_SHAPER_GREEN] = { 0, DECR_BOTH }, @@ -3926,7 +3923,6 @@ odp_tm_queue_t odp_tm_queue_create(odp_tm_t odp_tm, return ODP_TM_INVALID; } tm_queue_obj->tm_qentry = queue_fn->from_ext(queue); - queue_fn->set_type(tm_queue_obj->tm_qentry, QUEUE_TYPE_TM); queue_fn->set_enq(tm_queue_obj->tm_qentry, queue_tm_reenq, queue_tm_reenq_multi);