From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0058.outbound.protection.outlook.com [104.47.40.58]) by dpdk.org (Postfix) with ESMTP id B6CE47CBD for ; Mon, 4 Sep 2017 17:10:35 +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=Cpbyd919QjIWAzMVljhhxSOvFMHTUFIWEe5hku0ct88=; b=SLgreWh3GzicSkJWBgnK0RV8iFSJkHyUJWOQ5RQLBgzISiTgB5a+2VzEGuHg8bz92YNG8TrVOXxKVWc+esIoPP2Zmyp2w/uIwh2n/0leX4mA4tWJ0NNB62bfpnDOzLag4mpmpuC8ts/ZxIBTQcj4Chrkm0uMAa8FkqeHWud6MLo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.domain.name (122.167.99.246) by CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Mon, 4 Sep 2017 15:10:31 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Jerin Jacob Date: Mon, 4 Sep 2017 20:40:06 +0530 Message-Id: <20170904151006.25283-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170830113007.28620-1-jerin.jacob@caviumnetworks.com> References: <20170830113007.28620-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.99.246] X-ClientProxiedBy: BM1PR01CA0117.INDPRD01.PROD.OUTLOOK.COM (10.174.208.33) To CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9e7f809-69de-442e-c597-08d4f3a716e4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 3:4n5jlxes2/go/gv/TFgXersc+vGYh3g6qV5YN7Xbg+GyX2mkPGynlBhNG0NEg7Lbat1hpXpILcRormxZ698zrlJnibw8mtFWxS7lsoqBMtIfxx825Xf9auGTbkjatANj1/TBuGm99+jZRvbu8OBs54Q6jeMrDXVpgkFUjTKrTsVf190VTjMXreR5jNoe7hlcLlFLGZ4Gr4OGwKTW2KCihMgvTVlcBWmIxP6cVTGhcEufaLOmvDIiUsh6uxKV5Hs9; 25:t7kp0bsATgfv6OcrkaRYX/hy4FCwlJpLafmElNUvpC4PdmstW/k5M63RXd/sQvW6qGz5K93PPAtOyxmPjfqwPS6SFzLe7ZyzdUvuvpXYJQxy8Yekcd9kAsXSnt/gF9dQU/kzxjaSMf3i5i/ePa/RI9sN6kCS7gGYKaBLloa0rDnP3+Sc9qk7CdG18lBV+MciTWwncK/bfkHtcx0XYsOAFk0rlNIvyBWSo0bpQHo8n4FBnAnP0BFj7lHDr5AmfTdkAbYcao8/oA7meXBc6KZQHYgQ/F5cOlYQgwNUruqlwgs0zxv10+//MpCL17suy/+JLzaqub+UaKl0c7Mkax8aog==; 31:NCv/3u+gyXoWcHuNpQb9RVhHa/Upf6YISGtSDahP54xZlKXL2apEQZ6h1j15t7+7tSb9SzlZ7NljOgNn4FtTHZeJts+wPzQhk4ZwHkP45aaf6EAU8S4kOGw33ply1g5xELOAqYFchwEY59t2oSzYY3DYWOcS6GudILHw5Cbgt8SSdU3je+T1durjO9BWEXQ7AqEIni7bFpg+w2nOaRLSxktmhcbM6xJe8Q6fA5eTW3U= X-MS-TrafficTypeDiagnostic: CY1PR07MB2521: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 20:QIVCXiGrcapu9vKhdTtQ61W6n1itEqZmJbt3Nk+Ab8TePLuFYcNjxKTX8OUKFREHn7/Lc/V30qT5157nSFWJsx771q1LwrpS31VdOfAyfrAtaz4ySgFC6o9ACkQ44ckZKimiRPT6qt6N2HXBHc6lFTisTg3wpUqNHTIJOw4wc9Dak8jeAx3B1NjxGwcndsrtOWp3ClFagUI8zjK0EBALIR/Gf/DHhmv4ng6Nd70IPk5BhZUI4VsUjwydw8aHdDzj3NGK34aw/51B48vF57qHbL4EOexJqaX10zY5P7uq4Hi6w8hOsLhA/ihcaI+QeOIrMsEAD/4Bbpy5URY4KJyw9Yh4YnwCWjAHCeVTproSFxe/g6OfaRtpiPBGefOdih00d7YF3qwzuyb6aT/qJSWbCmTN0KBJQG4XnKJ5fAzAIzyhA0BAnkTHrRdnC7txSg6KjWNRd7qD4lXvN5Aa7F6IqXHG2bbZlxU34FGmEBDEKvo3A+pr5lG1tIFMyXd+5nUQqyJGRiyIN/EJr2jXNFqKjwMvqMjMElFQDDgMDL2eI15oUw7YTqAaCoyzLfjJGuzGbx423ILd2q4/x1cq0UdeekqzVS72R6SDHsjNeccnNGQ=; 4:eHvwSGv1r6wrkf7o/880SakG++iKuCiZHkBVKwVoB1i1bzPryIk5cNkXgepOU0MDkvseyzytkGDv13eGe1Mx4pBNQcCIoKoaS4+VIQ2iXuEjNqLIbZEYpvJ9xAOOFPecbZb6M95kyFhF+v6M/We0YUNSIpJHiCa7aEY03YLWJ45XCn2lV4RmV3EkQA0c65qUIBDtMai9c4XBUnq6It8HL9A6fnJ5VQfogv8tQv9YjDffsbynK0aftwttOo4OszTb X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR07MB2521; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR07MB2521; X-Forefront-PRVS: 0420213CCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(47776003)(53416004)(6116002)(106356001)(36756003)(105586002)(5003940100001)(50226002)(2351001)(97736004)(42186005)(66066001)(3846002)(1076002)(33646002)(8936002)(2361001)(4326008)(107886003)(110136004)(6512007)(6486002)(81156014)(6916009)(6506006)(42882006)(8676002)(6666003)(2950100002)(68736007)(101416001)(72206003)(50466002)(53936002)(5660300001)(189998001)(48376002)(81166006)(2906002)(478600001)(76176999)(7736002)(50986999)(305945005)(69596002)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2521; H:jerin.domain.name; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2521; 23:BoFV/hiQjssm22XuyqkhvPCP3Gw/07CmUoi8WSEb4?= =?us-ascii?Q?bRlwIy+HXr7jnVsgoHLuKcfRVxRTxnGG6QOhd5zo+ZuE7Qt4UsRv2cvxjfmd?= =?us-ascii?Q?gDvDeFxwYfOCdg5hLkAxrMza5/1MNNwoLkhsSdszo8sd/mu+GygnuS099WqV?= =?us-ascii?Q?EIKf0kc0aWyQt7IiJ/cn5mNiAEeowPGYcmEhjcUX7m5/uiGvwwNmB3wO/t8R?= =?us-asc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qgQZ2ehHhmpldFTBVlnEbVkZb?= =?us-ascii?Q?v/za1yWxCEq5W1BcEBU/jY6ShRejTHsSInse3UhQ37rDJTGPTkvEw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 6:v5tD3+FGTPR0icGhjsowiYk+gKgm2HVup1gVqskK05BwMUnqVkrylduQWt+7bdKLyTfjcIk89ioHCmcxXwiX6EqF8q18YODzHFZr/MLtYNMsP7/MVfgigLMDTCBaujakWO7mRg9B9GzjkNj/rJK8gLyzMAKt8E2YeSspfZhCpptpIK4spglwu8EdD4IaNuF6T+LGTtGq8KcJo6AeHJMPMm0pc/cbEk6ggZEXo83jaCOaDkmvpJ877UubdEXQW0aiKNAJy9VbYCtLKE4tqbtuLii5wHAv39eLbWeG2x9o9dqPdwmPC20/Y83NTzFP2HWKVfZUk7xni8G8IPBOuEjoZw==; 5:skezV2o/GipRXds7PZZL+Fi8KrPtTYiDHV9hZjuNx6o6TUKjb/f8zITlRW4dS0E2RVSIQyOdhvT6fkS4roRiq0KTB8p9Wsz/rKDDDAaOe0E883QxSE8S1h+mMG6iTpWpAZkfNQ18W8cxOPFYiprR9Q==; 24:D+NRNb9hu5dLee5Fhwk3U/k40IV+WglTLTmKKSllvw1j3cRWjW9uJ9QHaK3TH9bFAzb/cy3B8lPHmrNG4biG6gsfFR0FbEWzF24a2ZqqhVE=; 7:TX3sCmGs+4kuIkjT+wNwIFEvVPMr1jpXdkSkFu0WMo82Pw3XJYtwiGCtdNWsTcunrlmf2ewQUdj7Yhce4SZx3gsrI8XxtsnAVDh8AZAxI9aRBnLdVwKvqHTeGqXd1f73JomhVL9gu80jIpcyP6CeOJNn2tQsrulcLpDJkh9ZQJapfrFNUWq8fmMtLl4EhQD3GpUaDuFjG26P0c/73hwKQd0DZJ2WZAEuX1ZACGpUtDo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2017 15:10:31.9480 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2521 Subject: [dpdk-dev] [PATCH v2] net/thunderx: add device speed capability info 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: Mon, 04 Sep 2017 15:10:36 -0000 updated nicvf feature file to mark support. Signed-off-by: Jerin Jacob --- v2: * Rearranged ETH_LINK_SPEED_10M, ETH_LINK_SPEED_100M, ETH_LINK_SPEED_1G, ETH_LINK_SPEED_10G to single line --- doc/guides/nics/features/thunderx.ini | 1 + drivers/net/thunderx/nicvf_ethdev.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/doc/guides/nics/features/thunderx.ini b/doc/guides/nics/features/thunderx.ini index b9720be6b..626858971 100644 --- a/doc/guides/nics/features/thunderx.ini +++ b/doc/guides/nics/features/thunderx.ini @@ -4,6 +4,7 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = Y Link status = Y Link status event = Y Queue start/stop = Y diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index edc17f1d4..4654a4ced 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -1380,6 +1380,13 @@ nicvf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->pci_dev = RTE_ETH_DEV_TO_PCI(dev); + /* Autonegotiation may be disabled */ + dev_info->speed_capa = ETH_LINK_SPEED_FIXED; + dev_info->speed_capa |= ETH_LINK_SPEED_10M | ETH_LINK_SPEED_100M | + ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G; + if (nicvf_hw_version(nic) != PCI_SUB_DEVICE_ID_CN81XX_NICVF) + dev_info->speed_capa |= ETH_LINK_SPEED_40G; + dev_info->min_rx_bufsize = ETHER_MIN_MTU; dev_info->max_rx_pktlen = NIC_HW_MAX_FRS; dev_info->max_rx_queues = -- 2.14.1