From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBBD7C3ABDD for ; Tue, 20 May 2025 08:18:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 907D9404A3; Tue, 20 May 2025 08:18:14 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Gaable7KqQS2; Tue, 20 May 2025 08:18:14 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0EB1540535 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1747729094; bh=DvQD9v1EHgV8NaZ11TbsyLxZwm51rDEbPM+UjpQqVlw=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=6Qp3WmV4gKaJGr4/LfZEkbiozYST3VhwB+I7EJEY39baRlAyelEBp6mv0hkWu4sj/ ni5zpuRUxlvu7BFxjf45o5w6T3WsW7T87cPovVPUJXBJd+3IGgwxBZywhkrwmaj3xM XhGDPIAIRqhh/PJA8SDsPaYR7sDMGSBwFD4VGyr2sqkKJUiuMLSsdnE5AEENZYOWUk 8WFRG5eQeNY4mW8asc1jlJbJcmHOZ2hcOfXOJFMm0MDxJTFlHBCBfrLD8j4KLgs17f NTpTlqQETIll2eWpBQMPjDmLLu5KlSgtCprxmivS/QDAVKhVg/mzYW/WFF0HeKEOtq PHMj+JShP96Ig== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 0EB1540535; Tue, 20 May 2025 08:18:14 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 3A2EC193 for ; Tue, 20 May 2025 08:18:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2B7CD60709 for ; Tue, 20 May 2025 08:18: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 ZXXu8NTpB8d6 for ; Tue, 20 May 2025 08:18:11 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=horms@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 8744D606D4 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8744D606D4 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by smtp3.osuosl.org (Postfix) with ESMTPS id 8744D606D4 for ; Tue, 20 May 2025 08:18:11 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 2D7FA6113B; Tue, 20 May 2025 08:18:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E95EC4CEE9; Tue, 20 May 2025 08:18:06 +0000 (UTC) Date: Tue, 20 May 2025 09:18:05 +0100 From: Simon Horman To: "Abdul Rahim, Faizal" Cc: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Faizal Rahim , Aleksandr Loktionov , Chwee-Lin Choong Message-ID: <20250520081805.GR365796@horms.kernel.org> References: <20250519071911.2748406-1-faizal.abdul.rahim@intel.com> <20250519071911.2748406-7-faizal.abdul.rahim@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250519071911.2748406-7-faizal.abdul.rahim@intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747729089; bh=DxUlgsmpbHBG24D6cBXEt3QLKoVyinm5hyxvuANQBJ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N4rJiZxpyaAUKheOAiF5N9P6A+d4PF5BLYLxvu78HXSt/w+yUQE1ANBhp+xiVe5ek bRX49Ev1BYl7Se75jUAuoyte6F8jKak55wVCwq7UqJmSz95Dolv+rpjg38YNxKWC6B bvbGd0PV5t8CENWcSvz2LFiWsoMAN63MRcHALwg+b3cGZ31Iwj/rYzWMdkkejlddOD JAI1cMN+WZkyqAGBbvd0/wwdUdz6gOOyGni1PgOr41VkjkiwEFSKf5uAzyu4Ao6hU0 KDifMpAQjC7O/Oqio2S8bngB7gTugyJvgTNhFi0aYYbnv4PeNYPiZp3hly7T+hBTzh pRGSz+855cF8g== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=N4rJiZxp Subject: Re: [Intel-wired-lan] [PATCH iwl-next v3 6/7] igc: add preemptible queue support in taprio X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Mon, May 19, 2025 at 03:19:10AM -0400, Abdul Rahim, Faizal wrote: > From: Faizal Rahim > > Changes: > 1. Introduce tx_enabled flag to control preemptible queue. tx_enabled > is set via mmsv module based on multiple factors, including link > up/down status, to determine if FPE is active or inactive. > 2. Add priority field to TXDCTL for express queue to improve data > fetch performance. > 3. Block preemptible queue setup in taprio unless reverse-tsn-txq-prio > private flag is set. Encourages adoption of standard queue priority > scheme for new features. > 4. Hardware-padded frames from preemptible queues result in incorrect > mCRC values, as padding bytes are excluded from the computation. Pad > frames to at least 60 bytes using skb_padto() before transmission to > ensure the hardware includes padding in the mCRC calculation. > > Tested preemption with taprio by: > 1. Enable FPE: > ethtool --set-mm enp1s0 pmac-enabled on tx-enabled on verify-enabled on > 2. Enable private flag to reverse TX queue priority: > ethtool --set-priv-flags enp1s0 reverse-txq-prio on > 3. Enable preemptible queue in taprio: > taprio num_tc 4 map 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 \ > queues 1@0 1@1 1@2 1@3 \ > fp P P P E > > Reviewed-by: Aleksandr Loktionov > Co-developed-by: Chwee-Lin Choong > Signed-off-by: Chwee-Lin Choong > Signed-off-by: Faizal Rahim Reviewed-by: Simon Horman From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6534E25E83D; Tue, 20 May 2025 08:18:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747729090; cv=none; b=aPhVFkmffvWwpG9lOSfE12r3L2eD5PrVPXNBujX0SFF5oD71ls3ZzRq4XNgybHiCqOX80/Fg/IAj6xp63w4ZWSmzR4QZA6132Eam3S2ryRBTs7BZG7Nd3DZd3t5cMdLxSQy9o44cpR/LXgi+T0Fdtvr97DPweVFBlQs2nZjG73I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747729090; c=relaxed/simple; bh=DxUlgsmpbHBG24D6cBXEt3QLKoVyinm5hyxvuANQBJ8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JNdh1WG2EAZ6ZAX1vLcuZNPcTZ8I1T21U/o1puSB1A/RO9oEdPZEbgpJ0BIJLiHml/j9a5P9fCcT/LpDisFPbT6glwNc0yjfTKOUv7453u8bVpAhKiN7o8ebZEjbMzsXLbdGCFZAiOhSOQINoVB1VnZGy4LTiOSby+QuQQmcNG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N4rJiZxp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N4rJiZxp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E95EC4CEE9; Tue, 20 May 2025 08:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747729089; bh=DxUlgsmpbHBG24D6cBXEt3QLKoVyinm5hyxvuANQBJ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N4rJiZxpyaAUKheOAiF5N9P6A+d4PF5BLYLxvu78HXSt/w+yUQE1ANBhp+xiVe5ek bRX49Ev1BYl7Se75jUAuoyte6F8jKak55wVCwq7UqJmSz95Dolv+rpjg38YNxKWC6B bvbGd0PV5t8CENWcSvz2LFiWsoMAN63MRcHALwg+b3cGZ31Iwj/rYzWMdkkejlddOD JAI1cMN+WZkyqAGBbvd0/wwdUdz6gOOyGni1PgOr41VkjkiwEFSKf5uAzyu4Ao6hU0 KDifMpAQjC7O/Oqio2S8bngB7gTugyJvgTNhFi0aYYbnv4PeNYPiZp3hly7T+hBTzh pRGSz+855cF8g== Date: Tue, 20 May 2025 09:18:05 +0100 From: Simon Horman To: "Abdul Rahim, Faizal" Cc: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Faizal Rahim , Aleksandr Loktionov , Chwee-Lin Choong Subject: Re: [PATCH iwl-next v3 6/7] igc: add preemptible queue support in taprio Message-ID: <20250520081805.GR365796@horms.kernel.org> References: <20250519071911.2748406-1-faizal.abdul.rahim@intel.com> <20250519071911.2748406-7-faizal.abdul.rahim@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250519071911.2748406-7-faizal.abdul.rahim@intel.com> On Mon, May 19, 2025 at 03:19:10AM -0400, Abdul Rahim, Faizal wrote: > From: Faizal Rahim > > Changes: > 1. Introduce tx_enabled flag to control preemptible queue. tx_enabled > is set via mmsv module based on multiple factors, including link > up/down status, to determine if FPE is active or inactive. > 2. Add priority field to TXDCTL for express queue to improve data > fetch performance. > 3. Block preemptible queue setup in taprio unless reverse-tsn-txq-prio > private flag is set. Encourages adoption of standard queue priority > scheme for new features. > 4. Hardware-padded frames from preemptible queues result in incorrect > mCRC values, as padding bytes are excluded from the computation. Pad > frames to at least 60 bytes using skb_padto() before transmission to > ensure the hardware includes padding in the mCRC calculation. > > Tested preemption with taprio by: > 1. Enable FPE: > ethtool --set-mm enp1s0 pmac-enabled on tx-enabled on verify-enabled on > 2. Enable private flag to reverse TX queue priority: > ethtool --set-priv-flags enp1s0 reverse-txq-prio on > 3. Enable preemptible queue in taprio: > taprio num_tc 4 map 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 \ > queues 1@0 1@1 1@2 1@3 \ > fp P P P E > > Reviewed-by: Aleksandr Loktionov > Co-developed-by: Chwee-Lin Choong > Signed-off-by: Chwee-Lin Choong > Signed-off-by: Faizal Rahim Reviewed-by: Simon Horman