From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0054.outbound.protection.outlook.com [104.47.36.54]) by dpdk.org (Postfix) with ESMTP id DFE011B1B9 for ; Sun, 8 Oct 2017 14:45:57 +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=XJQUZ3w5mOoKjGe+GCgSVzdBySl3hRP39ZCaS6RuFm8=; b=gu1ndGnSifi8dg2I7GOPg9mHl/Rco+DM0BRRBfBlqEBNUx95QwMYsE8p/PQ6psYvzDJTXY13RX/A/q2fSud/cUdgDE6wyRn72BsFS9VFWqp/h1ygMMCxf+BYCWcriLIuEFhf/FGffbE+/W/ydFF66CxaCa7VCgs8GB/9j41f93w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (14.140.2.178) by BN6PR07MB3089.namprd07.prod.outlook.com (10.172.105.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Sun, 8 Oct 2017 12:45:54 +0000 From: Santosh Shukla To: dev@dpdk.org Cc: ferruh.yigit@intel.com, jerin.jacob@caviumnetworks.com, Santosh Shukla Date: Sun, 8 Oct 2017 18:14:18 +0530 Message-Id: <20171008124430.1866-15-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171008124430.1866-1-santosh.shukla@caviumnetworks.com> References: <20170831145436.5397-1-jerin.jacob@caviumnetworks.com> <20171008124430.1866-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: MA1PR01CA0113.INDPRD01.PROD.OUTLOOK.COM (10.174.56.157) To BN6PR07MB3089.namprd07.prod.outlook.com (10.172.105.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d3bffbc-c1d4-4377-c58c-08d50e4a8538 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR07MB3089; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 3:VlqIADUAsfazQlG4fitZgZaPCVhgUdxr0H+AE+tABGrpJq08WvlkgSbIXfDCUJ/QRLF36uOLd2JVfiMnsM2hnkH4Gh14Zqhhq1BeMs8ya+TrR347zIC7O/HEOpWxxtAgJJsLhoj1+/q1ewOHfnxIykzQzRPIQAUQ2shSyhCDEFcADEoLA6FmwGq/HFRF7WfYPVTm8ObqatoNLezJD2Nk47ojd35o+77K0BQ52syIX+PlFf33d7vpkjyxvDWfcfQE; 25:Z6/LMmjNr6tgckMcspq+vqDHEOCeu1RQmezYj4hJ7oEk3kMSAePCMsrokcOfvFDVOWFvB6h+h46xhHSaY9Mugb80JG5l3Rd2JdBj1RD8vrgWKSCATZEQeUcDCoV2LV3UhIbJ5oHHxH+9l4VPtb+m5x1wyV1p7uJtLyFBs3j7xcJ46Tlzv9xNEBESJ7B1+l755/5TDRf2p6Nnz64keUVj6zuzsUfhsJZo0w7E6JdQXWd1WI29KTmRItIrxtgAplyb2kVE5TeXpo0Y9bZ6CN5ydok4j2HY6XZt5uoDPHxeFChHmumX1f/0uqgLHxMAWo6DwjcD+0qdu2/r+6CVH5se7Q==; 31:vgTcL+cPG1eoiDacyOMV8CUGF9vWP7QFZHUf1jXOOM2DreLGxT6DUUxH6pRoCvfBfyf1cKXQI3IAYUWhB7EbFCaBYkurbkU/XlY41XyafAKJj2Ud0n1dD3BKFOCVjA0cNwwy3bgSkyN6GDVlTbsZkFs4JT37pPDvnCgnTBiTA3TSjPq5dzvFTou7QoguVzw7sC0j3LOjolZ4qKaktCrSBBIk6NnF3WafgFUwFE/K2uU= X-MS-TrafficTypeDiagnostic: BN6PR07MB3089: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 20:g969q3JEW0kL4F1R/MLnwo7U/3sQLGcl1GAFvQyTltSL3wllL2F7xPimPiZilAlbOHJ+AaAJ0OQz91vIZOQX4dq5QSf3pSvJG/k7WJ/vfkCPsOKZwkC31EUNuCAc38sMW+2ncd2fDw94oRFBgyjnXb8Ff/yt5sDp8Dx2nc9Mvm/9ORXPDUAyQACz6RcZLe5XQGN0PHJd5MI29GYuaMuBClbPJ8cmXm2MWa6ZG8/HrUEA59YC36hO4BHRQxPlbC6Fjqxkm1WofTicIeL/t3ugIrUxzZnmOSCWqzFtPD7av1KyaDlN9No/6lzTk5UUhXJ61pOqfYN+VE1kfmd+cJDFYQzVu4IFQUcwvd0RD6KUpjNI89cND05/FV9U6glPfbBxMS9WcgNCSmp0SXJbnTATZKVu/zzuTG3Efojd37qei4X6+MB0VFPJIqFadlWA/2+fIpl5iCI9hU9bb4TDJa5eIkmN9qDVjPxjQBxiDIqg01ECuiIbR8WmaJ+kBz2GKkbxXdfGqTXOL8mOfKCQvkE55gNagPdrc0A1JdMkYJKBubSFF0P9I4oDWz58c5JpCnptcI/Wp2RtNeB35+C/JSn3wUQQHq+am65GLC4S242aAhE=; 4:Gui6b8j2I7BzaJyMHruBvwrsqLa60AJfG8iQmHI3Y/gZ9m7FlczFGK5dSLgtrsCokPhawMF/egrGXLHrpYlGrlrjsSYAOrcNlw4PK2dMKpiPi7AC0LJon7sjWAbe/hdDPxyhzaqi7gXqvtylWLKBEYzf1e8F+/3lm3fuu3pQQEQlSkUhGdadrHlcRJKcZ6hphteD9lfABZ70OuKYxnzXHe73WJnBc43DrLnqFrM2wxnTe0Y4zpsHH1+ecgcnfJug 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)(3002001)(10201501046)(93006095)(100000703101)(100105400095)(6041248)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3089; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3089; X-Forefront-PRVS: 0454444834 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(199003)(189002)(6916009)(42882006)(81166006)(2950100002)(81156014)(8936002)(50226002)(6486002)(16526018)(6666003)(189998001)(16586007)(316002)(6116002)(1076002)(6506006)(3846002)(7736002)(305945005)(8676002)(106356001)(105586002)(5009440100003)(53936002)(4326008)(66066001)(107886003)(47776003)(2906002)(5660300001)(6512007)(76176999)(5003940100001)(50986999)(97736004)(25786009)(101416001)(68736007)(48376002)(50466002)(478600001)(72206003)(2351001)(2361001)(33646002)(36756003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3089; H:localhost.localdomain; 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; BN6PR07MB3089; 23:4U1qFB/Z7ki0B+VuBqisckaawJtWMWpOjF8/uvpNe?= =?us-ascii?Q?MeHoAEswzgBAnEk/DZkFVJ2JjiYrE2IAQgwKEqhfkyzjoWg7UPsp7ft2IBNb?= =?us-ascii?Q?uiftGzYXy83TVkZ9KcQ37c3gb4YRvuCG2vTe4SvHdcay1nDX2oGjLCYknBD9?= =?us-ascii?Q?9vL7OYs4Ppymzv6JgesJRMUTYU3OnUH7aHYaQnQ8jUEwEzTlLpSVfLizPi1c?= =?us-ascii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nQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2017 12:45:54.9346 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3089 Subject: [dpdk-dev] [PATCH v2 14/26] net/octeontx: add device 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: Sun, 08 Oct 2017 12:45:58 -0000 From: Jerin Jacob Mark Speed capabilities, Lock-free Tx queue in features. Signed-off-by: Jerin Jacob Co-authored-by: Santosh Shukla Signed-off-by: Santosh Shukla --- doc/guides/nics/features/octeontx.ini | 2 ++ drivers/net/octeontx/octeontx_ethdev.c | 37 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/doc/guides/nics/features/octeontx.ini b/doc/guides/nics/features/octeontx.ini index 6e397c9b1..259daccb8 100644 --- a/doc/guides/nics/features/octeontx.ini +++ b/doc/guides/nics/features/octeontx.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = Y +Lock-free Tx queue = Y Jumbo frame = Y CRC offload = Y Linux VFIO = Y diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index 10796f3df..fde52b444 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -262,9 +262,46 @@ octeontx_dev_configure(struct rte_eth_dev *dev) return 0; } +static void +octeontx_dev_info(struct rte_eth_dev *dev, + struct rte_eth_dev_info *dev_info) +{ + RTE_SET_USED(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 | + ETH_LINK_SPEED_40G; + + dev_info->driver_name = RTE_STR(rte_octeontx_pmd); + dev_info->max_mac_addrs = 1; + dev_info->max_rx_pktlen = PKI_MAX_PKTLEN; + dev_info->max_rx_queues = 1; + dev_info->max_tx_queues = PKO_MAX_NUM_DQ; + dev_info->min_rx_bufsize = 0; + dev_info->pci_dev = NULL; + + dev_info->default_rxconf = (struct rte_eth_rxconf) { + .rx_free_thresh = 0, + .rx_drop_en = 0, + }; + + dev_info->default_txconf = (struct rte_eth_txconf) { + .tx_free_thresh = 0, + .txq_flags = + ETH_TXQ_FLAGS_NOMULTSEGS | + ETH_TXQ_FLAGS_NOOFFLOADS | + ETH_TXQ_FLAGS_NOXSUMS, + }; + + dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MT_LOCKFREE; +} + /* Initialize and register driver with DPDK Application */ static const struct eth_dev_ops octeontx_dev_ops = { .dev_configure = octeontx_dev_configure, + .dev_infos_get = octeontx_dev_info, }; /* Create Ethdev interface per BGX LMAC ports */ -- 2.14.1