From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0077.outbound.protection.outlook.com [104.47.2.77]) by dpdk.org (Postfix) with ESMTP id 88FA4200 for ; Tue, 12 Dec 2017 13:36:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5iieaO+3GREh3n7+A5zJ9jSaXCxohXQEo1nLG+jua/Y=; b=YznUE7yf1xUNYryo7pt0ycSi+umaPJChcDxD/m59GO+jHFprJxKPsgcR+DL4vNHurNmPrxx4hrStrtPCG3jVHzV4tUUsvPSgNbd+wWde6pJLdKTgGr5AtI9/abQjGfE5bbvmUO/cZQD7St0OE73JgCLY0QIugLFDw8LS+ws35eQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by HE1PR05MB3148.eurprd05.prod.outlook.com (2603:10a6:7:36::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Tue, 12 Dec 2017 12:36:02 +0000 From: Shahaf Shuler To: dev@dpdk.org, konstantin.ananyev@intel.com, radu.nicolau@intel.com, arybchenko@solarflare.com Date: Tue, 12 Dec 2017 14:35:24 +0200 Message-Id: <8a0326aecb40a17ab0a5a38b0d292ae2a72e2811.1513081088.git.shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: References: <20171123121419.144132-1-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: HE1PR0102CA0051.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::28) To HE1PR05MB3148.eurprd05.prod.outlook.com (2603:10a6:7:36::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c9d7ee7-6a33-42ac-6f61-08d5415ce806 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307); SRVR:HE1PR05MB3148; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3148; 3:76B+lMmbmw+gV1UiUFEiZQlzptje1L6ee9D+WwHOvcnLMaQRDlWXd/kqky4JydlvIlv2o+8JaEkmzlzNRkUu+8yE9sW/EL9NzeC7T1/yGZzuzom72Qw0Lace3HUny+C653bn/rbM7e3XlNIfxODZyiI72oqEuyKnYEAcdytVjkeE/aZdSIjIN3jtG6mZqCg3vSZxrUzjN0PTWuakPFSwbk/A7zQG+Am7rD0RWpBNnUoLFu0BZCA70GuS7LGWzSWQ; 25:qpExZW78rd28A2itakj26Irss0ScMUUoMrDEH5Iy0+xElI1FH9dtqDtHgGJkgtu9uL3gLdOaKp5+WWqI6FoLtAu7jiVcF66VzXTM22F1QYfLAd71Yj9drl+kfcimUUrNmU7n2XOzZJR7Y2wPoHO2aJl3hevVVdjrH8ue7xN+lqH/VccJgfwiZRieoEU+OzSJdT/odzqexYaoZRQzYbQWHe9vkCocC7VaJpmWEYKnLCoCmuTENypLGdrkjCnsYdbi4mmyHwiBI0oS16PjRyPkVWQ+y8K3vgvzl920WgbZNV3pQCR0Sl88zZMUmCgCho7k25ZXrV8W59c/oriylHteF/G7UbBvJKqvavMxBqt8PGY=; 31:cwaHwXddiSlYgg4BtmO2dAYxAVi5ZhmttT060xzRTu8HnVrJPUtvbT/PRHALrtxr3ZU14Y1TeZNETc3De8V65ULAAkhfMm70JVAVNsKiW9YcwP7pvmATMJsHyb6NH76PV9CBENz6J9vWnBNgrPEkZ2Sm4IvZTxuxxhcFi3nFl2ctzz3YXr396A8UI2jwi0t++IZGqsXh8nmFXvFZ/AfMnXKWCkmV38oXjf9dsO6EVns= X-MS-TrafficTypeDiagnostic: HE1PR05MB3148: X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3148; 20:vbBx8wXueTmp+ivY9nGcoBxXyhBCNHuoDWRN/bEt3xLjmjD74IdHI5KVFddfIX4mG+1qrgRWe/U4VZsNJT8ezlonzXar14sQF9nvPyChebOWavvx1CWgOMucVoVuiFjcxIqpXZKINnUKflweBUEYKI3A55o0hRgCV8z+HsOmtPw/w0BZd4EYi8gNDeUMf96m5Rq69zXNa+O7y4mg9+bmT/uiv9L7W3jmzi7ftuG+KZwXA96jPsCpw+e7UEFaIR5bBH1SL8nKLFRKVrcYpcNePGAu7Iry1m8hXAZQ7OPCGi6uuc9scVAHun9a4jr9/MJPRAw55Q0yx7/gmHux4c3MGrne3HtVZKF6CsE4HnZomkX+ihLqBd5KKx8Z0o5ttgYOOWlfUowLJyo4dNQB93haJHZ1fNNH60ffrIQPUhr8q+bTrT1vzfpg6JwHPmTDHOfs903AAwnvuFBpBOJ1iWs8oWUChenEUoo1KHTvTpkmh8RLEH4a7VwZ8LxV+ErZhKbg; 4:Q0ZSwyoF3jnYi0PsNZiUdqDvJUpZg0WT0Y5uzRQYK6qobHU4Wb84K1mT+ROd2piupapSN0kUvNV/xR4/0bxaxJ1zvuatEf8NSXmG6LjyRPmwF9Yryy4sCI9gJ7Aqe6Ef7LperxhjCdeA0k4fvbpd1xDB23mSvkWF6gvzhmJGuVtVRCOJezDnXqiIKHvMZ72qrNmH4i5vYI8a2MThuu+PmSizvnPsnczmOkZxSamBqNU8/iwNzBW2QnFCo2pe/sdBV6eBbn7Kxv5sKid83KGozg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(6055026)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR05MB3148; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HE1PR05MB3148; X-Forefront-PRVS: 051900244E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(376002)(39860400002)(189003)(199004)(25786009)(7696005)(52116002)(305945005)(316002)(51416003)(97736004)(47776003)(2950100002)(5660300001)(66066001)(7736002)(8936002)(16586007)(68736007)(50466002)(48376002)(16526018)(55016002)(6116002)(3846002)(86362001)(105586002)(21086003)(106356001)(2906002)(59450400001)(53936002)(8676002)(6666003)(50226002)(81166006)(81156014)(33026002)(69596002)(76176011)(36756003)(478600001)(118296001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB3148; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR05MB3148; 23:uRhMYvaf9QKSdrrQkVKq0qpzPeYglpbzS8yKAdxqp?= =?us-ascii?Q?FulYgjGU7mjRwIbSippFDjdOB4JKYPoXwNZL+Ns9otCuIRt0Lz5klu7yKNzV?= =?us-ascii?Q?YfzoWAB7As+lbEuGph88LaLW+DjALIS0sM8QXn6MTn6qC5ddjDtSKfI2I3Vb?= =?us-ascii?Q?z2y74QcV5u/V3AEtHrcTnyWtDGweRHIjuV0c6fNVTtjoE3DoJ9ZeGgoFjpTK?= =?us-ascii?Q?iYxs39PzFuDSc+CJ9CG/KGmInyzrom2+gXF6wEHWuUE+LiVxij8/IU/rk5vu?= =?us-ascii?Q?GNTWzhd6gPFqLF2c0LblXPLO0tIM5elF54NygulZnJGazx32jDNyQKZceNT9?= =?us-ascii?Q?EVFjzJumFE35F8d+UyiCUh0LvMIT+hEeW1xFhvkEF2tLWqRGaXn6Iq8d6ljI?= =?us-ascii?Q?iSD1DH/geo6XD+mzb9RNWYNhup/vyhW93NWx+KPvJxaPW208l0Gr8eOIdnr1?= =?us-asc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tmCfMjDCbVyZMEkv0icWEQF2CO2dZT8+6D98uEX57+jg8dE96gGUFsF7QGt8H/rOyalUilip0Se3QxjMcXsbpKwp0=; 5:JGV7/+upzf7tURU9GThIrpaSfgn4I2NiC1gdSfLV+u27w71tg4JRvbWuT+1IGW8wmtTl1vPofyaV5/5QcTmpvbdWCFxJ8Vvwqm92TQgW+fk70V5SR40aYmDHB3qKEUTssXDPeBX3mZlNs3dxIFWl0Wb0quEAYHBAYEML1WmOJfc=; 24:cUX923oXErpOMJ8pOEbIjwYfYAQ/057sjxuyoNt52kMb5dgrH2H893YItHjhE1zAqlpCHK4evrn1tgYa5+4oaaXk2U7lat3ZbEI9nfWh7PI=; 7:fLwO22EoKREcTmtUHuSbPX40ThQCzvQYs8t6KLTEBu/7nBWUBQ1oI2vjX7e95j8YeoEmRywJJozCbFACI0V5KL6rZ1q4DgXpGZL9oXBXdCm+BOCISK54+DbwgurKvZauWwcCbP4i/IA5xcBtH7YPIfmOhz7tWgBJyuK124tygbb3fM1jOoJugQMoApApGmhHaXhy/E5FoX0L0JTGTkkIWkPgA2Hpzs901kYPaL7BcQK07cdWwA0Ysl2V9dc+ceVs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2017 12:36:02.2075 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c9d7ee7-6a33-42ac-6f61-08d5415ce806 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB3148 Subject: [dpdk-dev] [PATCH v2 31/39] examples/ethtool: convert to new ethdev offloads API 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: Tue, 12 Dec 2017 12:36:10 -0000 Ethdev offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new API. Signed-off-by: Shahaf Shuler --- examples/ethtool/ethtool-app/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c index bbab2f6..8a1a5f3 100644 --- a/examples/ethtool/ethtool-app/main.c +++ b/examples/ethtool/ethtool-app/main.c @@ -124,9 +124,11 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports) char str_name[16]; uint16_t nb_rxd = PORT_RX_QUEUE_SIZE; uint16_t nb_txd = PORT_TX_QUEUE_SIZE; + struct rte_eth_txconf txconf; memset(&cfg_port, 0, sizeof(cfg_port)); cfg_port.txmode.mq_mode = ETH_MQ_TX_NONE; + cfg_port.rxmode.ignore_offload_bitfield = 1; for (idx_port = 0; idx_port < cnt_ports; idx_port++) { struct app_port *ptr_port = &app_cfg->ports[idx_port]; @@ -160,6 +162,7 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports) &nb_txd) < 0) rte_exit(EXIT_FAILURE, "rte_eth_dev_adjust_nb_rx_tx_desc failed"); + if (rte_eth_rx_queue_setup( idx_port, 0, nb_rxd, rte_eth_dev_socket_id(idx_port), NULL, @@ -167,9 +170,11 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports) rte_exit(EXIT_FAILURE, "rte_eth_rx_queue_setup failed" ); + txconf = dev_info.default_txconf; + txconf.txq_flags = ETH_TXQ_FLAGS_IGNORE; if (rte_eth_tx_queue_setup( idx_port, 0, nb_txd, - rte_eth_dev_socket_id(idx_port), NULL) < 0) + rte_eth_dev_socket_id(idx_port), &txconf) < 0) rte_exit(EXIT_FAILURE, "rte_eth_tx_queue_setup failed" ); -- 1.8.3.1