From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0078.outbound.protection.outlook.com [104.47.37.78]) by dpdk.org (Postfix) with ESMTP id 8BFB01B19B for ; Thu, 28 Sep 2017 14:20:05 +0200 (CEST) Received: from BN6PR03CA0049.namprd03.prod.outlook.com (10.173.137.11) 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.77.7; Thu, 28 Sep 2017 12:20:04 +0000 Received: from BN1AFFO11FD035.protection.gbl (2a01:111:f400:7c10::130) by BN6PR03CA0049.outlook.office365.com (2603:10b6:404:4c::11) 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 12:20:04 +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 BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) 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 12:20:02 +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 v8SCJ72L008785; Thu, 28 Sep 2017 05:20:00 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:59:48 +0530 Message-ID: <20170928123000.1711-29-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928123000.1711-1-shreyansh.jain@nxp.com> References: <20170928113344.12248-1-shreyansh.jain@nxp.com> <20170928123000.1711-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510748040242313; (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)(7966004)(39860400002)(39380400002)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(1076002)(104016004)(33646002)(50986999)(498600001)(76176999)(356003)(50226002)(8936002)(81166006)(81156014)(4326008)(8676002)(2906002)(53936002)(305945005)(316002)(36756003)(97736004)(5660300001)(189998001)(54906003)(5003940100001)(86362001)(47776003)(48376002)(50466002)(2950100002)(6916009)(85426001)(77096006)(16586007)(8656003)(106466001)(6666003)(2351001)(105606002)(68736007); 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; BN1AFFO11FD035; 1:dAMN67MQWVphU4qxRhw7AfkL+x8YKgm2uPrXB7lGqI1pZmbHxYYlpsuCdUEe46nWecn04wqudf3grwlhxLQz9OHGZwpWh4cmRpk/7ZW/oviARabT68VxDmVJZ0S3N7Ar MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c592ec6e-eb45-42d6-9989-08d5066b3f79 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:CKoeVFQSmIDauQnCrawESzvdOLTwHd9+/zy6jGBckYvsseh2bMJpNP8pq9Q/zkVX+xnBEoi49scz20qPt5VDJDv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Pxpb986reJxn37UcCv+ByNR2htCY5HzaoDuNFZwcPVhiB78lJr8pvqNHmicyO3OnPfF5gtujUKh39R+RSBw2A+/v9ciV/sGiwp/sfTpUd5ikd6EjAze+BRAcpBi/RLG7GcEP63BskYofuNWgCpzC/Kk2RpY= 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)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123561025)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(20161123556025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2689; 23:siLELuUwYd9ZkJAxWaSMV47WAp7w8EzltT2FtIRap?= =?us-ascii?Q?nDrWOBHhKBX4LHpBIsYs7bvuoMonD+TFLk3uNz0jgcDpNGd3ckZwh90Fvqpi?= =?us-ascii?Q?eVe40VyDFjM2+sKDqRi11fRjJMQgS2LmdI9njm9mcOfvb+5U1H2mTgvH5Dpn?= =?us-ascii?Q?G0i11Nn+xj9vcLOkgFFGORyf+yj+zFL4UdPJz/TAJCaCZVboejEZSsylVSyG?= =?us-ascii?Q?SyMIGykbR+AIZYt1tNo8f+V650ogZufwoNLBdIidw8VrY1yzg6Ev2sJP7mNk?= =?us-ascii?Q?XVt+5P/ZPG6FhxMtuQ7N17yFmPlIjOjVaQ2AaZKkacjo6dViI4XdIDjZgZr4?= =?us-ascii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change-Diagnostics: 1; BN6PR03MB2689; 6:9cwxDGsjg6cn7dLoQa3N0zmPVrhtPLn9ZFuzAapQ8x+DWKa5ZoZ+oy2WMe5gb+jRhz72IQIXBAwiIP/SiPlO0FWOuMl2Shkrh+jRpeTA0lCLSQRks8mazwo2CnuFevU6UlQAUA8LvroDYuHWbUYvZymCO1+hxTbVMtt/k2/w48/xtCHbvtVAS/ESgcu+CZVgAog2beDsD0L8CxgD2V4tJubqtfuVJN03wnN1hHzMu8d49l3HBVJAlEVOU0ZYHOI+qPz6EjjGH+9N1OnregjKOEvbgYjWLaP1PWkQ1rl9c1hXUyjaj3TVSzoGx/U630+vE/4kLaHOqCBbEOcbD3hndA==; 5:93F7OySb/sN8l6yCjZ4T0nmHbZ3hOwqOYnftK6KVRAde2LBys46H2kMlvvvgB6ADrMXK561F55TY5bbQROGBxqyQccoZ2GDd5adI/nttCrTGOh9ndtMN6Vb79QSk6tfttwo9J9DXMmmfClFCwAvzfw==; 24:2jzP2+nvk3JGNjNPBCFnw454/X/CnV/ZJuWmA6vr8Py0ekEBF5WMyF7WwfngodLxZBcb6WU88XKFbCog8H690NBocAMWSv7xSsXlBn7Uz/0=; 7:Yu/mKx/2O1x9sDGMBIpHbH+1LcDueT6j6f34mxDpte62Eztc83LzpZ7mUeGbMXv/dr6T4tIcMF2G23a8bkUM+vyU3/I0OV7jCleKFPFv4WXEHoOVrLWsKEW8Cb9xDVX+0HH6tt7RdhvgowCSZNDUgXckKzPTY7+zbWF7phq8atB8PFnzMU5Zfg83BmJn3Qjjr/Pzf6yr+iEgG7zv4JyNAco2R6XaSSZStfo6B4Ep138= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 12:20:02.6982 (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: BN6PR03MB2689 Subject: [dpdk-dev] [PATCH v6 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 12:20:07 -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 aae229b..69361eb 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