From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (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 2BCEC3B27DD; Sun, 10 May 2026 16:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.252.153.129 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778431452; cv=none; b=r6GpYUHiJ2/G2rji6MzVTWGQViFpuO0bdS/zkGnybYfTF2c1qitPz13iHIoBeWK2Va8/kRWF63GgGBMCxVfAWgDhc2ZHPI56NQwJrt+PnIkwmxN7I3lJefTkVZvHuWgp4uOBcpTXfguVtIN6YP+qkwVSgqwlqFc6KgWj6Tznlvw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778431452; c=relaxed/simple; bh=FKLE7ejqghDYJ/w85WEZJrDaGoQqUHvNQ24XD2b+mFQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SNe2TkcInGwIUJn6ojT6cH7CF+Q+DrdHNVWpqzIZ8kKP08+bRYpwxPBkzUNHCU9RlkjxnXWc8MwEoDov75ApTwEcnKdjyBna9ApjZmXOCdNeTl1Eum0g4IvtSL1l/ofsi3vP5YNsiQlpLqfhg9K6MXFagltt3LTMkttbAYJ6E70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net; spf=pass smtp.mailfrom=riseup.net; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b=RRl8BJi4; arc=none smtp.client-ip=198.252.153.129 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riseup.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riseup.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=riseup.net header.i=@riseup.net header.b="RRl8BJi4" Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4gD7wh5cplzDqLl; Sun, 10 May 2026 16:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riseup.net; s=squak; t=1778431445; bh=cDBCDSiXpvET2XJyOFjfqyw5G0DnmnMMUfuclS7LHK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RRl8BJi4QTvXaTxsdADxVR4HogdBZYieU5H3FlSHu8cVlfxxLbPh/MYXUZ3gT3RT/ SxKV5ZpbzAuIqJMoF0mqO31BEoj8gg4aTAG2lMFUtBMm66Ze0hpTg9jdPQ1DmAeh8g NaABhZanX2moCYpWfbiVX6Dbozp/YIicf9pPY11g= X-Riseup-User-ID: 998381A68B107694913F38E59B8B9B4AB69066767B0BD33FE9FF442520EA5DCF Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4gD7wd0ZGSz1yZk; Sun, 10 May 2026 16:44:00 +0000 (UTC) From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= To: Jakub Kicinski , Andrew Lunn , "David S . Miller" , Eric Dumazet , Paolo Abeni , Shuah Khan Cc: Sabrina Dubroca , Filip Pokryvka , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Subject: [PATCH net-next 1/5] netdevsim: Add ethtool get_link support Date: Sun, 10 May 2026 18:43:33 +0200 Message-ID: <20260510164337.7611-2-ihuguet@riseup.net> In-Reply-To: <20260510164337.7611-1-ihuguet@riseup.net> References: <20260510164337.7611-1-ihuguet@riseup.net> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Filip Pokryvka Add ethtool get_link callback to netdevsim. They are devices that have the concept of a carrier, so it makes sense that it can be queried via ethtool too, like ethernet devices. Signed-off-by: Filip Pokryvka --- drivers/net/netdevsim/ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/netdevsim/ethtool.c b/drivers/net/netdevsim/ethtool.c index 36a201533aae..4d47eb989c24 100644 --- a/drivers/net/netdevsim/ethtool.c +++ b/drivers/net/netdevsim/ethtool.c @@ -209,6 +209,7 @@ static const struct ethtool_ops nsim_ethtool_ops = { .supported_coalesce_params = ETHTOOL_COALESCE_ALL_PARAMS, .supported_ring_params = ETHTOOL_RING_USE_TCP_DATA_SPLIT | ETHTOOL_RING_USE_HDS_THRS, + .get_link = ethtool_op_get_link, .get_pause_stats = nsim_get_pause_stats, .get_pauseparam = nsim_get_pauseparam, .set_pauseparam = nsim_set_pauseparam, -- 2.53.0