From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0059.outbound.protection.outlook.com [104.47.1.59]) by dpdk.org (Postfix) with ESMTP id 83C23F11 for ; Wed, 29 Aug 2018 12:49:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZUSP2PXK4af6rP5zgf2/64mEeNq5rKwyuc8eWjIqyqY=; b=JEWsfn4/wmeJi/8Qy12lZcdsZgIZQQ0tLZEg/ZeVGuLpVbamLehgPDXZd1y9oQoRqz8nIXFuTpZSFr79FlBePt+6zF/dhklhUrCB6K6JH2g7aFTlbdwxpRRIWKNzQkmPlTnbyq+wXjw//Plr7TEh+CHg1jTVzhuB3373JWVASQI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:46 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:31 +0530 Message-Id: <1535539660-20228-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 279b1cd2-7b3f-45e6-23d8-08d60d9d2366 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:RfelesaoYvZfZg0kj3VK/QBmy2eGdazpvfaQEP4t0SF29gLo07SNmhm9oSgTrVG1ouq8VK8RFBizNPw+/ai60U1IT3g7V7HHJPYklWlSIvErinCwZHb6f1CtQ6Ac31+NkL9IgejF4tbc7lInGfj9Q1MkO+Goka7dtfw4o1xeCFHc/9qfvaD3nIsyBo2Op6XyUJmMb/zMQf53KJeDYVjtldNXpvw5x0WbmU7+WhwmJEsV9tbtAe9fBdtauKI3UhEE; 25:nbfs6kcNDHmhhYQkGB5ICXqZpEMqsg/6LQ3vd60y0FztL+xLA5MCbu0K5hR14LcfM7wTHx6v1Oux3NjL2UuyAyuoowiYEdaNS0hy+ppTp/DYZHVSeth3hoB8rjclXCd0GcSeI2nY75KRPizk9uV4OMIUYN6UTpo/fg4FuTCVzIFhftSFNf/PcAtq018sMYf1gGJi5vvc5H+0SXqE/uNDN1ifNwYqali3Teow8d3aoYA7wJdd2MP9WOYEYjNxR2nAg9+iifcss9GO02ElNt3BANyDLPMm6W7xm9E8aGOZXzxH8BrOYpBG0nsoYWoRMxBkzainq0iUDkZyRIHCZNp7/Q==; 31:8oCyWubomgfzVH+etyLYj51N8pIAQ57ZvuViStLmaKCwxi/U5arVLNsNn07xsDh64CXEmbFTXV1B7dJM9/ncEKULeuxLNdOXoRcR/8/fFMmrxUcSTHg2TDnLZE022NkDxHyaIStjJMXX4VOziO3VNTCmUMMG8NGs5ranQWSUxGfsbbWbZ20ce2CY2ZXpp+7pSn22tv+MYtLWJEVmLHXn6X4XRdL6NBUckKtsezMF2wk= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2543: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 20:P0o85wpR1Zq+Srei13LSECTtqA2jfcBDjFeMl0Thw8RvsA7Hx8Xo7ZY3c9EmUpWDXLcRbTpiv37MKRuFu8Wbvcot22lT4OVuk43RL6LqjZ/cyQuHg6KhbnZWb0DvmcKZN0uW/UCEidXOxrkFnp07NSWNl8QgK0U/0kHoraOLIMgt3tVAFpxfKjRZLyojYUBugZ0bBbnEhs2DUJ3gsTzfqS6K2XGretxNK+VtgINYOtMBKz5xIXbXqD8dUKke6g1gO2rVyaRHP8runmvCStXWu/n8Dxdl7VDPuCB2mYJ3swvEcrSZbSfdb/W8tIw0jnkU5QHSMFyz3+Rwfon9KUekI18/E2yPBYadD03J31j0zD63xhtng/4shLrftk3peirFiCU8K0/iA25mjHYINwddEDhEi/kIRkOnxhPwYjqJQFnEAcXsS0aSVvDdEyK7c+1mrV0IwVesCOWLGn/Zkg9Dz3zzPmkBvKZ1Fsofz288TtvojDJzLFY7Ni0Et/BnT5iv; 4:3Hm/GVckba8fCe4zpYaYr+Un9ak9PPFEwDkeaOsm+Mbt8vYZyk4PGNvnUSRWnx719ZbgrhRw9PcQDiXUBi7o3tVjqCRB70LcFNqohvBRv2kEwLrJjH4ZTxDRZqltuxJqLyXlMMxJ+0WB0HUM9fZHg2oJjKpK/f3P6wnxziY1K3Fsai7l4FW3wotgQ+e/tRu45NLxvw3S9F0o94ph+diXj4pG86sgYuOVt7/C5eNB7R15nsmC3/fMCYMiZE2jOhGa0xmwfClq15U9YPyKNudoCKCMVScuDQTM1mMvEq4WG5JjApqjsAUN6qBr1PvGzUhg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:H/2cooX8bUiQcPc/mF26XRsfIFePZbZMUWT+Zz+?= =?us-ascii?Q?+b46i4/siG4ivxE+v5fY2OZT1QAHfz4U3Oo5pq+YpT64asiHj+InMPDWGz5F?= =?us-ascii?Q?KlLsNCJg9fBdPVHjdYqwiCQElqZLvWTbEKfk3KeAtGeL759C7IGNHZp7Bddm?= =?us-ascii?Q?u7EkElnvLjUSBPn/ZVVsZhVws3VptljGm4HiDPykLX041JG2ONdt0Ppnsyel?= =?us-ascii?Q?3VOwizhIXg6oMcD/+x84VOXxWrIo7xQ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0uNEOQMOVyisQD+ziEwJ+W350bBf4PE7u0PI7Vfwp7ieLVpKIu3iZe0W4b5gr/wcZSAlwAGN6t6wKddRHtIR4ZaKAROrBpO5LFXZyckHLTKdHzB/z0koHdei6AFVcpYQkSbNnmLMJq5HehlbpgyXzaJLm83S8IbO5En2h86NcsFMdtaQDjdHUoXg524A==; 5:9pi23Y0expBM631wHAr25IPK/ePQD50PgtcPENGHlnvWiNAJml4A0vnYVeer5kF5APVEp0peIp+SEmZ1G+Y+wfI5k8sePk5951m3nKx/RbCQd54eLMTyXk31dG6nTropLDbMJJsDPhoYDinfBSC1JOnLzVytcHxtxSTWSK9DT/E=; 7:bjPaXohcA4ooqMW4KVT1FDThz2IDuQDBfmc8khixx5R6SvnIEOIXIV0xIMPaFWRAhUu29pJsMgzwhVTP2YR5r2Cfl8ZJq/mAgKOwTUuM/o8s6lASQNIfhIwAtH1MQm3vJi5K0ErlBBE/6sRuK8rGbY5LOFAA1NEqd/mfRx4cNLJENw24jiHk0RbceoIce6p90LrtNmtIOuzXXPqRTgdVX6VHYT2uxFFz0nAGGIY1Jvpbw8zrfj+V5QfUdIrMnx4D SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:46.6540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 279b1cd2-7b3f-45e6-23d8-08d60d9d2366 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 04/13] net/dpaa: set correct speed based on MAC type 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, 29 Aug 2018 10:49:48 -0000 From: Sachin Saxena Fixes: 799db4568c76 ("net/dpaa: support device info and speed capability") Cc: shreyansh.jain@nxp.com Cc: stable@dpdk.org Signed-off-by: Sachin Saxena --- drivers/net/dpaa/dpaa_ethdev.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index a0e3f24..4e5cc0f 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -338,8 +338,15 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, dev_info->max_vfs = 0; dev_info->max_vmdq_pools = ETH_16_POOLS; dev_info->flow_type_rss_offloads = DPAA_RSS_OFFLOAD_ALL; - dev_info->speed_capa = (ETH_LINK_SPEED_1G | - ETH_LINK_SPEED_10G); + + if (dpaa_intf->fif->mac_type == fman_mac_1g) + dev_info->speed_capa = ETH_LINK_SPEED_1G; + else if (dpaa_intf->fif->mac_type == fman_mac_10g) + dev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G); + else + DPAA_PMD_ERR("invalid link_speed: %s, %d", + dpaa_intf->name, dpaa_intf->fif->mac_type); + dev_info->rx_offload_capa = dev_rx_offloads_sup | dev_rx_offloads_nodis; dev_info->tx_offload_capa = dev_tx_offloads_sup | -- 2.7.4