From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0073.outbound.protection.outlook.com [104.47.40.73]) by dpdk.org (Postfix) with ESMTP id 1B1371B29B for ; Wed, 17 Jan 2018 06:24:22 +0100 (CET) Received: from BN6PR03CA0003.namprd03.prod.outlook.com (10.168.230.141) by BN6PR03MB2691.namprd03.prod.outlook.com (10.173.144.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Wed, 17 Jan 2018 05:24:20 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::102) by BN6PR03CA0003.outlook.office365.com (2603:10b6:404:23::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Wed, 17 Jan 2018 05:24:20 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Wed, 17 Jan 2018 05:24:18 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0H5O79p027272; Tue, 16 Jan 2018 22:24:15 -0700 From: Nipun Gupta To: CC: , , Nipun Gupta Date: Wed, 17 Jan 2018 17:09:10 +0530 Message-ID: <1516189154-28331-3-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516189154-28331-1-git-send-email-nipun.gupta@nxp.com> References: <1515792181-11836-1-git-send-email-nipun.gupta@nxp.com> <1516189154-28331-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131606402600629856; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(346002)(376002)(396003)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(48376002)(50466002)(59450400001)(2351001)(2906002)(6666003)(76176011)(97736004)(2950100002)(6916009)(508600001)(5660300001)(106466001)(36756003)(51416003)(86362001)(105606002)(47776003)(85426001)(316002)(8936002)(8676002)(296002)(4326008)(81166006)(16586007)(81156014)(68736007)(77096006)(54906003)(53936002)(104016004)(8656006)(50226002)(26005)(356003)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2691; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:yYeEwRQYCqdNYO+ph5xrf2NXnV2sq7NIbUeORt6kEV1X0nwT//cNAbuC2TSe9ufRBTZlshRn0bqgHudyinvN6P5HHrgWJIyK+micc3yxUl0nriRXakyyIfZsxU7t/AWa MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af0f98f4-bbd0-4977-7660-08d55d6a8fa4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2691; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2691; 3:p5VWS5Z9wcDIR15Sng7l8K7Mv+GjapxL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sfX6+86QSh4R31CFlv0Ybk7hXkK+z866whHV32j9ssWjNMAeK447SewBf0EAdJHuhFlpn2WlX9QbojE1SdkVaLAQjjTc33yXxz+0s/uEf6oTM50cZ4Ztnyrg6gssVWeCHAK9DVHegcRaMPLWytIc6HzIJco01HB7/5yew7XkV9o3nCTzToSioKWwMw3+vHgmPBTAcLVQF1tPXNfoH2J+i2adCRG4HAfGHyhhOLTZb9kfW4tiyd7FGmpwW4g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(2400041)(944501161)(10201501046)(3002001)(6055026)(6096035)(20161123559100)(20161123556025)(201703131430075)(201703131520075)(201703131433075)(201703131441075)(201703131448075)(20161123561025)(20161123563025)(20161123565025)(201708071742011); SRVR:BN6PR03MB2691; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2691; X-Forefront-PRVS: 0555EC8317 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2691; 23:52LT+rPJF0zBqK2LhZSJgksPr+YkTExbM0wVDGFac?= =?us-ascii?Q?2T4O+NQZIir+cqOyylXBxl6T7caiuI4LMS9wHqjte0miEGplPpA5Ffo1AGiV?= =?us-ascii?Q?V60el/O/bJkSI9TQ2ilWkCWt2GRXb6I3gJOBO8kLU1+/gRRCS2hk77krmAao?= =?us-ascii?Q?7sU/2hlKJtJ1LlxJTMC7Aucjh4DNvPceDjhyS5kO6X2n/tWopHas3bTStzIy?= =?us-ascii?Q?mtutGrxxOfh0WwfKqqqD484G+9E/lZDMZ1GokiVDzpyzFVvsoTZlafwNz8Rd?= =?us-ascii?Q?Zpe468EGDc0iZ1MIiC8bwsxHenFfVlIhQwGgj2dfxtEfvzvGrch3Q6uI5ib0?= =?us-ascii?Q?rXA74pITl+QHfOr5BGkOJXpt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aHcwh+ezxIesnDGfNHTtm5wSakjF2tlpvltYQDS9BQCbRaoKTUFVTZjsvrZMZU4AXWlW41lr9TxRcTyTloQHgbp+Gq5Rh5LHSIYH1vPlDZHDObuAU7MZxF6cKEWuJLI14GT+A5zS6lMXcvIBQMd7afGI7tNS6CLS5BcY9rJrPqxOweoi06i0B1nO7Ir2wpwNjWdMuPziCCUtCA01mudiAXtfS08snIMo8p2hKVme68OXKqq7pNUR64NwEuL43om/THC54/pK1lvg==; 5:lJf2M5s6zq008LD6ReoHxxWjSDBJUaCRaw85ZFSFrrxtClaYRBL+YIYZw71u9RGL1diMl9NgPwbRpvUJuCkj1xz0aGp5u5U2rHrcfEIp9c1KtPRokkKZf6kfdNaAgMeQnwrKBGJnsfHmi1a6mLaSFsXa54pFhIMcwenH8ERWZjs=; 24:WMiv9EmUGRaX2vORLn+I/SW+EDIh8U6ssBSjqt4pmP0ZNmqbZzPYoTHjatozsMqzSQCyBC5zSa4FICCFy7C3nmcouK4iXEf4ocjeWSTEedk=; 7:mSw1rXi2B4TP3E4peqguLwMUoRqurO4hddlFt8JeGhs6STELL4qNACJBP7TfhYgdUDC3ndwIWmEZZ/9TyJBVuQSzdqSfI73ufNmgT9RzNwCcn066tI3ex8T9KAyybeQPAacvwWvsV3PJWwu90W0TwHQTZvRq166AgisBjIek9tnxsw6g+yk90E92xZ+O3iXsmucE12xhYEU0IGZH/PkuAM8x25tCmpgVmrXti1/BumjcluWpbPjn5faLI8ZtjJaJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2018 05:24:18.1441 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af0f98f4-bbd0-4977-7660-08d55d6a8fa4 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2691 Subject: [dpdk-dev] [PATCH 2/6 v3] bus/fslmc: introduce API to consume dqrr using index 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: Wed, 17 Jan 2018 05:24:22 -0000 A new API qbman_swp_dqrr_idx_consume is defined which takes input as DQRR index to consume corresponding DQRR entry. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 7 +++++++ drivers/bus/fslmc/qbman/qbman_portal.c | 7 +++++++ drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 3 files changed, 15 insertions(+) diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h index 019deae..10f38ca 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h @@ -389,6 +389,13 @@ void qbman_pull_desc_set_channel(struct qbman_pull_desc *d, uint32_t chid, void qbman_swp_dqrr_consume(struct qbman_swp *s, const struct qbman_result *dq); /** + * qbman_swp_dqrr_idx_consume() - Given the DQRR index consume the DQRR entry + * @s: the software portal object. + * @dqrr_index: the DQRR index entry to be consumed. + */ +void qbman_swp_dqrr_idx_consume(struct qbman_swp *s, uint8_t dqrr_index); + +/** * qbman_get_dqrr_idx() - Get dqrr index from the given dqrr * @dqrr: the given dqrr object. * diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index b5c8b50..b02dfa2 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -859,6 +859,13 @@ void qbman_swp_dqrr_consume(struct qbman_swp *s, qbman_cinh_write(&s->sys, QBMAN_CINH_SWP_DCAP, QBMAN_IDX_FROM_DQRR(dq)); } +/* Consume DQRR entries previously returned from qbman_swp_dqrr_next(). */ +void qbman_swp_dqrr_idx_consume(struct qbman_swp *s, + uint8_t dqrr_index) +{ + qbman_cinh_write(&s->sys, QBMAN_CINH_SWP_DCAP, dqrr_index); +} + /*********************************/ /* Polling user-provided storage */ /*********************************/ diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index 16b759d..b9dd063 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -97,6 +97,7 @@ DPDK_18.02 { dpaa2_virt_mode; qbman_fq_query_state; qbman_fq_state_frame_count; + qbman_swp_dqrr_idx_consume; rte_fslmc_get_device_count; } DPDK_17.11; -- 1.9.1