From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0086.outbound.protection.outlook.com [104.47.34.86]) by dpdk.org (Postfix) with ESMTP id E76791B26E for ; Sat, 9 Sep 2017 13:11:29 +0200 (CEST) Received: from BN3PR03CA0099.namprd03.prod.outlook.com (10.174.66.17) by CY1PR03MB2266.namprd03.prod.outlook.com (10.166.207.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Sat, 9 Sep 2017 11:11:28 +0000 Received: from BN1BFFO11FD003.protection.gbl (2a01:111:f400:7c10::1:100) by BN3PR03CA0099.outlook.office365.com (2603:10b6:400:4::17) 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; Sat, 9 Sep 2017 11:11:28 +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 BN1BFFO11FD003.mail.protection.outlook.com (10.58.144.66) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 9 Sep 2017 11:11:26 +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 v89BAUhT026326; Sat, 9 Sep 2017 04:11:24 -0700 From: Shreyansh Jain To: CC: , Date: Sat, 9 Sep 2017 16:51:20 +0530 Message-ID: <20170909112132.13936-30-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170909112132.13936-1-shreyansh.jain@nxp.com> References: <20170823141213.25476-1-shreyansh.jain@nxp.com> <20170909112132.13936-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131494290880793005; (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)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(48376002)(50466002)(33646002)(5003940100001)(5660300001)(68736007)(189998001)(106466001)(2351001)(105606002)(36756003)(47776003)(498600001)(77096006)(1076002)(6916009)(97736004)(2950100002)(6666003)(81156014)(81166006)(53936002)(85426001)(110136004)(356003)(305945005)(8936002)(2906002)(104016004)(8676002)(54906002)(4326008)(50226002)(8656003)(86362001)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2266; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD003; 1:8t+Mj2GK9vw35ZmahzpCGdj7aXN8y4zBKh1stB2HzVEvux/9vFN7VNqve8wpUJoMp9CZy24VmWKZJ2u8wPrIK5IzPDodBY+RGPgX8yGi9pSXVsMj8R0PpeVQdzruuAsO MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e2bda46-c126-4bd0-a84d-08d4f7738465 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR03MB2266; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2266; 3:J1InoNCt8Sb/0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2AEN9d1XcpVARlMrqKsL3CUMIkNToIaV+H8u0zIj5ngfKZN9NQpPKcI75elCnzGQSzIBsYErHNPDUnMel+7ZUXCWZY0HhPNrgJwPj6sdSyamsx0maBZiAlvN0bcwm6bSRd6AI26hODV1UVV92gH7c3HUOToU7n88IVFa5ivthCPajdg1UDBe8UJKO3Bn9ksCSyojrihgcAgCvJ7rx2gWS0sb9vKLhjX79zlDxNj6yt9Pu85U0d/uqyApjiw= 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)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2266; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2266; X-Forefront-PRVS: 0425A67DEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2266; 23:PtHwbXEee0PkrkqpXaaMUGK3fqzuzDxr4e2fa9GwA?= =?us-ascii?Q?4GT2xAUHbM/FEVtNbMlrAfiEddq2lx8MzPLQH7oeb+c9qzJO19NNmBAQXvQN?= =?us-ascii?Q?IfFWMFVKr2x/KFg1oJ0UqZU+l623+uQQ3O9aGJsXw9TSXYrvqEoqzJdMvs5k?= =?us-ascii?Q?HuQemxEw9IvjQSJCB2pc2bC+BeN2+d+2b/I0MrcdDqgX/E3aGRc3oMx2FIXY?= =?us-ascii?Q?PER7i953eptgT3mDcruJ9jmpU7wRfe2HShUIS6SeKLklw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Cd8xBJ?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2266; 6:Aqds145HugzVzB7/z/44dDX3ilvofW2iEBTniVd7qHUE1FzFNCgXp3PLwvmmmhFRkBwLuW0KRHyrlvsVUOoD+kiHXmPvinmQLvHiHTaa5djFQyPOO3rjdDgQZf3f5qd2gcZTLmsLo8rjrYRfaCsHH6UxqUDmDP1ow2iCnB5PRbl3MMttG2sX8kkf0NkT3WGwVPc01QS1NrqhqhQRYtTjzwj+f2ipRIbmbAbBz+BT4fot3BZgPpRY6F6sQb+9zkf0DG5AiE3cdSosQlQNt/IocvhE2R1Uv9EB/GQ+6dwV91LawBejX4PKZ06Ar03+TFwZQLpUKp3dXIEmlKSMuvSIjQ==; 5:eFyyKUEC74MZTDH79KA+j7u6wldHjbFCAKCqotHOuAHHpaBOcUjimlXWZ8D4eDnP9th9PAYfaG6OlC4WcGeZ/4dfs1wnZOww9GKTg5qIvnSRfBPFdEr3GL4gjgHvABQhrMbB8xcXcf3gt/cR4Ax2pA==; 24:9/CfGJT99MRRass8RHw75Qm2TPBfrvNmAbLbmdo9fLBiAo5vxzV4eIP/HObZ0Bt7Yyaf4fPRfM2dwtaICfZOvOclFpS60mQN2r77Kdh56vg=; 7:5AX+3mCgUb2g0UYqwctNhaU9GcdsreaMJDfowXztuaRveltFUlSbiWNEZK3wwHdVRGPczi7cISnY9c8/E6aTOjoXdBqsO5AB+K5pujMraewkqmKWamkZKduurIWc+Z9Q0Q1Og22Dl+3mpGSaEtE6ly1DwO84WmbgYzuSQlM2k6A/Zd9DkyE4KYW/3YzL1YT9nhYiTwQE8TYSRmyshI/6SRTH0SLj1Bgy50OjprXkGTQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2017 11:11:26.8625 (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: CY1PR03MB2266 Subject: [dpdk-dev] [PATCH v4 29/41] net/dpaa: add support for 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: Sat, 09 Sep 2017 11:11:30 -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 75fded2..9751145 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