From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0058.outbound.protection.outlook.com [104.47.37.58]) by dpdk.org (Postfix) with ESMTP id 15A181B730 for ; Mon, 9 Apr 2018 07:37:58 +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=D9OPM3gQq8h5e15SRx6uOR+OZCNxE7Xo/kx79sFvUx8=; b=Oox2giQxlCKSCzqftAEYQzIrruF30GVXauJWD8Q7Yoa3eG5QfMX25E5nPWAGmdCwyew7gFDDOZor94ZmWyjN0QHMBE1HUkhP51BM/ZhZjQnGc+B73zI3F+N20bvDDTFLROt5lKg7GgnCPLZFzpWZIDOdDUcxFFNP32ETsNrdE8U= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasesh.Mody@cavium.com; Received: from cavium.com (198.186.0.2) by DM5PR0701MB3669.namprd07.prod.outlook.com (2603:10b6:4:7e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Mon, 9 Apr 2018 05:37:55 +0000 From: Rasesh Mody To: dev@dpdk.org Cc: Harish Patil , ferruh.yigit@intel.com, Dept-EngDPDKDev@cavium.com Date: Sun, 8 Apr 2018 22:37:41 -0700 Message-Id: <1523252261-8830-1-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1eef7193-10ee-66ac-cd7c-fb767c8fafaa@intel.com> References: <1eef7193-10ee-66ac-cd7c-fb767c8fafaa@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [198.186.0.2] X-ClientProxiedBy: MWHPR19CA0016.namprd19.prod.outlook.com (2603:10b6:300:d4::26) To DM5PR0701MB3669.namprd07.prod.outlook.com (2603:10b6:4:7e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91c8aa4d-f491-4e36-3e9b-08d59ddc0bef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:DM5PR0701MB3669; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3669; 3:Nzjxv8Lhw8rcnwwDgV4A5p7O2dU173hbg6TowAXp1LnNYfGwJ2P1CO5nYZf/iMBloYcTiw3uOCZrkkqmP9krcTQa6+F2PPCL8TgLMq4GBplwGi2TK3unD7YXAf22o8uqSAikN58+pKgrwemQkcUCPZHCb2g8ezF0apvvKlY5bAQqv5MYim+q8ec3LVxZnmFS1pa8cqL7PfRRG0JC+cUrNVz5MYXnPhqVE1xpH0ZfCiPtn8mJAwJOuBw3/hNG6AVp; 25:/UHa7PFYNraPRaumAHeu6pdFlsSAyzqTru2VonERCI8uKrhJk8ITZ3y5vHyCpr7Tlzz9N38Frkm8XKJYZfEeujQ/s/g/vM68XrbFMnbyE7yM2Uz/dHUeFMFycVUKx7s3iw3UJTpSfDTVZ7G2jHGb3TLLLiNLXTvEJryWr4kN5b3XcDkPRLSDthGamoqGv26EGxqk5WF4tPluzMoI/r5Tgp+oV/hLpzo7OV10IMX1Atl2Lo6TH47r08vQzoh060/UszPFbNNYTlrvDwLk5g03I0O04Va2X4owwNkF5BBzzyR6+6aBg0cD+lZUfW0QhmJIvxEaKz9KtBkSsV+hfGz4uA==; 31:L4ZklVR9bZ7rDUYXS1QWDttXLR4CawGoJJx2apH5NgrkC4xC8LQH8SQtTKhamjv4ISsMQx6Ep+WWv2994vK0X7h7VKCnIrPB4KBCpJvTNqCDNUASSE2MZiNIlbp+xYL18elcpGIO26UHgqWVcAb/eFEO0TL2FlJEaeFJOTqJEg4jCV4AAZcyaLrssbPGA+US8tIwEh6c/EQt7rpRf/xJA3DYTZSwxRsPOZL6YCg/Hjg= X-MS-TrafficTypeDiagnostic: DM5PR0701MB3669: X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3669; 20:I94aHFEwjIJFfzRL8nxFNkwgJtpk6q1ZAelVlfKlwEEoOK9SmAaxiv+WdpQvdXAyl9qShU3qAlAPtE/I8IbhyK8BztwiFvGBWeS7zybI69Nl14G8Sgu0hIvXRrWrQ3I6HIwQh/TZDJKc3D7qnuHTHoZ3YEUgoZCDXErP5tHLXFPa3FLOQ9SJ1g2YS/dgLcDrrh+JwhmCYVtSVj/a1w99euiNtC+A8RiINot9zhxMBFRaMgRH11nHFFBhV9XZnfcL9lCZRQ82V0UUhm6xSSL407+sxOAg89uoZuLy6M/ICCFMDvv9m5Ah9fNlj7N4QKnMm3JdVX14N2WgedWhBLVYtVpzERo/IE0H5Ll8faYXcC8JVrhcdhwxNySXlCneWnZxGFK1GxdApxfjk2RceQVa9jocW4mLVAl6/37EYXmQhdOFxVWO+dnLdKVgWLotwWj0rzr1pPJkLCyxHPUviEQSGDaWhRwFYPFQlh4qlnxRmG9JdZkgPPrrcllJBk9yhTKY; 4:Oj4IrxWUi4/3rnwhnNqp10KDBoGxdUfZRTvyu6Wc8FiGZikAaskNkJl9olzHts2f4J9f8adLjfunaOET8fGwJYW3HH/YDYEv3/nxNlKjjSRCk3kmx6NNyf4OBxhYF4/p/xyuMfSNa4glmL4YTwEebdI9ytkuyAKdOkf3rTenVlExdxWmbfYFe0TkWuKC56Ws8V/5z2WWB1EsPy9OQ42uLNvYanOIyBnUDXYaE44qs6T9v3CFJk6f1XYlxp0QqpBDQytY5VZjYZAdcS2y8CicCg== 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)(10201501046)(93006095)(93001095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR0701MB3669; BCL:0; PCL:0; RULEID:; SRVR:DM5PR0701MB3669; X-Forefront-PRVS: 0637FCE711 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39850400004)(396003)(39380400002)(366004)(376002)(199004)(189003)(8936002)(446003)(2616005)(486006)(4720700003)(55016002)(72206003)(956004)(52116002)(7736002)(5660300001)(21086003)(106356001)(26005)(53936002)(478600001)(25786009)(476003)(50226002)(8676002)(305945005)(107886003)(6916009)(81156014)(81166006)(6666003)(11346002)(6116002)(36756003)(97736004)(76176011)(4326008)(386003)(86362001)(2906002)(59450400001)(51416003)(186003)(3846002)(69596002)(50466002)(48376002)(16526019)(7696005)(47776003)(2361001)(2351001)(105586002)(66066001)(316002)(16586007)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR0701MB3669; H:cavium.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR0701MB3669; 23:CMFGQfw+L92uF2HDwnpZyiMP0MnZFbwMhG4x+J4?= =?us-ascii?Q?0o9oHzLfQBk8cw7STvX3XSgxqttYUsQbaTYIrlmXQl97uxcHOl1PgNOjDB9W?= =?us-ascii?Q?ClxaTL9yuJwDmumYDECJiGps6RWgOYh7mctLNXTv88Q6A7ZyFuEYcC4xCDJo?= =?us-ascii?Q?7dqhDhVZh/ipwMpg34/6Y9oRM6TSEqZHj+ZkrVgOiaBV5XxRxJU1tw5nMHkQ?= =?us-ascii?Q?k70xu3U7biTN/Jp14r/lP93M4kaAbA/qtfj4nKoaNf6elW73yNe2QD+0B94K?= =?us-ascii?Q?VjkMFD94+CqXeCWkTEkX+KOiFgoldbtv20fM8Gu0lmDVFFVUTOYMLH8HgMUV?= =?us-ascii?Q?o/d5a8+a54WjYVnv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xdCBW0c5KuZ0gbU9Ka6n8lejxQLjC+Rs+RGpIPXqqliiJAmCJbfxJ3MWCVxbkok6JDPuj1k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3669; 7:Z0N1NPTws91r/k0OvuYFJZnnPbvLFR2ky8nH4i7gL2+x8r/g+NF+rdRcMoqVNHhn1/9djfqfsJ6zD+EniVdTZtLZdFiTgOjiHDViuiV+JHZYvFUoax4xUV2t9HshmHnybfST7lhUGrfbIrefNig+HUsksVlFIbCYXlpkgsZYL6HpHZAbaqY1PR23ODGhivGOyeyKrVsuV9Q2RQ/g3MHeFTXtHAnP6cIUv5L52d7r8Z7k7vUFO3ewgy0TIbGcJU0V X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 05:37:55.7325 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91c8aa4d-f491-4e36-3e9b-08d59ddc0bef X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0701MB3669 Subject: [dpdk-dev] [PATCH v2] 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: Mon, 09 Apr 2018 05:37:58 -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..934d87f 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->offloads & 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