From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0051.outbound.protection.outlook.com [104.47.36.51]) by dpdk.org (Postfix) with ESMTP id 732CF20F for ; Sun, 1 Apr 2018 08:04:25 +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=FRtVyYa4uIawyK7HQ6MH3Qbr4cWZv9bK9Vo6AFZM5LY=; b=bYMGeZ1UrP4XBDp9HiDuY1FCcah9+L5hLrG/HrIUjQiQy5EnY6YgCD3cdLqWIT0S7d8+tJBq4yriUo08NzsukpQy39iZmg/K/1Trd2ckvvN7qaJtX8xmXWoXM/buCxjfxmjYCAbeh7WtWKlRcnyW9pld+1dQJBZ2dM9vEjP6Ej4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasesh.Mody@cavium.com; Received: from cavium.com (198.186.0.2) by CY4PR0701MB3665.namprd07.prod.outlook.com (2603:10b6:910:93::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Sun, 1 Apr 2018 06:04:23 +0000 From: Rasesh Mody To: dev@dpdk.org Cc: Harish Patil , ferruh.yigit@intel.com, Dept-EngDPDKDev@cavium.com Date: Sat, 31 Mar 2018 23:03:45 -0700 Message-Id: <1522562625-16248-1-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [198.186.0.2] X-ClientProxiedBy: BYAPR01CA0022.prod.exchangelabs.com (2603:10b6:a02:80::35) To CY4PR0701MB3665.namprd07.prod.outlook.com (2603:10b6:910:93::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4db40d13-6492-4078-c19b-08d597966afa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR0701MB3665; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3665; 3:mXUS/pU3h6SIzuMQRngcQVWKVFiwhn3HykQoJURuotZPPzQUSiIV7f0j7vRQIkAdSgksI1ytpGLGKsB6yVYnyXqsOi6hJkXNxFWdVrxvSux9qA1Le8Er2ljNSE+C8Ivfb7Wcsk9V5MK71FlIJG9WvbVP2tCtUf+y3VcOrlm7yYv9JT8QpzUhiWBe2halVXDzIVuqWjh1x9Q8fhCrYQ/gboYY9oSQvEEjJ/aXQbNOGpHlHEzg2oAPoex1dR2Twi0m; 25:+/NP2iZSBA/JUEQmg49e6U5ES+B6CNXiAiOqSWOMSB9K9dgQ9QW9xeSmfmzAJ1/ifPyCLkqiI5p6QjKXsHvIIGM7VI/zAuCapGURvws1mZMdSO3G+npRba2p1JNKWtUblX7Tb7sZ7ODJ6sdWOGaESijLLbcFD6OzkIrwNE6/cuu3fjGa/p2UsPLFJ7z5zRkwsZWeXHxOUq2wssBG3XON7ieJH+WiobUCwaxq6RUc9X4Z6Ikp8w/m1ueBcQ9M86Tkr+2NknalGut3/1JvGTZx4y/mIGR7A5bhLq2/DagdvTIoeopUDFY9GPAi818sQZ7XBwkTbjG/5OJw9BqBGSo18w==; 31:1N5uryuzVuzJ0F175dnkR/LRthpZRyIZq5GNNaVdpbnOr3FUUTjdYcU1WKHXnA3eGlC9oNq0sOmcOE/IGZT3cxeVhakilKCCtC3QyeR67BXBzIvzOhJwI3tmGMzi4qNeutqvTaO+12fEdNHlDaL5nVjxB7D37e6r4q6HijT4vP86/LCWy2ty/TPugkCyeZxm8//zteZ+X2dr5gP0+XOy5LOfCLXGI2gAeRmnP/lvcXY= X-MS-TrafficTypeDiagnostic: CY4PR0701MB3665: X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3665; 20:gXGbbqaCTMEx7qUUWwnZtKE8WSnxzSeFka5dNFLihTqj0nANoqOHv7dIG+/WJorS4pnAJnx2JRJ2xoXhi5HRURU1hiRTuL6f6gEL1QNoX8BNLVrdsroSmDn5bwUY7FWbqygflmnYbYDOOddyX94eRi0ag9aOYtoN6pFI6otPAvX4fgXFE6SOcIj7mNqHovJTd0ALzvx5lO27gMecqfMCSL5nRXMVqXWSjaWSZEpf6Eo0xxUI73gEH7EbTEgJDVlXWmDO0rQIdxfReD37ULbY3r+G1t9JLehFg4GZxY8K7RDZLFKkxxV5NZo44cMBF81OBwCAaBQQTHoS6ysU6lJffPJFdily/MUxZ/VXfGy2cEMYH/qRnu3rjfxbA0alFkrBfAOfmQGKOJVys8VdM83Z4ePj5zvUJx8LH7E22H5B4P5CznAlWVNGv7mFypZm2q4tqpsIuuTyPCpnzAHc+yifQ42xvZJmJuvPPvJd2N6JD2G4r+ovni8rF/2Wm5ed0UmQ; 4:Na6iTeiuiiWkDFZ2ggMK2OSOCZkg+lrk1BaUFS5/patgs8DKxIioKgQHcFTAqjDrAT9jvVSKtYkUNTjD3Js6yVLp9ud4eh7Yy1mhREez9ZgH4W/A9qtM4/SX5H1ywa3Yyp0T3mKE6Au+vE13AD2Bm42kQaIhVb94DlUonEhAT3y+v7mrGhqBGS16ARSkUwWbFFpcp5myEkt5VQ3SErx6/TG8GjZj0qIGNRXLdrov8I5HuwKPzHQEVZBd5QuvlgTdAEn6lqNh6us3EueYX7+TAg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:CY4PR0701MB3665; BCL:0; PCL:0; RULEID:; SRVR:CY4PR0701MB3665; X-Forefront-PRVS: 06290ECA9D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(39830400003)(366004)(346002)(396003)(376002)(189003)(199004)(16586007)(2361001)(316002)(2351001)(68736007)(26005)(16526019)(186003)(106356001)(105586002)(36756003)(55016002)(4326008)(7736002)(305945005)(2906002)(53936002)(50466002)(6116002)(3846002)(48376002)(25786009)(50226002)(107886003)(21086003)(69596002)(72206003)(478600001)(8936002)(8676002)(81166006)(81156014)(52396003)(6666003)(5660300001)(4720700003)(6916009)(386003)(7696005)(51416003)(52116002)(476003)(59450400001)(2616005)(97736004)(486005)(486005)(47776003)(956004)(1857600001)(66066001)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR0701MB3665; H:cavium.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR0701MB3665; 23:2qvFX1VglnpI7NLN2eZ7WpMpnyHKmoTAe0nouSf?= =?us-ascii?Q?348AuNDTDRr+CPde7P1pXAhaFqAdDOeIzONvBp70IL+XSexVUtKF+2VURQo/?= =?us-ascii?Q?du/YdUimkfqE4xddvMAikS1Dh0ScBcmh7UwScXenimaQjY0JVf09Ah+up0GK?= =?us-ascii?Q?7Evqez+BfIo6gLSfXuhc7Ls2aFwrIGc99udVT5QRSHyotkAAKWFETRx6namU?= =?us-ascii?Q?PUuXBTZrybrNIuUKAzkM5hdUt+6XNz/yHhRr1cfui3EflHg6XrqCz6PUCRJf?= =?us-ascii?Q?gtO9MlUxKmu7E5TKT874uixiAecRQ44l36yBTnTpTXzUjANn72M1GvJTV/v/?= =?us-ascii?Q?X3FLos/7hPjCilJwUwhclN/M7oIFiCrfMy++EQUZKSJcWbpBsKKnAe9aG5he?= =?us-ascii?Q?6EoMW220V3aY6ILlmnFkpInXKgCrcHEbpAnrjttTaUL6X3Er2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Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3665; 7:fbPxy6yfVLZFVru+eTXT6LayoCix1VK/uQf7u5FdUjZYAjv/35GueFzpuNl1dfXKZ8dFdnf4B6pwm+TaPha5TvbvsLIPKKVB/S2giyFcDSvyjBZkBH5UCzhBVUyYL8JVJQGyWzX5YXAYuNlVT4xqaJJczN0L6EwrX8XY0yHN0juesKdZxoh5FewBGjXnL8Ie8NU9YAJhPbP0jyFWEXJbnYOlmAKQE6o0XwE3IwF9jJnTydn5uGT+bi/Hy69a5Id9 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2018 06:04:23.6028 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4db40d13-6492-4078-c19b-08d597966afa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3665 Subject: [dpdk-dev] [PATCH] net/bnx2x: convert to new Rx 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: Sun, 01 Apr 2018 06:04:26 -0000 From: Harish Patil Ethdev RX offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This patch makes use of DEV_RX_OFFLOAD_JUMBO_FRAME offload flag to advertise jumbo frame support. Signed-off-by: Harish Patil --- drivers/net/bnx2x/bnx2x_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index 483d5a1..fada4bd 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -140,11 +140,13 @@ struct rte_bnx2x_xstats_name_off { bnx2x_dev_configure(struct rte_eth_dev *dev) { struct bnx2x_softc *sc = dev->data->dev_private; + struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; + int mp_ncpus = sysconf(_SC_NPROCESSORS_CONF); PMD_INIT_FUNC_TRACE(); - if (dev->data->dev_conf.rxmode.jumbo_frame) + if (rxmode & DEV_RX_OFFLOAD_JUMBO_FRAME) sc->mtu = dev->data->dev_conf.rxmode.max_rx_pkt_len; if (dev->data->nb_tx_queues > dev->data->nb_rx_queues) { @@ -454,6 +456,7 @@ struct rte_bnx2x_xstats_name_off { dev_info->max_rx_pktlen = BNX2X_MAX_RX_PKT_LEN; dev_info->max_mac_addrs = BNX2X_MAX_MAC_ADDRS; dev_info->speed_capa = ETH_LINK_SPEED_10G | ETH_LINK_SPEED_20G; + dev_info->rx_offload_capa = DEV_RX_OFFLOAD_JUMBO_FRAME; } static int -- 1.7.10.3