Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp236201lqn; Thu, 11 Apr 2024 22:33:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXAhjt0yNct9h/3ZwAQk0giZK9XTon5NMkITMXMsJ3WEyy3GCVi2/P8BxbUBV0k8sVQxPfKz+Sqh44o3e9cIhVrSyKA+0dnnm3EQzDcw== X-Google-Smtp-Source: AGHT+IH0oiNSN9CNA00eQOPbuasbQad3nAN2SWirTXshwpsw3EpaL80v5/FuEWeCanZ5YI2ULkzk X-Received: by 2002:a17:902:ce0e:b0:1e4:cb0e:2988 with SMTP id k14-20020a170902ce0e00b001e4cb0e2988mr2019348plg.2.1712899999323; Thu, 11 Apr 2024 22:33:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712899999; cv=pass; d=google.com; s=arc-20160816; b=AsSVot4RWKbexBycQytjp/gJxZBPykI2mq2un4VHL8EppwbTpgkELVY89AXsJEOfuM vH2k3wEmm0Mu1fO+IXgvdO8wG2ph3reLhd4E+kpJ3fzrvsLgM5vv4do3X15fhRrl2DWj ZqWOAeL3ZP3dQtDBRFuLJ7vv7ebOdxS8zaepJFz9fw/9tGeAiQe65jYxWVUAoy2GD0Kx 8R4ZOq3cSmzSZ3PrxlU+qJPgec/XUcpAMEI2/WrzcuQm5sr5MGONA6FP09QDUchAPOiK avr51C9n2u4Q0NayhK2gMd5IP1GXG7QLNU+53ydx/UQKKrae9TQLs+TxI4KaiUVgnjQn KLIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=I18PVS5+hp88W36auOHHd3utzWkizZTfFP6CdDHLunQ=; fh=0bL07tFhZAvl/3fvT2V4Dd9IGjhwEPmBljvcZQAOXSE=; b=HKjoiwP5JwMxQ20VlsORiAu1O+39lzCIkpzgFsC/f4ojHusxkM78V+eKHsYLqa5qb9 JKwSAORz7YTucCrj+lUu1oU4xQDSpYd3QjGL+8KyRLsyfCzEDJtxFA/HyGacLUX5RVFi fn+R/t9kuPNe5DGO6ZxpvNPC3vVbBnNANY1R3TMF/RGwbQoFUzytsVdoCtH2fJquW0aY 2ZpHg2X0SFX+HqdjyqnfNgyWvkLmSAIBWoLfcwdAzOIl0x6ADZdjs82fobclfigOJOeI N3Ln8Pl8vQlt7Eru8X6vzX52ghQoMu2KYMs2piyDNInmG1xKU3Ily87q5uNFxgDwTEq1 kEvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=A7Q22T6u; arc=pass (i=1 spf=pass spfdomain=flex--jfraker.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-141983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i7-20020a170902c94700b001dcaf709f55si2550001pla.207.2024.04.11.22.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 22:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=A7Q22T6u; arc=pass (i=1 spf=pass spfdomain=flex--jfraker.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-141983-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F22952843F7 for ; Fri, 12 Apr 2024 05:33:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16CB01F60B; Fri, 12 Apr 2024 05:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="A7Q22T6u" Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F9EB1C6B6 for ; Fri, 12 Apr 2024 05:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712899983; cv=none; b=u08o+B9a8TPqJRB8y+4ahmhDWuqJPZYVVHTO5oA7jP74iEhnFbYmG03ELV6wy5ZYXgU+rpg6MAoFxRVSTmJ4lEIGa85+PzBgU5v/w9X4vKfMaf4XWskCqLIrbpztLnLLJwgOsTDr3x9cCnRkYEWPBPwUdpRjdsnQ83xbbXykBvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712899983; c=relaxed/simple; bh=RhU7H8LigBvMKXz0iBQO81D77/UFtCO8smHv/Pw+CsE=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=MvEtXqTCX+YjHsTUYfngIZUG9wBSlZKMyuDJV6jDaO8Ey2xgF5ovQItEZ5vU6kWVTUmpz723Z0empK7bmz0J0aRwVjtto9bKDfJ3xik1Z04/mWJKzCYqi1052wBiEudeSzuZDYGXJFeuUszrEnJUmQF27nBLFXaSI/ZuywhgmFw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jfraker.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=A7Q22T6u; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jfraker.bounces.google.com Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6ed0a1396abso528840b3a.3 for ; Thu, 11 Apr 2024 22:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712899981; x=1713504781; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=I18PVS5+hp88W36auOHHd3utzWkizZTfFP6CdDHLunQ=; b=A7Q22T6uIJ4XQLbs5EGEA9P6yiv4s1cHoM/1CMTQt6lOFQBuwQPYvRbymlyuN60CdB ofm2FNPA6HoBv+HocLyPyp4+lAx6wTf7JVbid8pljgs6h0fGJOxHwjsmDmxQhknm3xjv n3oanEAARrZ2YCzzDSn7KdjgizdoBdxf4WHhf80TwRBMazWBOQZj0Nqtg8wSpCydMa5H 23qNS45SZk+Z8fCHugnqcKL6VfbUrFq+Zn5qWOgCulMPfxY9tl+aBYsbDj1OZKBYgBi4 3CeujhRW3qBG8JkwPhPB5fuFalsgynyUxY4yNuwDfKF6S6kpO7jC9cVYLHX5U+sJEh50 9pHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712899981; x=1713504781; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=I18PVS5+hp88W36auOHHd3utzWkizZTfFP6CdDHLunQ=; b=nZXoYnK7Veacl1fTGYmiPbW7WsR9LpPwTFo5JxhnXavYVlP32hEfYheBGhbpRTC8op Xm5t0jWUsW0jY2SFuB65fYG0LEUHXNvaFunuikPoiez92M57PL/uX3ziS9oN0TU9NVIn 9afF29XWLRRIkbBKGbJIMOF8ESUFECu0xVT2/2dWju/PWuY+/1Y+rqqq/IbJ5MpC5YCB 0DTbkEGxEsyd7HqczriD2+tOvEP8GBIqK8T5XOMeLdyBHEKYrX1GPv09sY6MlXuGNCNK Uh8KMk0l15XleVsWBfQumIrgGgwm3LwBagHrVIkriV5qzTG8lvuCKSBydaMeJGJf+46Q Be7g== X-Forwarded-Encrypted: i=1; AJvYcCXiU/zQ4a0uvXdc+99Em+1E6tW2OtF2zgxYzB/ClHug7IXFdUuy8DIG1JDGYI6gfbZK+10Jny75kjW5LsIye83pD7B2rkonFz/XGp5d X-Gm-Message-State: AOJu0YxICumPFAOnN2wMDD2eF1zbhCpWDZWd4BbbOY4DPpS2OWInOnTG cPHNyLQzhaKj60mAFt0pbG0mxqa1oaRB0uUEKETICTcOwMwAZtwykgsjiMd9sOcCKWBgtcJevdA +GRkpGw== X-Received: from jfraker202.plv.corp.google.com ([2620:15c:11c:202:9ba8:8a0e:3bd5:11ae]) (user=jfraker job=sendgmr) by 2002:a05:6a00:3986:b0:6ed:beec:8496 with SMTP id fi6-20020a056a00398600b006edbeec8496mr124382pfb.6.1712899981155; Thu, 11 Apr 2024 22:33:01 -0700 (PDT) Date: Thu, 11 Apr 2024 22:32:29 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.683.g7961c838ac-goog Message-ID: <20240412053245.3328123-1-jfraker@google.com> Subject: [PATCH net-next 12] gve: Correctly report software timestamping capabilities From: John Fraker To: netdev@vger.kernel.org Cc: John Fraker , Harshitha Ramamurthy , Shailend Chand , Willem de Bruijn , "David S. Miller" , Jeroen de Borst , Jakub Kicinski , Junfeng Guo , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" gve has supported software timestamp generation since its inception, but has not advertised that support via ethtool. This patch correctly advertises that support. Signed-off-by: John Fraker Reviewed-by: Harshitha Ramamurthy --- v2: Used ethtool_op_get_ts_info instead of our own implementation, as suggested by Jakub drivers/net/ethernet/google/gve/gve_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/google/gve/gve_ethtool.c b/drivers/net/ethernet/google/gve/gve_ethtool.c index 815dead..299206d 100644 --- a/drivers/net/ethernet/google/gve/gve_ethtool.c +++ b/drivers/net/ethernet/google/gve/gve_ethtool.c @@ -784,5 +784,6 @@ const struct ethtool_ops gve_ethtool_ops = { .set_tunable = gve_set_tunable, .get_priv_flags = gve_get_priv_flags, .set_priv_flags = gve_set_priv_flags, - .get_link_ksettings = gve_get_link_ksettings + .get_link_ksettings = gve_get_link_ksettings, + .get_ts_info = ethtool_op_get_ts_info, }; -- 2.44.0.683.g7961c838ac-goog