From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0045.outbound.protection.outlook.com [104.47.34.45]) by dpdk.org (Postfix) with ESMTP id CB3447D2C for ; Fri, 16 Jun 2017 07:33:18 +0200 (CEST) Received: from BN6PR03CA0058.namprd03.prod.outlook.com (10.173.137.20) by CY1PR0301MB0603.namprd03.prod.outlook.com (10.160.142.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 05:33:17 +0000 Received: from BN1BFFO11FD005.protection.gbl (2a01:111:f400:7c10::1:102) by BN6PR03CA0058.outlook.office365.com (2603:10b6:404:4c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Fri, 16 Jun 2017 05:33:16 +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 BN1BFFO11FD005.mail.protection.outlook.com (10.58.144.68) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1157.12 via Frontend Transport; Fri, 16 Jun 2017 05:33:16 +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 v5G5WNFQ001003; Thu, 15 Jun 2017 22:33:14 -0700 From: Shreyansh Jain To: CC: , Date: Fri, 16 Jun 2017 11:10:57 +0530 Message-ID: <1497591668-3320-28-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131420647965084520; (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)(39410400002)(39450400003)(39860400002)(39850400002)(39840400002)(39380400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(105606002)(106466001)(47776003)(6666003)(5660300001)(77096006)(4326008)(356003)(33646002)(36756003)(53936002)(50226002)(104016004)(76176999)(8936002)(85426001)(15650500001)(2351001)(2906002)(8656002)(6916009)(50466002)(48376002)(81166006)(8676002)(189998001)(110136004)(50986999)(305945005)(498600001)(54906002)(2950100002)(38730400002)(5003940100001)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0603; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD005; 1:J4EEqVFq1jTfRcWLDsa8/wgbh6JHN1FTznAMgC/TkJ+PIR4isihgEEifbJ01/tDmxP69v1JFxdneZW2hRYqXRKsSFwPuDnrOA02v54BjlUhAn78yewWKfYrmR+koASsDL8S75ltWXFAyBb2OS5MO1ydQV28cs2Y0NfFo/PKaUN2NMOlpns3pRNdR+7miwGEyPdduQrEecLhxpnDR2sVzi51OEwJik549ZeKyDpsgSjPPSv6d59jCdQNNQIOujlu/M0ZvjTuHLtMb4doqcOvTv/TeUpcobup+X4Bgo413PThXb45Oh8VFj8tKBvL3oE+XDcAs3vOyLLtxTEIunVvW71lRZJYO8ZvsBlzNTY7NSe0lSurRu6n/L/lIWbr+Lomj8HUUNEUA1k3ZEV7S5PDSVm3w4CoZDz7q9nwV0ZP2x4OhQjnQu4rZn93+W3z5ihpbSBvMqysWHGL2HNekxaIftXAzuzPiJfzW3wuMqMH8ZZQ9s+lpmYbwhBrB+8ee/9ezYMu67UpR9XqCfbqMtsXkomi+GnSy0GMmHo7xSuD+LJr44V7dRXtKhmtU2sAuKEz/gRcwW3J6GvAahMhOEuar7EaW18+L964WnNQ5eEh3XXZvN06+MH4B+4V6Fr10r5SLiWqiLXCfQRqbPpVho33IgcXDxq9eMcl3rolO7UrQ6HAWDwFVkg797v9CeHKAXTOiB02SeuPuyp8kSLOR0uM5TZY7jKX6ecA5fC8SMMM5+XA= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0301MB0603: X-MS-Office365-Filtering-Correlation-Id: 2413993d-ffde-4790-ea07-08d4b4793090 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR0301MB0603; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0603; 3:WIx/X/YliiH2VP1cEuHPdBqjkHPuDoaTyDxuxQtV3nUYO40vlrRqLIOMDcZijIkQ4m/JLKd4fOaka1G093Txb0j19uaiWtCbjcpFYCLfdqFSjMQtRjB11+T0RPfblWRkquiQktN2SWd43eJuCtjXXhWBk1Z2TlPv4332p1jeR7/U298B2N2UY3uKN9ovehbjZNQKPXvq1nBKlTW8R5JPOlUTuxJ9udkVZDbObrzQZWGA51fbW2eyvhOyN3cH4kUvE262BBnAJyagPjkLEir3zxiBJnNoC2dwNWbu/NzQUXswguzAjTAuszDJL/vvGuZL6MyBe/jG7UBCQkKli7yLFSUeWYIfjZbS+TjoDLkzisrV+rlJmVuWVUEPjisQK5ksJhlfQRssIEC0UG7XmYdXQIfR0+DEMihmLWtaD2PRiyfx9qyyTvaU5RUeyPlm00go; 25:ssgiTjZyvJEQriESuLzPR3salX8KMpijIBlls2NuBsAFB/ClGx1ZLULHVzFDsHsrXd6prY8gyRwYvSI2Os13wttzYCPDN90qrHVPHX2fBx/43ZEpI5lNaudTZ/DtUP7Hs3vxKPGmCtRHv1lHU8lk0bk88ZaxbgFSDSIKHEWSoZyKIz0nr0geozeOSI1H3y+WdlJ0V2bobAbU6FS+FqiAHNS5zF7pFYIMnDsod/Jc+Z+ITeC6+80Vn6kdZpOauAIAXjS+eY+55jeaknlO0ALc3/8wYHF5YvoCfs86niGk7ApDr3ouQCX8MSHiVX/+lIUjfGNtve9ha/S8/SYSUFg/8wOPmWseNSI5NLM7X+HKWJyMT2mZBD9QBfJxXIZZ2nVpp4Ks8QL/o9hZFo/WmSwAOUBAaJZ16i8BZYRtRJLuoSAoLvZBxDAfM2vaH+6zUQZzoZj/xHkOP3/IAFaL0aRRO0GKvjiKwPIDKmsgncUWdPk= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0603; 31:BJ6bD4ymNZ6VKvx6r99aTZ8XlqU4yNE/s2pBdTpWc1SIg0/z0eoTxoiGF+8I3Qw9BSRxC1AfAQ6fEJp4Qk84+VmHRa4vy9IUYPu681w/Kvv/wuphH2zcw8JAXTcO50/6z8FmA2IqxN1NfsZTbqfkIO86OYsqUaZkrKnV4fJqlr4KGCEptgAypHVJN0QaOyhp2Iox2jTutVKrL2Oy1M5HEi7v2KIOqrEXEydC4YsoGcIOtUxgn0Mh7rU1ItrBJKV1FLV5KR+aEC5b6SZRihHVYA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123561025)(20161123556025)(20161123559100)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0301MB0603; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0301MB0603; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0603; 4:PM5nui+9VsbhdkpcVJCXvbZtTvvQwdlZMQN00qfy?= =?us-ascii?Q?+W4bT4VuFpulFZwVjVXyLfu8VoBZt9lYeaLhhlmePAI8dA/mWHoZOXK4Cq4D?= =?us-ascii?Q?kgeNqdLK8D9G9JbaRMWcS1mv9cpqdTaQxhjwfL1NtEJcMuj5Ru8PNNSKjjVw?= =?us-ascii?Q?PCN1uzr3zw3SZWgZnU6b9ZCyIkDiCeqBzhFQ9/pQfmCLu9WJHzQI4AU+LpR5?= =?us-ascii?Q?6EcWHSQDgQKRcVHQPi792uV/tuPHA3zzQ5c6lrD5V+of399DrrLBPsW66UrQ?= =?us-ascii?Q?N4y/4fI91pFg1UBokrKsRzNFElGuJWtb8/nw/UtYERBKLVIU7MbLpIjDL2b5?= =?us-ascii?Q?qOMKQOi1xVHdZd8ja/e5VfyCBCElOomWPKR8wIeYmnBgqXwUZ1YoBIER+/ht?= =?us-ascii?Q?0ZKKpXMM9qPjs2mmmGQhlTCTckrEvIDRl0r2PVvWKOJw97wMMqY++khgjRl5?= =?us-ascii?Q?bAQjqJCaGDjjgqjpZmneVvzaK+PXmU3njjq8PDJar6zm/trr98XVpxKcYpEB?= =?us-ascii?Q?RuR9Fx7hYUBQ0ybYR/sw5te/ZFAWBbON4FONXc86DtstZQ2Mnxr26ikF2Vt1?= =?us-ascii?Q?+o+uziw3NWnK7jKUeLWf2Yn9HbDXLJpyowUg7EkV8gt6arV2btMHUJ40Ux+0?= =?us-ascii?Q?NBj4NXXzQZc9VQJSMCZKIJ1uMa7pcdP/hLMwPPxneaT+pS+mIFuUgmzP/sBA?= =?us-ascii?Q?6UpA4soztq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YEaUEil4Xa1BZCZC5ISSxAXNzXXzKwjTC/P7orafLEypTz8wGxEL7cEKTA7UxzWCRz+vVlX4pLHIMFmcHPR3EMlxsvxKLAOcacuY+C6uVt5f/Viq7xdTl106sToU/RwIsNmLnlyE68aufsX4GS2Y5WLPWwrLheI07XAuNusf1E+apKHrjT+y2ESTGCkj7rWxLRd4T7+MtTtmeJbN+BTntmpbMrwnzPc29T9MDZv6RbjtWVsemsOKZLmEuQ==; 24:WoB6cSLYRJGq1/t96Wup7m1UgDnSibJTMe2yMJgjplN0/QukgwZx/vy7Aax6AVDRTVgihULwy5TUeY2HaDTYk9XyP/HhAY/qsScWTyxeNNw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0603; 7:Y+gaB1m47BHMGHy27AnjjZrgFm5AmVcITBuGdp9ZXB2wHvpTei4iP7ITrjjF2ZcQ+3+Qe/heluueF11lp/U57CLJaXblUIGiZOayR4qZuS3nY0nPxc12cjhv3i0cNfXYLJYmS9m/BKlSPkKnLNMDLjFwhYPca2hYlyi4nv+Fn1u8+RvVMp5UHHEAD8NFyak9kTE2GA2R1MKlFYqd26ONE2g/JwOwbSdK+i9c8fsnVFdwxVwesxYSQLB9hLuP1Kv6uI33xEQBR0AArsJaMsFWb72hai8bPFSfHMIvMZAf5AKmuLhdZ0Pi62n5gcUgLrJxnP0/1aMr+DFvEY9T6NlqQg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 05:33:16.3212 (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: CY1PR0301MB0603 Subject: [dpdk-dev] [PATCH 27/38] net/dpaa: add support for link status update 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: Fri, 16 Jun 2017 05:33:19 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- doc/guides/nics/features/dpaa.ini | 2 ++ drivers/net/dpaa/dpaa_ethdev.c | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/doc/guides/nics/features/dpaa.ini b/doc/guides/nics/features/dpaa.ini index 0e7493e..cfc76f7 100644 --- a/doc/guides/nics/features/dpaa.ini +++ b/doc/guides/nics/features/dpaa.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = P +Link status = Y Queue start/stop = Y Jumbo frame = Y MTU update = Y diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index bb47a08..f3de967 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -143,6 +143,28 @@ static void dpaa_eth_dev_close(struct rte_eth_dev *dev) dpaa_eth_dev_stop(dev); } +static int dpaa_eth_link_update(struct rte_eth_dev *dev, + int wait_to_complete __rte_unused) +{ + struct dpaa_if *dpaa_intf = dev->data->dev_private; + struct rte_eth_link *link = &dev->data->dev_link; + + PMD_INIT_FUNC_TRACE(); + + if (dpaa_intf->fif->mac_type == fman_mac_1g) + link->link_speed = 1000; + else if (dpaa_intf->fif->mac_type == fman_mac_10g) + link->link_speed = 10000; + else + PMD_DRV_LOG(ERR, "invalid link_speed: %s, %d", + dpaa_intf->name, dpaa_intf->fif->mac_type); + + link->link_status = dpaa_intf->valid; + link->link_duplex = ETH_LINK_FULL_DUPLEX; + link->link_autoneg = ETH_LINK_AUTONEG; + return 0; +} + static int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, uint16_t nb_desc __rte_unused, @@ -217,6 +239,22 @@ static void dpaa_eth_tx_queue_release(void *txq __rte_unused) PMD_INIT_FUNC_TRACE(); } +static int dpaa_link_down(struct rte_eth_dev *dev) +{ + PMD_INIT_FUNC_TRACE(); + + dpaa_eth_dev_stop(dev); + return 0; +} + +static int dpaa_link_up(struct rte_eth_dev *dev) +{ + PMD_INIT_FUNC_TRACE(); + + dpaa_eth_dev_start(dev); + return 0; +} + static struct eth_dev_ops dpaa_devops = { .dev_configure = dpaa_eth_dev_configure, .dev_start = dpaa_eth_dev_start, @@ -227,7 +265,11 @@ 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, + + .link_update = dpaa_eth_link_update, .mtu_set = dpaa_mtu_set, + .dev_set_link_down = dpaa_link_down, + .dev_set_link_up = dpaa_link_up, }; /* Initialise an Rx FQ */ -- 2.7.4