From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0076.outbound.protection.outlook.com [104.47.40.76]) by dpdk.org (Postfix) with ESMTP id 82F8E7D4E for ; Thu, 28 Sep 2017 13:24:00 +0200 (CEST) Received: from BN3PR03CA0096.namprd03.prod.outlook.com (10.174.66.14) by DM5PR03MB2697.namprd03.prod.outlook.com (10.168.197.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 28 Sep 2017 11:23:58 +0000 Received: from BY2FFO11FD023.protection.gbl (2a01:111:f400:7c0c::131) by BN3PR03CA0096.outlook.office365.com (2603:10b6:400:4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.8 via Frontend Transport; Thu, 28 Sep 2017 11:23:58 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.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 BY2FFO11FD023.mail.protection.outlook.com (10.1.15.212) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:23:58 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8SBMpG4016035; Thu, 28 Sep 2017 04:23:55 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:03:32 +0530 Message-ID: <20170928113344.12248-29-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928113344.12248-1-shreyansh.jain@nxp.com> References: <20170909112132.13936-1-shreyansh.jain@nxp.com> <20170928113344.12248-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510714385128401; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(6916009)(305945005)(316002)(33646002)(85426001)(104016004)(6666003)(77096006)(81166006)(2351001)(50226002)(356003)(8656003)(16586007)(97736004)(54906003)(2906002)(2950100002)(8676002)(1076002)(81156014)(8936002)(36756003)(5660300001)(498600001)(4326008)(53936002)(76176999)(68736007)(86362001)(50986999)(189998001)(47776003)(106466001)(5003940100001)(105606002)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2697; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD023; 1:zfQCpeAl8fG1ViuZgwKiqkmo9c6yLd1RbYflMnTG1jZpW6CleYRMPHpspeu9Tbi5nr3YHEBkM3MdpPpWFNbuVqyOb9S+mJRFqp+Hhv876VuNOcrqFSotmquU4V4eERYZ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed4eadd9-63f3-4a54-50c9-08d506636979 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:DM5PR03MB2697; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2697; 3:WW2PlavEUv8OH5b8MxC5IBTXUp1YGZFEwG3Yg273BdPN1nYZszbb/dTAPgWR0z0Vw9XJA6GJER5GV02ja5SxbnC3o8I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l/xnT28mA/34/3PECEpLtEz/wcbxR0k8kjZlTL7Hq6Z+S+esw+vlE5G7y/waTwdqQ4QO1uX4WglLhomQLCkBVlZ/u9DPO7jLkuvDKeFV8W2HU6APtvVmnj+BZUAqIULCRqZ/zRZqWPZDL3WlN3kaWahcQg= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123559100)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2697; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2697; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2697; 23:r0hvKvHlkUmTjJ9YVkTdtgSvyzPydqj5XtdonIFb9?= =?us-ascii?Q?ZpMHONDF6+DkrcXbi5/C7mXYWibDGv89ONbLHprWbEkAHQFy51dgJR3hjudb?= =?us-ascii?Q?XEt1yuIFGBQLDfQROaibhOwMF5CxfR74tSvyq2NfRdZh4Rn8A7KNv901GZG2?= =?us-ascii?Q?kxwtcHNIzL8/D+Ms7/1nWg0JIDSwgEc//b8/t/fCv7WT/J9/ox5nDYXgVj3s?= =?us-ascii?Q?EGFLhz5e6aUgMFsprOKTaJtLl5a1DOjVLmYrGGPg9rdaVQb6PruMmn3GXkF9?= =?us-ascii?Q?g9NB77saCsoNbUMQMRujINm2BRVW9+H3+SiL5i5hV9gKf/oW0M7kdpuZOdtp?= =?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ostics: 1; DM5PR03MB2697; 6:XdwWFBV6tW4syo75vMQXXeEz1/VV90Jc8hVSJzP6gmmn9HeV9SPJbtXOWTwNlHibK42sp+SWpvkMFOkBLrIFNGSRAFoAIAEjszkM4UfJHWksUOikCqejBM9oUsXawsCDey7y7cMxyIWn/66S1Nbc/U+uNkc6h1bi9qKuwdb+b+HV+Uj/p60U19wrl6qlpAAYHPgUex/+WMaJqlKAJQuORH5MbcFWmNL792a0bCu7EpF5P8hgk9j/2prjlDiaAc1zgSVZoNlUJe4JnzcNf8AypTZFvZPiCjZUoNF+TWHL3WN1439wzO/YwFdeRjP8My6oJup9oV9MrtVioV+whnQzPQ==; 5:yHSDchPngmgcWfaBb2pXwZBUR4Z3TSe/4a+W2j80wt5RbHB5juJjCNlKf2/NOhM7w2hEV5kfNHyGs1zj0VFn+uD/7P9ommR6QNaHdM0OY/9yPbUWC/z3gE3lFtBrDXdrSPwq5iEQWigQ7X2Uj9HmLg==; 24:FQvwF4IixVO2RLgvOWbAiiOZ3bV1kflwO0K5BAqeqDwfxbkolBqypSPOFhoWRCAuvCyixEbXqoYyJ6ORTW4GwYoKSnOlPrdlUKLJegb8jyc=; 7:xYJyWBjNnf6sLL35M5ad+6h0BrHPK4oNvGuO8qopbgyAdBIf/uF5ZQCGdA3fD112SiZfa871DkQPJnQeSvNr7Y2XvCj75JBHPild6HawNInzAOWuNzf3IdmmI2sKe/2hx0MZhL1HEegDGPPg/QLFZ1N+MqHgPvfpGxjkoCJYj74UJzEfkghhLr8D3+aXASpo4hjdy4tW5LDf+rALt/V3sB4ukfdlwFGpL3ZIRaofkR4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 11:23:58.2008 (UTC) 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: DM5PR03MB2697 Subject: [dpdk-dev] [PATCH v5 28/40] net/dpaa: support device info and speed capability X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 11:24:01 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 132f94b..19beada 100644 --- a/doc/guides/nics/features/dpaa.ini +++ b/doc/guides/nics/features/dpaa.ini @@ -4,6 +4,7 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = P Link status = Y Jumbo frame = Y MTU update = Y diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 804c89f..384be8e 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -142,6 +142,25 @@ static void dpaa_eth_dev_close(struct rte_eth_dev *dev) dpaa_eth_dev_stop(dev); } +static void dpaa_eth_dev_info(struct rte_eth_dev *dev, + struct rte_eth_dev_info *dev_info) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + + PMD_INIT_FUNC_TRACE(); + + dev_info->max_rx_queues = dpaa_intf->nb_rx_queues; + dev_info->max_tx_queues = dpaa_intf->nb_tx_queues; + dev_info->min_rx_bufsize = DPAA_MIN_RX_BUF_SIZE; + dev_info->max_rx_pktlen = DPAA_MAX_RX_PKT_LEN; + dev_info->max_mac_addrs = DPAA_MAX_MAC_FILTER; + dev_info->max_hash_mac_addrs = 0; + dev_info->max_vfs = 0; + dev_info->max_vmdq_pools = ETH_16_POOLS; + dev_info->speed_capa = (ETH_LINK_SPEED_1G | + ETH_LINK_SPEED_10G); +} + static int dpaa_eth_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused) { @@ -259,6 +278,7 @@ static struct eth_dev_ops dpaa_devops = { .dev_start = dpaa_eth_dev_start, .dev_stop = dpaa_eth_dev_stop, .dev_close = dpaa_eth_dev_close, + .dev_infos_get = dpaa_eth_dev_info, .rx_queue_setup = dpaa_eth_rx_queue_setup, .tx_queue_setup = dpaa_eth_tx_queue_setup, -- 2.9.3