lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250115174204.00007478@gmail.com>
Date: Wed, 15 Jan 2025 17:42:04 +0800
From: Furong Xu <0x1207@...il.com>
To: Chwee-Lin Choong <chwee.lin.choong@...el.com>
Cc: "David S . Miller" <davem@...emloft.net>, Eric Dumazet
 <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
 <pabeni@...hat.com>, Simon Horman <horms@...nel.org>,
 netdev@...r.kernel.org, linux-kernel@...r.kernel.org, Vladimir Oltean
 <vladimir.oltean@....com>
Subject: Re: [PATCH net 1/1] net: ethtool: mm: Allow Verify Enabled before
 Tx Enabled

On Wed, 15 Jan 2025 14:59:31 +0800, Chwee-Lin Choong <chwee.lin.choong@...el.com> wrote:

> The current implementation of ethtool --set-mm restricts
> enabling the "verify_enabled" flag unless Tx preemption
> (tx_enabled) is already enabled. By default, verification
> is disabled, and enabling Tx preemption immediately activates
> preemption.
> 
> When verification is intended, users can only enable verification
> after enabling tx_enabled, which temporarily deactivates preemption
> until verification completes. This creates an inconsistent and
> restrictive workflow.
> 
> This patch modifies ethtool --set-mm to allow users to pre-enable
> verification locally using ethtool before Tx preemption is enabled
> via ethtool or negotiated through LLDP with a link partner.
> 
> Current Workflow:
> 1. Enable pmac_enabled → Preemption supported
> 2. Enable tx_enabled → Preemption Tx enabled
> 3. verify_enabled defaults to off → Preemption active
> 4. Enable verify_enabled → Preemption deactivates → Verification starts
>                          → Verification success → Preemption active.
> 
> Proposed Workflow:
> 1. Enable pmac_enabled → Preemption supported
> 2. Enable verify_enabled → Preemption supported and Verify enabled
> 3. Enable tx_enabled → Preemption Tx enabled → Verification starts
>                      → Verification success → Preemption active.
> 

Maybe you misunderstand the parameters of ethtool --set-mm.

tools/testing/selftests/drivers/net/hw/ethtool_mm.sh will help you :)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ