Message ID | 1515504186-13587-14-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4021176qgn; Tue, 9 Jan 2018 05:27:01 -0800 (PST) X-Google-Smtp-Source: ACJfBotYFSxqTfGB0CV0aCKXO5I0W3waqooojoVO2BkaEY1Z75iNC0bNa/xJpGQRD/3PPdOO7Yl+ X-Received: by 10.223.131.103 with SMTP id 94mr12539046wrd.62.1515504420944; Tue, 09 Jan 2018 05:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515504420; cv=none; d=google.com; s=arc-20160816; b=AIJoTd/N2qv7bygZQLNFt3UPEPekU8UYXYdsegc+KM5gQd+rBPCsROJgiQrIw9nJyw jlA8qRxOxK51+uKGAXTjUvKaeDOFxWME6gLVWpA+PPm1ILll1/lhklpmpgSrBTvE7/gk HMlYs7UC7vMPF47+na7OdrACsTIZG8tSAtdUnhj+wBeIUzMHiE7VQAGEv3F0+pvDihfI QT1o03s+Pvv5Xla5GyKIF3ekOjhDll4lHLWpD76S+mvsI0epsC5qPdmhD4XIyKl70qGq NDkkzMIO4HXmmv9TfcUjxAyBZIUFrc36DR5FMSVfbwQrb/CaSaG5+jDHMAKpxjGyGnl7 UhQw== 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:cc:to:from:arc-authentication-results; bh=9bUoN+kCUh9nAbgLpQ48st1uy49XY4ymlpynJ8Zfi/8=; b=moxak7ge+2ezqc8VFTX5w5DhmBr+KwZJrwsw9LCRoFhOVF8FsfuPFZ6fjG3ntq346A n2Q9jve6DGHSOsCWsbNWioKBM4b+lKyqeaLl9WSsH9l/ZXCusxapV7SCRHu4uLM4I64Y RJBkXWIzWaD6b+d6cQY5P3oS9gArvZicRBdCSaIhWRcJuvIOXwOyy7KWKxe+6XvxO060 Q0kBFRjikXnEaB/4VX2iZhimuokVtzJT+j0lYcjkwaXMwQ6O5mydEamBPRQ2Xwja86Nb uH766/wk+K+tnKJiq2kqD0l0GOxgouvl1iDxEwIJb1zmfuPWH3BRACGAJt8uYjzLh0vE WAkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id i20si9854593wme.12.2018.01.09.05.27.00; Tue, 09 Jan 2018 05:27:00 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 176A81B1D5; Tue, 9 Jan 2018 14:24:49 +0100 (CET) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0070.outbound.protection.outlook.com [104.47.38.70]) by dpdk.org (Postfix) with ESMTP id 6DF091B1C5 for <dev@dpdk.org>; Tue, 9 Jan 2018 14:24:47 +0100 (CET) Received: from DM5PR03CA0030.namprd03.prod.outlook.com (10.174.189.147) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Tue, 9 Jan 2018 13:24:45 +0000 Received: from BY2FFO11FD030.protection.gbl (2a01:111:f400:7c0c::187) by DM5PR03CA0030.outlook.office365.com (2603:10b6:4:3b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Tue, 9 Jan 2018 13:24:45 +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 BY2FFO11FD030.mail.protection.outlook.com (10.1.14.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Tue, 9 Jan 2018 13:24:12 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w09DOAVv017638; Tue, 9 Jan 2018 06:24:40 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, <shreyansh.jain@nxp.com> Date: Tue, 9 Jan 2018 18:53:01 +0530 Message-ID: <1515504186-13587-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> References: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599778540629953; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(39380400002)(346002)(39860400002)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(77096006)(81166006)(16586007)(2906002)(97736004)(48376002)(51416003)(296002)(356003)(54906003)(316002)(305945005)(8676002)(81156014)(85426001)(50466002)(8656006)(86362001)(6666003)(5660300001)(4326008)(68736007)(6916009)(2351001)(104016004)(47776003)(36756003)(106466001)(50226002)(53936002)(105606002)(2950100002)(76176011)(8936002)(498600001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD030; 1:H7FcL8dgqokwVkaaQPu2J3GEePR4/BS7owCYkqe2VuW+r7cHlQF8Y5EyieXDG0EAOAi5730/XoX0fBjjwURb53v4go6LVdPj4907kjZuCatiVZ4r24NQT17uXxtgmS4c MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b259b06-c45c-4c82-2fc1-08d5576446e6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:wster7kC5FeYT/M7dZQAVA/c9Bx8Cjq7iYDvlGMohLSW+jyLqVViB8S65TQYvEs84gmYB21m5SGvIA6Da1HQcqHTuY8b3PN7ymaNDxX8X+6Stl1EYMSG6U4W90Eb6wwcLf3tCR5+0Z3bzIPG3ZpuBgt+Ggw4kRMxmxB+tHkBRusAOG949Pp+RKBH7kGOPBI48LKO7Lub/IoXpPfkUY+NrBsc+uslnRyKuACOi0jsXYtRnZM+GmD5b1WNmtGkY0K84vnUn7UDggTn1TntY5LU4wSNvKYO5jw64HXN4KgGoI+kMLiXr1b/ihyQohbLzPKCDLsHhBYmEaxb4j4kpnA8rIuCd66VzAUAJbMpSRr60G0=; 25:VWbdPWbLNcUM/TPogcV5CqJB/CQtPvMPQ5hE2nHH7WFLiwYifZo/Yo3kGL2o2NsRDXD51P/rFeXDqsjrUzdn1KzLa1sdEZ20eNDPCvW08BZ4KcGx5L2KpAL3r2heyViw7JRNGWpUoa3EfO6IpUNVsx4Lo5Ib+2NhQqUzNnThuZxjx519+I+BpaM5HBqwqDLYPuU90e7+T59FvtUi3Som5jSl4adGMiErf74gEIxulpAgU5DgW7LTtQxDkbpFmc3yWIJLm42HaVjB4Jr+nN9hG3YAWRtz3SSibn5EMZIN92dtGnkhn2GSWPNbuqWC1hh3gnn4FYqqwDLp6ybfubIL1w== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 31:ZBCX6oWFZmzqwMMzewsE7HbtaqKzoN+DhzLIXl0zcD1x4VtItjKNMMU50nX0pR9OObCJo+3xY3T6eVv5XhewbkGHsgH6c/7kFvMt4/EzgddWgroltP04Wii8DlGLe2Pl6fqtl7LWqEerE1BpX8mxXNj8JvjzPFaBmd2aD/+GO9boNqol7XyiuEb4GAc5F+o5DBhiQSJmXDwvvoEyLUSUQrnxGy7Hc2Cjty4TnrTQhS4=; 4:cktMON2RFslq+JKailwO3d9hdLh8snmDqBn9p367TP30OF6bZjimdRRkgnE4VRDSL8Jj9jgF8QkZ5M+jxzr4zdTCBziEAs/IeaIYtz04ooyIXxdv552cwhp2zJvT1MUDU5qOdWz67lw3PhTpmsOsaXLResSG06JLJF5fpuKQuHKZ3TjnLtJ2VCrcvubDLlybyDnpE7JZdTOsZZTXCC3MgCLSoOdGT9vSralpFDCo/UE61a++1O+0RT2SdVjyRYvdh/DGK+R6Ym8CTlNIKXrjGZcAa/lfcKt06ZEpIURKhXZjPrPKGRoUjByoQN7DNcS0 X-Microsoft-Antispam-PRVS: <BN6PR03MB26890905611925A709821C9D89100@BN6PR03MB2689.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123561025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123563025)(20161123559100)(20161123556025)(201708071742011); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2689; 23:yyOWZ5oal7s5n9Vethew/SoUPXUWAOZwMl3vlUHd4?= sWUqyUweHVObOkpMPXNNJlMeoxvZoS33iuehTYTPS1Al+JVy/ba2vsm5UOmbLJ1xqry17HH4evYpFt77Za6qU+GLk6PqLmh9gdA1cYyrCF7TVnBHhq6jOSFzdElPnaRvbAR8jjJ4rVX8r/fadpNCHvP8TmDLO54N3Th8BGlO130oRnc6jBVWGIf+J7hDv93UIrF7lKsZfl2QNPUkZQO5SapdofzfX6vWd8WLe1SPC2P2yKgKo36zyglxAZ8vWImh6WWEeVGRiH4xlUbAZ8K+YNZvuYVereABtJuuc3JpKsofN5/5cDsJCkq7QwbZ1wTSFUP2yhg2SWEho7BM+gzg57tDLj3V3ev3v+y2IVzmN7Wo1XfwAJkcTqKkvJxQX5c7AoTmJ6O7GkH6iAzX+iQWBWqb74RH3q95b/+kIhQKQWCC39aug2xZwoKIpbYuFGct99dABo4w+aopuQlnKn1Quf8S5IBBdmuK1byKg0s5ztnM+WG+K++hr2erbUoYAakgLbSa9k5XhfSzJgYL2K+SmeC2OW8xIL+5QqvjIB0J83iN8YiEzddsEQUoHQoHOnPGAKkp9Ck0c55aMncqYjI16Ebyg3YkBk+YTCJeKq4VbW0lA62Nxoy7MtQieykkgQtweU69/92nfyUKKKydt6xOTr5RqNPZ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9zxk=; 24:YHt1HaWPhWIBranMWolBR83443zN1OoTefkUZTsvhrNV2tR3xkndA1E3B43pszdjWMP9txintgtCCxpJGQdOFOSr0pc41xxmVIFEd7lR2pw=; 7:62fhZq86+5139FdP7mVS8ezDljjmNmvT3D/SRN+4O1umGIJmAHgCL8t1H36E9Qnp2vS1TGEYIUabOIVVxZCxfdDwSw51xKzfFopq6u5Xq2MEGQttTX4ScCX50SLH575jVvwmd3ZSjG/s4ntuBmNKaXaBPFQZGNcWlpnN7qFIGeexb+yAG1O1xYHRI/RvyWLUaZO4cOGbX4+vYNYkQQH2bW84/AGeuCU9Knz3aoEI0j1i/waJLjasHfgZfD3tUsBE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 13:24:12.5029 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b259b06-c45c-4c82-2fc1-08d5576446e6 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: BN6PR03MB2689 Subject: [dpdk-dev] [PATCH v2 13/18] net/dpaa: add Rx queue count support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
DPAA PMD improvements
|
expand
|
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 5d94af5..de016ab 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -513,6 +513,22 @@ static void dpaa_eth_tx_queue_release(void *txq __rte_unused) PMD_INIT_FUNC_TRACE(); } +static uint32_t +dpaa_dev_rx_queue_count(struct rte_eth_dev *dev, uint16_t rx_queue_id) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + struct qman_fq *rxq = &dpaa_intf->rx_queues[rx_queue_id]; + u32 frm_cnt = 0; + + PMD_INIT_FUNC_TRACE(); + + if (qman_query_fq_frm_cnt(rxq, &frm_cnt) == 0) { + RTE_LOG(DEBUG, PMD, "RX frame count for q(%d) is %u\n", + rx_queue_id, frm_cnt); + } + return frm_cnt; +} + static int dpaa_link_down(struct rte_eth_dev *dev) { PMD_INIT_FUNC_TRACE(); @@ -664,6 +680,7 @@ static struct eth_dev_ops dpaa_devops = { .tx_queue_setup = dpaa_eth_tx_queue_setup, .rx_queue_release = dpaa_eth_rx_queue_release, .tx_queue_release = dpaa_eth_tx_queue_release, + .rx_queue_count = dpaa_dev_rx_queue_count, .flow_ctrl_get = dpaa_flow_ctrl_get, .flow_ctrl_set = dpaa_flow_ctrl_set,
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa/dpaa_ethdev.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.7.4