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: 1966262 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=55H4evWq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WXyDv5Vdvz1ybX for ; Tue, 30 Jul 2024 11:24:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5181840AD1; Tue, 30 Jul 2024 01:24:14 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id pqFQST3zcffa; Tue, 30 Jul 2024 01:24:13 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 438AB40A87 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1722302653; bh=rMrqMjgfpB+dCu7xew6DVLs0ImGq1mJGCFFWO37D8w4=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=55H4evWq+LMcZOf+oDkOozW1fR3AajYZfZCLgDWN7DOpUteoZeXfYa7/EAGUkn1HX /NKZrk3vPFXnw+kdWKXE6kWEy/7hGhUWwfW9THD6GCOwXIOIQZPE5+ZbJv6CkXsGp6 1ADmKZ4Z+oTXL5o2/OraD+/H+0l4bFzWx7uJykcQUEDThgB1zIBQijXPNhjM5qgJ29 d1+tg9ag+Cb7VviZvLTDa9+bjYe7zswzwqIvCg3t87BvN8UwUJahP61NDh87KORufp 7XbFedPUv6BWcmXTX1tlpaMcSCHtTt8IFCjD9ysLZ60QAzulS54RPnt88LYg3vvH6D 4FMUPuPaVlsjg== Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 438AB40A87; Tue, 30 Jul 2024 01:24:13 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C52E71BF414 for ; Tue, 30 Jul 2024 01:24:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B34B8608E9 for ; Tue, 30 Jul 2024 01:24:12 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id XeO7ckw9vpIV for ; Tue, 30 Jul 2024 01:24:12 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=198.175.65.10; helo=mgamail.intel.com; envelope-from=yoong.siang.song@intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org D671B608E8 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D671B608E8 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by smtp3.osuosl.org (Postfix) with ESMTPS id D671B608E8 for ; Tue, 30 Jul 2024 01:24:11 +0000 (UTC) X-CSE-ConnectionGUID: 9ofF7Y2LQK2i976ENR1XqA== X-CSE-MsgGUID: 51pXLNMlSqSIMe+oa7PACw== X-IronPort-AV: E=McAfee;i="6700,10204,11148"; a="37570476" X-IronPort-AV: E=Sophos;i="6.09,247,1716274800"; d="scan'208";a="37570476" 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 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 MIME-Version: 1.0 X-Mailman-Original-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-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=H+lS1/99 Subject: [Intel-wired-lan] [PATCH iwl-next, v1 3/3] igc: Add default Rx Queue into documentation X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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 =======