From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30061.outbound.protection.outlook.com [40.107.3.61]) by dpdk.org (Postfix) with ESMTP id E7C511B404 for ; Tue, 26 Dec 2017 10:30:42 +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=DF2tPIoT42fVNYkGYBYTXEd7iBpOlrwnIk78Rly04GI=; b=esEe/2ygg/B2kdvgp8sWErZ3dcktSHoqXNjBw7CnX4LwD7n6UgDLwgT6D9StgzNiSPAcFMnEXxewkXuvNwrB/ES++gCt8hwm9+gN8yx2x38k3wzVlLSN+/lXHRID9birAGU3JQmWc6nQOARVTsQvjwSD+sosRycMp+jQ+PObqNc= 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.345.14; Tue, 26 Dec 2017 09:30:41 +0000 From: Shahaf Shuler To: dev@dpdk.org Date: Tue, 26 Dec 2017 11:23:30 +0200 Message-Id: <40a753dfb7a0d323c187ec09e581d0bde6c51995.1514280005.git.shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: AM5PR0102CA0023.eurprd01.prod.exchangelabs.com (2603:10a6:206::36) To HE1PR05MB3148.eurprd05.prod.outlook.com (2603:10a6:7:36::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f13fe391-91ce-4fda-54e2-08d54c435504 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(48565401081)(2017052603307)(7153060); SRVR:HE1PR05MB3148; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3148; 3:FbhKaMdzBJXv7ZCS7l61dT/uJwDiUU2VclJfv5lcGsqK5ceOFoJeoR7HfiesmaO4qrDNIFTZ3vVfpmx/oKkrxzaTzQXFp7hbiF+sBLiSTyyfgPfyY5Ulq34tmqDomruY5A5YzTS87atu6p5DL/qe0x7+9ZtEFL0G550Dehpz6m5F0qdbSM560J0ILV4biRpRF558gUVntHS7EMZasqmwLP9nNa2GzkrOC0kri+GkgXJIHH05APNkjnhuyiaG/N8v; 25:l0jynGWKtyVgxvCRp/6x06cp/UNv2UxYMU4G9iYHRpDj7y4R0DGNxbPbTNT01GoAWVV3ZDXBJZJMJqGH8g02YQqlhzY/CHsACtUowdIVu27T1uB1OSpYGkyOt3ztIxl4piIAEPw6wZX5PleMdmsbaQjG3o3tIXSBxEIK3sCekTECDaVVCGyETGT3jA4hlemuK3wYJ3rw70ewqh22WGnYNpRWTQ5eMZglxYAond52Qg0ssgT9o5KY5OkPYaPeFcs5mgDLaDMtyQMqNyCAXyeUDHvbeOaI0Qczadc1fIW4GTZy67tisqnykgZKh60J8vO6yW7LsBgDbMCY5iyD2rtujw==; 31:fuqeBBjUPWuj5YZ7Km4UFisH2rZKeG08qWX8VY84mrUqNIDop7AUBoZcfP77my/aJJC/onAM78GbagBBgtrGSFWFh1XO4YZJ8P3opjPWduKFveiXI/iHmYmQDfjRKZA6iZ2qqcRZ1mYl/fuNr73QwFKO1V6J0llUTHz7JnS0GckBt+4gozEM4NYQw2AUoX0qehyVUWimwd8UX5ZBUuCygULz7hy1TAYFyvxZAA56s/Y= X-MS-TrafficTypeDiagnostic: HE1PR05MB3148: X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3148; 20:2vdlcS91IOdS1tkTgBG/4e7Dnow3L9vzXrwVCVjuOVEeCe69wM38UBJwiBnEcKWO27vzBfZ+Qz5W2sxfyAUfy1CtACuI6pYKeE34EIxOd1QLh3g8DK1WeilXMRQjbyyzJpFIETwi2QbwYXue3UhTtjHPmsR3UqfaxeCqgxBDFKpQnlFcIJuuMpbSewkUW9hjJGY1qKx5ZCPr+epwGLG+4ETKsG55xLnHsawhlz8JidgaCqHxzCXzZZEC6hkUWymb0juI0KVfjLphynDEKcYw9FV8sVQ4Cf8gimUuNvNncu6PuTwgiTPLIicwwk3Nsw858JBQp/RyyLob+9tqP6VoCI+w5rzAPU6BeSUt080xa1LkcfYXrcM+8N10VpRnSzihRe3zxf1I5pL27xGZroLHxITUfJBi1cgqxtrqBlVgOelHLPc1iJJOputOJYgYOvwQjNG5srJZ0/VdJuo0e5H9EGAoBSFRAVyHkvfGYQg75OqMt4ZATjB8YDACDMsv5ArO; 4:CXxDwochwdKxZava99Zqlnj1TChcu0wZUvM6RTKgLwE9MhNJlGOKX5FRIHenCT9ok5wqAyQit/UPzDHdWlDbRCmRFefkqyKQW/s1M54xvDkBzdm2m1lBbqeMmSPkHf1obKPTdEUWwLXBVRfSdNdnTIn0iOlH5ANs6zF4O356IuZLtUrf/c51SGhSrrzRh/cgZc1X++NuBjgT+g5D9LkzrWjWhoIC7LGELjg2P/5msrr9H4qhfeKyAzLxQxwylovWyTEuxg0Py2ks1xCGMKKTFQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231023)(944501075)(10201501046)(3002001)(6055026)(6041268)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR05MB3148; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HE1PR05MB3148; X-Forefront-PRVS: 053315510E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(346002)(366004)(39860400002)(199004)(189003)(50226002)(118296001)(47776003)(66066001)(21086003)(16526018)(5660300001)(25786009)(2906002)(97736004)(3846002)(81156014)(81166006)(6116002)(8676002)(53936002)(2950100002)(68736007)(6916009)(36756003)(386003)(59450400001)(86362001)(69596002)(106356001)(16586007)(478600001)(48376002)(76176011)(51416003)(7736002)(6666003)(316002)(55016002)(105586002)(33026002)(2351001)(8936002)(50466002)(52116002)(305945005)(2361001)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB3148; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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:m3tKf4vHDMFsd5um6UOgpeiHGcc4sdJSjtpqaz9gZ?= =?us-ascii?Q?0DDAixepKoLls5aL74YSxv+juDJRVN2MM7aQf12R6gm2r9lZXqfiyN8CmtaT?= =?us-ascii?Q?9yR30a1IVq5aRjn9OredO+BVSi4dw+tIMYgmdWL/ti7SM2PqZ4cX2uyZmrmT?= =?us-ascii?Q?1Ix+GymGcXK+o2RTI9z9ded6rc4azrj/hqY4gEZ/zst0EULLDIfrJjAT83Vc?= =?us-ascii?Q?iazi0I3n3AY1bX4hopwzneTsSqi0LJ6nV5zvEqX1+mGNTI0Vp5H0R+TPXus2?= =?us-ascii?Q?Ds8h77ZVHJg7tKNsDylQGDiMB8C60oexuSBfrpPm3i7ck46wQ29bfxnXrJol?= =?us-ascii?Q?79tkbIsL5tbM6N8w8Gbgxo+hiKNfI40Xa5LWJzBAxU468snzFwuHKr+dOUDA?= =?us-ascii?Q?81lsIVSgzSQZYA86tiv6ugUBha8UMkjjtpDo8nLv/0ECRyCwIiXW3Z1BaHnU?= =?us-ascii?Q?wmO4NbGblwmmVHr/TaKeLgXK0Wb+6qBKfQvMIfXRQGC+5KLAlY00O6mTdomB?= =?us-ascii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8I0suNFOXE7/wKpAughcoruJUMREazr4DCUi0X3iIVHyGsY9loJGjrgSTeuomN/UbMDQk7JrDfBUimCy9QcadbtwHa72GHQ9KgKRXclWzpWvZnmhYlJRcMR864xweWbRZjFp0TMsgclwrCpupOx8veQUO3s1NkFyFd4TFISvihuMNOTIc=; 5:swTb0DC7voASIMfw3EdzXmPbeH2NXxrlKEqt6ZbB8I5GhggfIZ3sCgD20fa+be5xmvkW4E3b8miok6R092IKbIvUbBKaHeW/3RhcKG0sVkO4c+mnLE49tnMQHybRA+YiE/+ngbAZPU0hO26yDwU8jTq7G5chPKnkpxeIiXfd6g0=; 24:seaG2G7H2Dby8qN8t844XMbxw5pxJDlgMZ4IzRQEAePhNYIBKgLyI+RgVYO41uAk5OQ971NLRD3hWgYOn1V+Ho0txcE1zO8EkoFLpEpslUw=; 7:p9yrEvWbCSgi6BTGTyJ7/qCKvmo7IM6pFm1VmI+3DIcIFNRzG89bveSbhefb8JHcEAsSqTddcY5ZZU212Z6+ADj78EFJCLtmwcC6kPEwDj25eb2MJ8EuF9JQR4+CsJu9APuB3pM24AkSIxYO3jgzrYJ25J5kY85EIGk2F+b/mlsXSbiTEK49tYsQiKzuuWiGbQr3NPAwBXpjYW/6nMkTIe7sZ524odCm1105olY62Yr07bfRgw/1ZYAg3QumQjan SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2017 09:30:41.2535 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f13fe391-91ce-4fda-54e2-08d54c435504 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 v3 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, 26 Dec 2017 09:30:43 -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 bbab2f6e6..8a1a5f34e 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" ); -- 2.12.0