🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9899

Re: [PATCH net] selftests: drv-net: pause: Skip support tests without link autonegotiation

#9899
From: Mohsin Bashir
Date: Mon, 02 Nov 2026 16:58
29 lines
12434 bytes

On 10/30/26 1:12 PM, Andrew Lunn wrote:
>>> Or maybe a bit more clever, have a quick check to see if the device accepts
>>> an ethtool -s XXX command ? looks like fbnic will refuse all of'em as it
>>> doesn't have a .set_link_ksettings.
>>>
>>
>> Yes, checking whether the DUT accepts ethtool -s is one options. We could
>> reuse the existing autonegotiated and forced-link attempts, and report SKIP
>> if neither allows pause checks to run. Alternatively, we can add a remote
>> arg to require_link_autoneg(), default to True, and pass False for this test
>> so it checks only the DUT’s autonegotiation support.
> 
> There is a subset of pause configurations which don't require autoneg.
> 
> ethtool --pause eth42 autoneg off [rx on|off] [tx on|off]
> 
> These can be implemented by a device which does not support
> autoneg. These setting go straight to the MAC. They are never
> negotiated.
> 
> 	 Andrew

Hi Andrew,

Right. The autoneg setup and MAC pause checks need to be decoupled. Let 
me respin the fix.
Technical Details
Message-ID: <ea9e29df-6f3a-4f98-a08a-d7efbee2ce9a@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354962-linux-kernel-netdev=dewy.ru
References: <20261030173516.1002250-1-mohsin.bashr@gmail.com> <701c6f7e-e715-4647-bddf-48a1485afbe2@bootlin.com> <7cd99851-5bc0-4db8-a44c-a664c3f824b1@gmail.com> <2efe9f61-5a04-473e-bb57-12d2779ad829@lunn.ch>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354962-linux-kernel-netdev=dewy.ru
From: mohsin.bashr@gmail.com (Mohsin Bashir)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] selftests: drv-net: pause: Skip support tests without
 link autonegotiation
Date: Mon, 2 Nov 2026 08:58:49 -0800
Organization: Usenet Network
Message-ID: <ea9e29df-6f3a-4f98-a08a-d7efbee2ce9a@gmail.com>
References: <20261030173516.1002250-1-mohsin.bashr@gmail.com>
 <701c6f7e-e715-4647-bddf-48a1485afbe2@bootlin.com>
 <7cd99851-5bc0-4db8-a44c-a664c3f824b1@gmail.com>
 <2efe9f61-5a04-473e-bb57-12d2779ad829@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3015968"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3UzAxpAOXYfCWd2OYettL22/uW8= sha256:JK8gjFpdZNsfd4RgpWcihpcSwLK5R+yaYirmB9OoQqQ=
	sha1:plneP9rJu2zkx8nZPqQEMWNgN6I= sha256:j/ORS+zQLMPPxa7mSGuPtCsf3RmPhTI0ylZzChg4KFY=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 8F30511264A; Mon,  2 Nov 2026 22:45:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DFCDfF4-E1vD;
	Mon,  2 Nov 2026 22:45:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-354962-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 4E9FD11261F; Mon,  2 Nov 2026 22:45:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id A5E98164AE2; Mon,  2 Nov 2026 17:31:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793638738;
	b=ujg9w6X9tZvTYW5ogh9CMxwGVmWzYFOOGvIYm5i6wORlgrMUxTiKuzInbOYeMMSF9vds
	 z8KCErAR+QOq6c1SBmhfMVpw1cnSH4ygolmm65nylrIXwdBzkx1uOtP0OdhYIZNOsGqZp
	 njK6PFU+WmNuKaa5p7NjBsMDJHO2tD57/bl0qhYdrkij3nyXlDaiXaIejmRh2vjWQYtj4
	 5izmCmdNhdoPSaX+eO4otEwbeH5cKn8d5R2qJmPovF5k9UcLGTSOrSqMjas2HU9v/PRiQ
	 kmi8GeCxQs07iGDdPhTzaWpPLMB2QODeuVdTaP8FjOJkpK8fJWXmo0IzdhAFRzHiSdQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793638738;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:User-Agent:Subject:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=a1UEizqhRrALzFHTNmQJUTSrG4L5xUZaP4W7alKZj4s=;
	b=a7TxcNXEILTY+zT+NL4fGhVZUQUyD2n+aQVYOZmVLrm05shGDQ1p4lJwZ9b7GCC/qDdn
	 6FJy3GU99ccwoRHpIw5svKS700pRZo7qlOaDC9+7DstTOtSegV4USMVDRsvfYwA0zCFor
	 PrRRgTN/EXavcOS+z/jR7TAe/nUCqlhfn3dVSFD3Rj6Rl3gRcnybjWKRUUKt1ITskNnyw
	 0TUwErcRWgVi/96gCQqT2+0CncxFl1W7BqU3HSx1GdnJITYVIaZDyeqS70S0VZrlls/V4
	 K1WZu6vReDGo8gToMsG+hBdzXjLszO8sGHSN38X3eFrb4oyLJzChPUHPsOdchsGK6qw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YxufiMKy;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 551D5606EE9E;
	Mon,  2 Nov 2026 16:58:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YxufiMKy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.173
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793638732;
	b=0eT241oRPNOAOWr6ryb7Z2uVBYZRNWgniRAR5AHQ2N+wYOuuv5l51XmIgqprTHVGSZ4B
	 jzGpNpm27qnC4izmQAj4908QSv1TF/itSpQ/OZq75laGt4QnxDf0rSOiiUIaYIdU9BFk9
	 eGYO14c2eAym1OcXKA2MB+sjAnmEo4UVvlpGkI/V+dMVzffcD8j2ad4yvgRPowedbBNFh
	 Vc5frWeFY5SwRpK1lzjQhB88dqPq2tFAOlMda/o4mYoKYNtNBCZK1v3p3H1gXajiDRaut
	 VZOfj3p2PWOa201z7LD97pFlvKzepGQgcSbSyme4FXx0UCuvARI/cO3hXxIv8VG6zzg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793638732;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=a1UEizqhRrALzFHTNmQJUTSrG4L5xUZaP4W7alKZj4s=;
	b=RpGEAhqnnXmpGV+EdK+P7rqaoLx0q66RNDg5pWt2xcyLsySWdGk99EqEt1gBkV8uVmnz
	 NO4JmhAgaVpKT7SwxWO2SmqnEFvutlzAai3NPL8fzSt5HhddYtKgMl7frLtE4+rs5JJgn
	 q70pFyYRVG+R1Vh99uO0+lYY5AuMoteifSykdziehlhkYHOlkAX+vlNH8Xcs/9VxjkH8w
	 65hfUx2T0br+EbMAE2ZYSwGaorQjErwLA3CxheOV+zEeIsqC/BxuIv2QnUaYlVXY5gy0D
	 24JsT7zeRL/8750z7hBVB5tey9u7IhZriOLPNGFyYhH6UNag1ifNARRNo3aOJvxuj8A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=YxufiMKy;
	arc=none smtp.remote-ip=209.85.214.173
X-Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D22A606A5BE
	for <netdev@vger.kernel.org>; Mon,  2 Nov 2026 16:58:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2D22A606A5BE
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2e96502e447so30031495ad.1
        for <netdev@vger.kernel.org>; Mon, 02 Nov 2026 08:58:52 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793638731; x=1794243531; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=a1UEizqhRrALzFHTNmQJUTSrG4L5xUZaP4W7alKZj4s=;
        b=YxufiMKy+5T6HFI/woya2krFgptqtHLbGe3rwyLWiQZMTCIIxkoLbaDFYuinTxnDFQ
         jBNeRWpghfgUamRChITph1viv7GFidy9xg4+jtJoiBRdR8InNlMfCI05jOIRCkoqALPK
         GpA8ByvN7M6EL+H3AZZh2427QyqKSXxkbrSYxWIa2YHY8mR4wdniz25s+VrHilKMecZ5
         iN+88ridw0KG+e9+ILMExg7wzeDWazL5ZXxTMlsM1iO1815PwMqxV/JXNb9drO1a7Kqb
         GgJoT13jzZAsjaZuixpDgSYbCxuTuKN0hLBCDqQjivoCOgZsS7uIJh5fm89oD2UbzlHD
         fVsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793638731; x=1794243531;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=a1UEizqhRrALzFHTNmQJUTSrG4L5xUZaP4W7alKZj4s=;
        b=QPmIy600n49wpT3RrCeGUSWCINJ5dlRLQNlSRRMzaiVpci2IhRFninCDtwLP/WAd42
         qLitbK0DNepUipmKHCXFpE52QXBnUqzGf6ijjCzIHr98rnqpGegZH8nDqvSbQLYHOSXR
         awuX4BWff9HHCCiFmPLSbPqF1cHOP/bgP5ZikuF/dgzLX25WIH7CRSdEsdcVqA6UfzSP
         TcC42LyG75mpufkQ6XaTPfEqhInao9LuhDz+oIBnR3iU1vcK1YX+Cjqq1hLuDKf+Xr1o
         DiKpAu1TLrJmNjPdH2neO29sE+6kGXUU8/IdRI0LIt6KkNXg9Wz3ECWyT261RBQkU4Us
         rWIQ==
X-Forwarded-Encrypted: i=1; AKwUvBwxMBHOHHvENrbGqrUzodizbnJilYOgs0POllE5ShyuLNqCaxR8xlCR1L2VG4HiGPWpVpN9YYY=@vger.kernel.org
X-Gm-Message-State: APuU4Z+/e4Rnj+31+qoF9yYxay8m3YdcY3DVD8qEzXzHbSSWiJHus7mZ
	pNc41FXh/Izeqb2uVS5KGWFlbK22dwKdm+aZo9tG8aSuDzK18QnwiOpL
X-Gm-Gg: AYBFou0PVRwA56UayAtzszhbelnbSNq+q/z90Qf6ptiuMXBOe06u+rK4O5jh9/lUKIH
	PPHL4uHFMmllEdhoxrTD0I2p/mnUpmapX2gR2GYsBf+BXvwVoXjD/u68BY0GeAhyD3YvBKaRi9a
	jQXDQ47IxCN98SWSrclaZqlHLfkMZiWKiwyoKANS9pjvrgQjtuFgNaP264ni6hjqp7LF1zR4AoN
	VhVEdAZLMRDmtgJIhGfyXCoImHf7LSyip431wXCdDKHtV3KgFJNRzGqasm6o/0FwulybN+u/k+G
	jpemsLb2+ReCRmhB+BshmVt7pGYkQwXQmkaPYcikc8cQbfF7sMe7kqfeI5Ybu2nXfzS/iORoL29
	yYMOsrccKoFt0/nWS/kJvxbSnAFkUW4VKeMDhKvKRbqVwBPwesmXLF27OwItgI6sVla8n9KF9SN
	6X/NQ4dOeLKh1+362YlTxpHPl0PQOxzPfa15Ct63nZofyf+gm3LLEgf4juWc3pyR3d/gsYHhxYh
	Wmczt4pn3BwoA5WM1bck/CAoDN7CemxflcebA7cBNLuqlqqXly1evwP3fQLgPBWT9Lng2WANm1f
	wGGWyS54G5rTdd9gBK1Ejy73XpYx7iRMHZzt2KuiiPcl+tJfgpy6AVrfwmP2jjp9o0lNrKDzzyw
	=
X-Received: by 2002:a17:90b:570c:b0:3ac:8897:7ba9 with SMTP id 98e67ed59e1d1-3ae8985d52dmr9637264a91.56.1793638731557;
        Mon, 02 Nov 2026 08:58:51 -0800 (PST)
X-Received: from ?IPV6:2a03:83e0:1151:15:c56:221b:35d5:85f? ([2620:10d:c090:500::4:97ab])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ae85d24261sm8776807a91.0.2026.11.02.08.58.50
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Mon, 02 Nov 2026 08:58:51 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>,
 netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
 linux-kernel@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org
X-In-Reply-To: <2efe9f61-5a04-473e-bb57-12d2779ad829@lunn.ch>