Message ID | 20231212142752.935000-1-aleksander.lobakin@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7760139vqy; Tue, 12 Dec 2023 06:30:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyJyKpRDoUXabjBeimRcPO4a0OFlQFcYUpVt1bRhlI+aYEl3TmflhjlM43Gh2FNgSwLO0J X-Received: by 2002:a05:6358:7296:b0:170:17ea:f4e4 with SMTP id w22-20020a056358729600b0017017eaf4e4mr7551214rwf.49.1702391407908; Tue, 12 Dec 2023 06:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702391407; cv=none; d=google.com; s=arc-20160816; b=WnyZe8D6/N4HP95wt/NGc1f+WSpbDrZPMCSuq4hVceYaUJzUCEHC1+7AlypY6WTFvp K0NogmG6O/7egS1jHsr3EehjgfmV5wsXTVx6sn3FWso8HrY6hbeyfVis++Pk1KmGS2Gh iutnFBS2deATGIh9rktY1Ien6ac7zTGlV1zs4ANPOdj8l/qzWkppGnswP2SQWY4MvJVF ecei+reILCeaM2QeQMxppn9ftP1+Wq+3gDKH8dsJky1m96ds27TsL2OTJo/MxwyEAtLm wvSR3GXY16HxQ05OO6zAdi+QiFsq45ehsYa8XZ03uuyUdr6/6I2ITeVC5taiQEix8peM iKVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PlgD8hB2+zNW4aQBq5V3MbrvRShR9JXZ+owO0VYrfaw=; fh=EwMqise1xMM1tPrdItjL1KUuE75eRF/IfSQLzRFVBzg=; b=VWYAKPhimq5fHUTFm7hx/G4g80nfnB1BVQTXhIyn3CZDCVKAwW6d6tjZQZVsyMQyrP q3f+GG/E/QUYsHL8PAJOfUDMhZNRDV34xTsYY0D7wjMXmgeXrell0BlQLbwizyWGpXQ4 gjn7FhyPneBWTqOC2Dffmsina+mrUNUsK2MaZp/d3/MDQvdguun5QOybta6fHYfBWbah Ux2+3hl4/KmRTMehcApttDY/XsqD9K2pfSRNe3yK4mFxYrCjAALQ4bdV4dDqF9W2JeGp X+8YCr53JuJat5CC63NC2f1eSNYRWRTfoKhWQfM8bMRiCMfjbhMKr+JeCN/mMLK1PKsZ Dckg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oIsr77O5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j23-20020a635957000000b00565335587absi7880611pgm.802.2023.12.12.06.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 06:30:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oIsr77O5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 28321804E6B5; Tue, 12 Dec 2023 06:30:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376803AbjLLO3o (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Tue, 12 Dec 2023 09:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376605AbjLLO3n (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Dec 2023 09:29:43 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACB4CF2; Tue, 12 Dec 2023 06:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702391388; x=1733927388; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xv2qt7/sAoWAEZQgV2h0LqG0rMAj+aEH2dHkRRXSC5I=; b=oIsr77O5j0zkwxlUXfDleZ0ccRz9XLOqxGfnqREsWGHMMg4/LbmZVOIs fx284UHlddnwenHpMAdGh4xUFSoUZMWuDHM6G3hcoX4B/EDVrSv4xR84I S62VDRsyamvIddYj8EsbvNLJ5q6MTmv48AX3FFrG7JK/NHFm7g/8oWeXb kRwTW0UweVcZtVG4kCsHi1cUrYUyaPmtF/qbm1cxl5MJeLrfTOtvKqhiZ xoWFEXvfIcFsl4Wrw2f2QknZ0d6zqUA2fkeNy2qT/VNflQvEMvdexuLHm ABbipL2jpSqOwxYBsE/4ULVVrS/sfCpBAAAUjsol3hLqQNqNZAtumehEV w==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="1887329" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="1887329" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 06:29:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="1104923742" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="1104923742" Received: from newjersey.igk.intel.com ([10.102.20.203]) by fmsmga005.fm.intel.com with ESMTP; 12 Dec 2023 06:29:44 -0800 From: Alexander Lobakin <aleksander.lobakin@intel.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Alexander Lobakin <aleksander.lobakin@intel.com>, Michal Kubiak <michal.kubiak@intel.com>, Przemek Kitszel <przemyslaw.kitszel@intel.com>, Vladimir Oltean <vladimir.oltean@nxp.com>, Andrew Lunn <andrew@lunn.ch>, Michal Kubecek <mkubecek@suse.cz>, Jiri Pirko <jiri@resnulli.us>, Paul Greenwalt <paul.greenwalt@intel.com>, Tony Nguyen <anthony.l.nguyen@intel.com>, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/2] idpf: add get/set for Ethtool's header split ringparam Date: Tue, 12 Dec 2023 15:27:50 +0100 Message-ID: <20231212142752.935000-1-aleksander.lobakin@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 06:30:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785086772770942834 X-GMAIL-MSGID: 1785086772770942834 |
Series |
idpf: add get/set for Ethtool's header split ringparam
|
|
Message
Alexander Lobakin
Dec. 12, 2023, 2:27 p.m. UTC
Currently, the header split feature (putting headers in one smaller buffer and then the data in a separate bigger one) is always enabled in idpf when supported. One may want to not have fragmented frames per each packet, for example, to avoid XDP frags. To better optimize setups for particular workloads, add ability to switch the header split state on and off via Ethtool's ringparams, as well as to query the current status. There's currently only GET in the Ethtool Netlink interface for now, so add SET first. I suspect idpf is not the only one supporting this. Alexander Lobakin (1): ethtool: add SET for TCP_DATA_SPLIT ringparam Michal Kubiak (1): idpf: add get/set for Ethtool's header split ringparam drivers/net/ethernet/intel/idpf/idpf.h | 7 +- .../net/ethernet/intel/idpf/idpf_ethtool.c | 11 ++++ drivers/net/ethernet/intel/idpf/idpf_lib.c | 65 +++++++++++++++++++ drivers/net/ethernet/intel/idpf/idpf_txrx.c | 12 ++-- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 2 + include/linux/ethtool.h | 2 + net/ethtool/rings.c | 12 ++++ 7 files changed, 104 insertions(+), 7 deletions(-)
Comments
On Tue, 12 Dec 2023 15:27:50 +0100 Alexander Lobakin wrote: > Currently, the header split feature (putting headers in one smaller > buffer and then the data in a separate bigger one) is always enabled > in idpf when supported. > One may want to not have fragmented frames per each packet, for example, > to avoid XDP frags. To better optimize setups for particular workloads, > add ability to switch the header split state on and off via Ethtool's > ringparams, as well as to query the current status. > There's currently only GET in the Ethtool Netlink interface for now, > so add SET first. I suspect idpf is not the only one supporting this. Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Tue, 12 Dec 2023 15:27:50 +0100 you wrote: > Currently, the header split feature (putting headers in one smaller > buffer and then the data in a separate bigger one) is always enabled > in idpf when supported. > One may want to not have fragmented frames per each packet, for example, > to avoid XDP frags. To better optimize setups for particular workloads, > add ability to switch the header split state on and off via Ethtool's > ringparams, as well as to query the current status. > There's currently only GET in the Ethtool Netlink interface for now, > so add SET first. I suspect idpf is not the only one supporting this. > > [...] Here is the summary with links: - [net-next,1/2] ethtool: add SET for TCP_DATA_SPLIT ringparam https://git.kernel.org/netdev/net-next/c/50d73710715d - [net-next,2/2] idpf: add get/set for Ethtool's header split ringparam https://git.kernel.org/netdev/net-next/c/9b1aa3ef2328 You are awesome, thank you!