From patchwork Tue Jul 30 01:23:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Yoong Siang X-Patchwork-Id: 13746176 X-Patchwork-Delegate: kuba@kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D07DBFC08; Tue, 30 Jul 2024 01:24:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722302653; cv=none; b=nbj81oA76YftAsDaOZyF0pkaT+FzAw9PSJ2Lk0C+Z6TAQhX41res0g4XxYewtfz9/qlrdZZBK9/lRc2ZwSxocZhH5I0YZrVrz/vLio5dfglSJGE6iZXUvhwTDGxq/SPmED/AiXmNVnbPv2u0HjSyVj+kyCcDZKKRNQl2pfbAH04= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722302653; c=relaxed/simple; bh=YhJyeBx1tD5AH76gIDYJrjbuR9IYaY+3oVHeXbhIfYA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=B59SlV3tc9SiPYy4T4g2O8Cj/zjt8NvaeXKA15QbM21nRjs0Aras4FLVic8RFQdVX9/O3RBdBiwude5HlEhTtX9hLd3omllkZpYz5F62eQwKL8wGrAt5OhQf77vk3275vKi88pwYTRYEU+W+1E5GOx0rC+IUypbt3Kzf7IsIHw4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=H+lS1/99; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H+lS1/99" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722302652; x=1753838652; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YhJyeBx1tD5AH76gIDYJrjbuR9IYaY+3oVHeXbhIfYA=; b=H+lS1/99PihQlSzjQ5zoEjH33vMab0+3rpqk9+uDM9JIggXb/97ie5SH a03ASclU9QzG6GEL7IVbD+62d+TXYi4a+eREHJ9+tjYI34zSSGVZJ7APY GeUSUSEGheRSbGIGrow5Tmu+b7IouB/JbjcFXm+PpN4V67od1RKdBDBYN 8kkknHI5QuXyydrw9WODGGykNxqswFDsKjbpS3wBrBNTpWSGt/4o/QTqi Bs8t3gzvUu/JOWxJqmfrCsNQ1ddduIYT/unT6o5R1nK+/YvFDoLvZKS3i 1Qty9xD+yzgVwIbKqd/z/Y6Qasz51pBtyY+ZpiT5RtdZpufi24Sv+8YNP Q==; X-CSE-ConnectionGUID: nr8Sz2ikTvWLKMfqG8fyVg== X-CSE-MsgGUID: B+S3TruzQhWrc2nrgUbmKw== X-IronPort-AV: E=McAfee;i="6700,10204,11148"; a="37570471" X-IronPort-AV: E=Sophos;i="6.09,247,1716274800"; d="scan'208";a="37570471" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2024 18:24:11 -0700 X-CSE-ConnectionGUID: /FPKSomRSZms2Q7Lz1hWig== X-CSE-MsgGUID: VapJBZ7LTF2X5PXthe6Lhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,247,1716274800"; d="scan'208";a="58947896" Received: from p12ill20yoongsia.png.intel.com ([10.88.227.28]) by orviesa005.jf.intel.com with ESMTP; 29 Jul 2024 18:24:05 -0700 From: Song Yoong Siang To: Tony Nguyen , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Vinicius Costa Gomes , Jonathan Corbet , Przemek Kitszel , Shinas Rasheed , Kevin Tian , Brett Creeley , Blanco Alcaine Hector , Joshua Hay , Sasha Neftin Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH iwl-next,v1 3/3] igc: Add default Rx Queue into documentation Date: Tue, 30 Jul 2024 09:23:36 +0800 Message-Id: <20240730012336.775912-1-yoong.siang.song@intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Blanco Alcaine Hector Add description on default Rx Queue, including the get and set method, into documentation. Signed-off-by: Blanco Alcaine Hector Signed-off-by: Song Yoong Siang --- .../device_drivers/ethernet/intel/igc.rst | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/networking/device_drivers/ethernet/intel/igc.rst b/Documentation/networking/device_drivers/ethernet/intel/igc.rst index 08b2cfacc7c0..bef396d9ec53 100644 --- a/Documentation/networking/device_drivers/ethernet/intel/igc.rst +++ b/Documentation/networking/device_drivers/ethernet/intel/igc.rst @@ -63,6 +63,27 @@ diagnostics, as well as displaying statistical information. The latest ethtool version is required for this functionality. Download it at: https://www.kernel.org/pub/software/network/ethtool/ +Default Rx queue selection +-------------------------- +In Multiple Receive Queues modes, ingress traffic may be redirected to specific +Rx queue based on different programmable filters. + +When none of the filters is matched, the incoming frame will be redirected to +the "Default Rx queue", which is Rx Queue 0 by default. + +For configurations where Queue 0 pair is used for high priority traffic (like +AF_XDP), this may not be desirable. To address this, the driver provides the +option to modify the default Rx queue via sysfs. + +A sysfs attribute "default_rx_queue" is available under /sys/devices. E.g.: +/sys/devices/pci0000:00/.../default_rx_queue + +To check the currently configured default Rx queue: +cat /sys/devices/pci0000:00/.../default_rx_queue + +To set the default queue to a desired value, for example 3: +echo 3 > /sys/devices/pci0000:00/.../default_rx_queue + Support =======