Article View: linux.kernel.netdev
Article #9017Re: [PATCH net] selftests: drv-net: pause: Skip support tests without link autonegotiation
From: Andrew Lunn
Date: Fri, 30 Oct 2026 20:12
Date: Fri, 30 Oct 2026 20:12
21 lines
9298 bytes
9298 bytes
> > 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
Technical Details
Message-ID:
<2efe9f61-5a04-473e-bb57-12d2779ad829@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353902-linux-kernel-netdev=dewy.ruReferences:
<20261030173516.1002250-1-mohsin.bashr@gmail.com> <701c6f7e-e715-4647-bddf-48a1485afbe2@bootlin.com> <7cd99851-5bc0-4db8-a44c-a664c3f824b1@gmail.com>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-353902-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] selftests: drv-net: pause: Skip support tests without link autonegotiation Date: Fri, 30 Oct 2026 21:12:38 +0100 Organization: Usenet Network Message-ID: <2efe9f61-5a04-473e-bb57-12d2779ad829@lunn.ch> References: <20261030173516.1002250-1-mohsin.bashr@gmail.com> <701c6f7e-e715-4647-bddf-48a1485afbe2@bootlin.com> <7cd99851-5bc0-4db8-a44c-a664c3f824b1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2308233"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:MudF3Z4GHdfjvyEUq51ruTr2rIA= sha256:v8tmmBwBZvMyS6JsqjTmBrnwPJEEEcorzVyRJclLBlk= sha1:wCQiP5aSxzrxXLIzpE9d3BH6boQ= sha256:2sBYxs9YmItrBNH5z08JbxYf7MUXAJ87BU+o6rxIiSI= Content-Disposition: inline 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 3F7EF125CA6; Fri, 30 Oct 2026 23:14:21 +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, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 o4rCQk4-ec-3; Fri, 30 Oct 2026 23:14:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353902-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id BB04D125CA3; Fri, 30 Oct 2026 23:14:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E7BDC2D285; Fri, 30 Oct 2026 20:12:58 +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=1793391178; b=EwFXb745GVXl9jIrSddKy55R+f2DAwerw12ucJdalRQElBPqJzYppTJtj4aKT12koa63 uOBGlGdSRG7Yb+WDpviMFiHS8abzgP52gWCuFih6IeFb+HBW2t2e8sKg+F5uL9xHQbi/I smiOl3JPY9/F6oyAHB8N1v+yvCAsnyNOEPB+m01cv29GkK7eL6iDcHP2G17p4sb6NhfB4 GGcwWwYvwctm4w8YQadsadP6CXYZD2HKV3fyncz3U0iuPk/67p41lLy8hj6JrjfZ9f9fz j0v+bASvadQ7AhOvEX3wRyd44DLiF7NsvIkh+DCW/lI7NGWSqm8joKRKTcn9NF0YQYA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793391178; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=q99tJOfnx2o8DHVlW4CQw5kRWagm9RKTCtNKCSjriME=; b=0iZ8WwaeGudLDuyyiVeuxLq6ZG/YFa/0VGMhhBg9j+e542x+7NhXQtO0/W68rwmEj6Ce erXDf8M/ZPHltNGIS7o+7Telz+TeHth6L5bRS3ZOvpHGEH7xQ3NLKgkGsSqFSrMl8Qj2Z JQk/maVXvro0FBAnB2vBPDmZPiEfnFwsj62tDYrXtS+vwAgq/7qTRcW6EYw8eDX+xb+DJ qbF4sZlqxELua76KjajcGCS2StnswjHFEgJXjCHDfm+fCy90AIxST2DBH5ZWWuI8YinUF CI1NCtioKELw94iIjhMpUCmUJfU65DpVtZJ0j2eKGPuGabpZbfs0MQo6dC/sIJTdU6A== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vs6whWER; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 9EB29606A325; Fri, 30 Oct 2026 20:12:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vs6whWER X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793391162; b=q+rzBSpFdp23PQ0YzV0NsnfuQ1kc5KH/1IEPWbawzqEuD8YLr3+EC5sPsb6xj83d8pzY B3VMN7xzAsscGcAY0G8OO+MzqkYSbjfwVWKXdNisDQmEzK5WpYevB7qdYerRmrIhWwuS1 tnKYoTvKkDbTddY0qGfuKRrdhZISWanbWjP7aVKRCzMoKVOiFqYUd+iUhYwAkAbnbrhEB uu2iK2NQ0mAs8xNXLGcfQXYc8VrxQ7Qpj537Tn/xD2lE5t98YjwrlQ9CmIGJWSNGYnxU7 FXF8y1FfchckGJ0NhAHhConjvURwQmovAdrybLYKu0Nb2qOktURWvzYXlDz1/cAb98Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793391162; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=q99tJOfnx2o8DHVlW4CQw5kRWagm9RKTCtNKCSjriME=; b=D/9OV1/R47qHc2OgdJXcasnA25q65EnZatPAtY06LCdRA20LN3Z0POR8hX9VXBfQe7m6 gYzJHuJXU+59nOGRbU2ku48S9X7HY9mhwYS7/aJl9EVXeb5/bKojdbRZPxuhklZB1KFAU YjISpwfISGVQ1Q9U8bATb+oESvWZx5UH3KX0jT0V8HLNYrQCtUI7nzVkCyDWU0RUu34Tf 9aBR7OOd2CjNo0oEDM2RryyiONZeY2xZmOSrKy1JBSbTBxt0Nk3U4vcQl8rlhOv/vmAhw e79/RtRCJq3/pFyCwqTNvZWoJusMhVuiZeySYXMpRu1bumkPUHCvwSrPXp4qKZcgbjw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vs6whWER; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F592606A31A; Fri, 30 Oct 2026 20:12:42 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4F592606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=q99tJOfnx2o8DHVlW4CQw5kRWagm9RKTCtNKCSjriME=; b=Vs 6whWERrd7s7aNhMb5XGQ01OW7aEewra+G/LNkiPh/Qzb990ac11i5ZJ9v90hVkiFLSSXKC6YzhNW5 YZIkk2unh2lpgzzRc4BxifTmIaXs4i//JO8/1fveBjuPMOn5tHVvn917kHV9/l2SAyQgFB+Pk489J ++lpcuT5vlaxqnU=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xMsxq-00DQeX-PI; Fri, 30 Oct 2026 21:12:38 +0100 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-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-In-Reply-To: <7cd99851-5bc0-4db8-a44c-a664c3f824b1@gmail.com>