From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0049.outbound.protection.outlook.com [104.47.41.49]) by dpdk.org (Postfix) with ESMTP id E39F32BB4 for ; Fri, 31 Mar 2017 15:58:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xxKv68/Ozk0pKRsGiWKFk+iBvRymKnzWt6Ushxn5DW8=; b=Y5CpgMFt/t5q+tbGWk3GvBZ3zCVEtVzFUUDy+ea5H1HWYFi7W+lL8REm0bRwmzsJBoTy+ottD+EXCnPybarAmnaUADozdaPRjP42PBMrcJVRC4xi37JpO04JJeBdizuEzJUOjHVp3cdMxP/wv2TOxi2bn7SaxaARsTFdqMNwP5c= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from b.semihalf.local (31.172.191.173) by BLUPR0701MB1028.namprd07.prod.outlook.com (10.160.35.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Fri, 31 Mar 2017 13:58:08 +0000 From: Andriy Berestovskyy To: Jerin Jacob , Maciej Czekaj Cc: dev@dpdk.org Date: Fri, 31 Mar 2017 15:57:48 +0200 Message-Id: <1490968669-9161-1-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: HE1PR0701CA0070.eurprd07.prod.outlook.com (10.168.122.14) To BLUPR0701MB1028.namprd07.prod.outlook.com (10.160.35.20) X-MS-Office365-Filtering-Correlation-Id: 54ccd4a4-ddd2-46b3-a845-08d4783df6af X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1028; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1028; 3:Vd8O1FRP0Ocez+Mr1ds7y+YAS3C7EJIMyR7PeHZ7sojl85XCCpnxFuCooX615sHWxtrw2fBZ6AtanejGE97f1iP8sfmMLb7ux3VM6LdB2uvjNRpLUfFEuIXdn4rMjRB9lRKvN507EokV06p9M717FQlzPCCV5QMTq92W5taRyRgd1Z1ECnZad7AJ0tT6wNhY5UyiX95Od8MDP1ZoqxuAk0GZpLV4rVGsbuoIyY1BawmfEBWIfXYMUrbDcOlOleXq6/2zVWzJCintPoLQj9hrM1DWCU8B3dg9127RFp3caqX9ydf0ORbdzVjVRKNl5umGy19snRk99gs7ssafLQ75Ww==; 25:PCdLhtFRhuLn9rppoFiI9t5F7wcvTw/mMDjA9kohvOEHbGJFKduRc/UKx6cVNvSebuWqHrd+LRqVe6DpoYwTaGTc/RNeANMJH5sKdmbHo70UgA8Cn2z9AhxZ/AAv1Kh0TDvXlLjRIoecDQwFMTxIRM5JrLvh2w7qxNsaiMtyEOLOGZe0c1kDtTEaSIJcunwretkcKtvFBB9K2MGyUpOSriMfhpf6nK9aWRZ/T2yldh34Gokj4q8Z3DaUrFeKfDIG3mSOMw6DYzVyb6/q3TmPghdCMeTWjFFiYE7zLU1uas6PgfES5QkjKYfaZ+3gqWNBJc/fo/aGrDjnTo5Mrls1Q/9np7uqusDvPJqzTMeqlgTznxEZrSrETdGGG0JvAXvAGkvWHCJ63KtNToiB3kbdkmegh/+R4ko7v4Snm797kUd0pz7p2iDh42oruz0QHWwfxlLoumcGTAOcf/Faa7NWOw== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1028; 31:5V4ZYgRbcLXD/M7/5WmhcDOiFS2xFEbOF1nWzlsQ3ECx8W+qGiNxiV2d4OxGodOUvtS/MclG330wuLcH+cbatzxxtL718STsIt3AWUzdU+JXJ8zs00pt9+gvReMTTXzSSz5YI7g6GH6rHu1dUUu/Ygk/Pe/8DBvb+NZUMbH2sFVtFgnJap2RZWNK1waOKoboIEpDbPwr9LbLkAaGAQ6C9nNtUgGlGP5Mtj8h9IyJmgM=; 20:CCPF8kPfTANO3I2YEBpxZzIlLxQgKo1cQwGtsHOda+mlxufaOU3N0i9zieqp9MXgya4Uf3VUjRM/fSBC9c6TrA04azCBNxc+nK4wcr5pK/9hozX9xXKbeIUOK/Ua+R6OUy0/05X3OzeqnugOdGa0bN7H+iC0zAXYkQxtMsD1Rl+3povwfsQgb7mjxWXRDhDBKQ67kqe3ahUwvfz8zwpRwXlHBGRsB4gZZoYwAEXyilmFMV1swQtCDbxVpvBEsAgWl5eWXYls6Z97Doc0ZtscIvKMl9SCd81ioQFt+9ijtTFRucH8LDuFtGteqX6OOjJmAVP3KEToqOEXftDiNxmRyLYc4eQxA+4Z+qRmXqHmqGXImcWmD93i0qj7a3rTLPF7iHQb04/d7eLesgalixos/HQmDe9q4RmdlNKmMtP/DIyBEbQI1wHL609DH2MpeHaH9DaQWreKSkCw61DAZA+VBB/nz1NCccnYLwKqhO7XHyZUtugEzhjVI9Rtc+tX31lXUd/2N3nbOnyvRX4E54LpCAg6QIr2+n1oITe5IIuQAvEa15Aw/GhmDxNqWGCIhHHZPjokpKOra0ruiT9sGhIpY3k1RThW2kfdwxDKZunR/NA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123560025)(20161123555025)(6072148); SRVR:BLUPR0701MB1028; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1028; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1028; 4:PaxXq9S5yKLiwjHIRg/kkABin0Scegu/GpGiaqrEuD+gX+BxI9n6Y7BCv3Wb5G0j1ffzQ3ytYUA0pZoRA6ohqnkNw5M0I/qfhseW6FhID13G/Px/UZv9IbYZ+J20K5Rm3KjhA/RSMEoJkrds6C7ZwY8Re2YIGej/ErqXZTRYURimqS9csh3rnEQz+uKI+hZnzu6wwXyYZpNeDXxb54zwvYG09Y3SAsZPpCrvgYQKBc3GEDXzCU/MkIPPuJATBSK3j2pvsPjwUaDT4dQcPXG/yQWG0KnQHBFWA+bmae80m4/hUSU7Nc7sN8Jb1VYJWnQE6OYpHNfUGlK3mslMYpSzpERH8cuTCYzPx7WrpnSTPqRiHoOzFXEoy4tXMKM8WnUX5VTbQ6cAqyXs8XiwMd9b9nX5SxRlecImS65s+HGW4eHJFOeIgWV9MvmIGLu+h3Rcgl/unYuMD+GAK33FbqIFyP845+59/rDP13Tgbnfmpv2AahDqIk3AKFCOS2hXjf/l9SxcPwC/XqehLjhl1L4LBxnvs0W7oh4LOJFz8spSJM4lttWEYfsa2LcA9xpN6/3G3Q2CfsSgjmyC1A0HhpR+nlsx99EzV5shEPZjwCsLmLychYEAiRvonjI9XOmpp4agh45OL6Ob+Xt8IAc2OZ6N3H92DB1uq6p4uy3nlj4EApPtUbxQxffYp6EtG64Uqs7EOP2o30gTVKR2BUh4V7iq0w/Uo0O9t6NP270BtgsWltb1A8wPHbtxNKQ85849S1PF X-Forefront-PRVS: 02638D901B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39400400002)(39850400002)(39410400002)(47776003)(6512007)(8676002)(5003940100001)(6636002)(48376002)(2906002)(36756003)(6506006)(42882006)(53936002)(6486002)(81166006)(6666003)(5660300001)(50226002)(189998001)(4326008)(7736002)(50986999)(38730400002)(42186005)(25786009)(66066001)(305945005)(6116002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1028; H:b.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1028;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92Ka5cTgMf1SORdjVNZ4rFAwwEZ8oFasmmFGjp+KskPNA6VPsynPDPj4o5rA8gruSXgMlKqM5bnElyTNKFFIibPXpbgCsFI0G691G5ZBv9ZTdCUyWnuCJo436s4zASdI7JocCbUEmNSJHkBusYgPNozD8IAcKtJoudivEchZWPA3vDWd2jVBbWATmaUTs66/nB8X82fVdqR2/AQ8WjX0hTb3kOjxcNKSX7RogN6S0P0KoS2fBMzPI54rRtRYVVIIsoSHBHKM8hUWqPIjQ==; 5:1zViOzF8MHvhNBxXoDEDxDyrrNvz5KTftYJBjsRWTw45DUq6aFL4ox5tMcpXY3XTGpIqbMtva0V+fIeTA1vsxwEzkDk7ArfqGd1+s2UDOA/IPR6vRrNuIF2bKTiJMqFHUuaii1Vu7qin9fa7h9rVSA==; 24:t0zpcxtYckE9B9jGs99A05Mgswj96c5b4xhjhgWuDZ5bJwTTqyaLlJGzuW8Ji0o91rkK5Wm1UJCHgFWdURVjA+SatjZXlpi7Bi/2Vqv/fnA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1028; 7:iMeQuCJ05CSRu8KV2QH/kBs1bmU0ZeRwsyWmfL7GoytZsruwGbSeEAlDXgUU+tmKXJbXQWldes0KKEoyTgzNhB6sS/KWNNULBU1ZT4++mJjE09nKTWS5BUmZNY3DPjPBGNPVhs1DT6od/CNzOLpqqWgpT0gEp3/hgongKVtfHq+AdnoEBRN6aAWVrhHDFJ9T/qXuZZpPNIf4m7qOqHSW/CJiYAMOQKY/fWpi+jjriyyRDoJESScIrqdphMz4jSA9kya1wS+ZsIsR8MUr5lNyHyWNcPJ9gX7AN8xPWGBTdpFTBTU5d/+6XbAKx8y/BUhE1WGszj0nsUnQ0cIo30cIfQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 13:58:08.4377 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1028 Subject: [dpdk-dev] [PATCH 1/2] net/thunderx: add empty link up/down callbacks 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, 31 Mar 2017 13:58:11 -0000 Some applications and DPDK examples expect link up/down functionality to be provided. Signed-off-by: Andriy Berestovskyy --- drivers/net/thunderx/nicvf_ethdev.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index 1060319..984c218 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -1924,11 +1924,25 @@ nicvf_dev_configure(struct rte_eth_dev *dev) return 0; } +static int +nicvf_dev_set_link_up(struct rte_eth_dev *dev __rte_unused) +{ + return 0; +} + +static int +nicvf_dev_set_link_down(struct rte_eth_dev *dev __rte_unused) +{ + return 0; +} + /* Initialize and register driver with DPDK Application */ static const struct eth_dev_ops nicvf_eth_dev_ops = { .dev_configure = nicvf_dev_configure, .dev_start = nicvf_dev_start, .dev_stop = nicvf_dev_stop, + .dev_set_link_up = nicvf_dev_set_link_up, + .dev_set_link_down = nicvf_dev_set_link_down, .link_update = nicvf_dev_link_update, .dev_close = nicvf_dev_close, .stats_get = nicvf_dev_stats_get, -- 2.7.4