From: Filip Pokryvka <[email protected]> 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 <[email protected]> --- 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

