From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 0F03C2ECD05 for ; Tue, 21 Oct 2025 09:48:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761040118; cv=none; b=PwtnfnnDvWbOrSQvI+OZ9LXTqohSvCmqRP3Eoxt1zAglqVEekWmO3PbAxj18dT22dAfagTCGfLN1/n26iDkEbPEsTv3JAgLKQuysnnjeDXAqVntZN+EgRciNKwZZpnjtninNz3DmiYEKERWQ7rjkLPsOU83jWKV3SQnVsYDrtqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761040118; c=relaxed/simple; bh=BeRkcYdNuRP9VtAYS7+2+hIhdROOZ2RLTiuy7nQekzk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TcGmOOdk7sXBtEMmLP8JJj9XzfbuBT6vSLVhvMlqB3CqiLJJiwW8EFsU301AWnFaFKUI9G8sUWOrYYNSru1bpid3RSA5VW30uvBEXQlwhTI4kh4YIYKlgny99Nv//EyiqxmprYai/arApJj8O5TGBkFl0xjdwBkM1V2vYuUH2VQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=tz35rc9l; arc=none smtp.client-ip=95.215.58.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tz35rc9l" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1761040103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0prnOTx0qdT5A7vnEONNMuy2PWCa/37sN43he+oZ48M=; b=tz35rc9lYZ24KZZPYmVND7+5MNZC3J01XZCqJXbt7gO+szf+3361vGEF4q+i3FXOoOJ8yJ V8868sQFnVnjyv+sqXtLiY8cHSri+vjlVeIuJ+fxGprnyly57mMGyM3+ggYhYEfjMP2/ZN yUX5fspPMp/X1aS4gTLyLsBGHBQQfw0= From: Vadim Fedorenko To: Jian Shen , Salil Mehta , Jijie Shao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sunil Goutham , Geetha sowjanya , Subbaraya Sundeep , Bharat Bhushan , Tariq Toukan , Brett Creeley , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Paul Barker , Yoshihiro Shimoda Cc: linux-renesas-soc@vger.kernel.org, Richard Cochran , Russell King , Vladimir Oltean , Simon Horman , Jacob Keller , netdev@vger.kernel.org, Vadim Fedorenko Subject: [PATCH net-next v3 0/6] convert net drivers to ndo_hwtstamp API part 2 Date: Tue, 21 Oct 2025 09:47:45 +0000 Message-ID: <20251021094751.900558-1-vadim.fedorenko@linux.dev> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This is part 2 of patchset to convert drivers which support HW timestamping to use .ndo_hwtstamp_get()/.ndo_hwtstamp_set() callbacks. The new API uses netlink to communicate with user-space and have some test coverage. v2 -> v3: use NL_SET_ERR_MSG_MOD() variant to report errors back to user-space v1 -> v2: hns3: actually set up new ndo callbacks ionic: remove _lif_ portion from name to align with other ndo callbacks Vadim Fedorenko (6): octeontx2: convert to ndo_hwtstamp API mlx4: convert to ndo_hwtstamp API ionic: convert to ndo_hwtstamp API net: ravb: convert to ndo_hwtstamp API net: renesas: rswitch: convert to ndo_hwtstamp API net: hns3: add hwtstamp_get/hwtstamp_set ops drivers/net/ethernet/hisilicon/hns3/hnae3.h | 5 ++ .../net/ethernet/hisilicon/hns3/hns3_enet.c | 31 ++++++++++ .../hisilicon/hns3/hns3pf/hclge_main.c | 13 ++-- .../hisilicon/hns3/hns3pf/hclge_ptp.c | 32 +++++----- .../hisilicon/hns3/hns3pf/hclge_ptp.h | 9 ++- .../marvell/octeontx2/nic/otx2_common.h | 9 ++- .../ethernet/marvell/octeontx2/nic/otx2_pf.c | 56 ++++++++--------- .../ethernet/marvell/octeontx2/nic/otx2_vf.c | 3 +- .../net/ethernet/mellanox/mlx4/en_netdev.c | 62 ++++++++----------- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 6 +- .../net/ethernet/pensando/ionic/ionic_lif.c | 17 +---- .../net/ethernet/pensando/ionic/ionic_lif.h | 11 ++-- .../net/ethernet/pensando/ionic/ionic_phc.c | 61 +++++++++++------- drivers/net/ethernet/renesas/ravb_main.c | 61 ++++++------------ drivers/net/ethernet/renesas/rswitch_main.c | 53 ++++++---------- 15 files changed, 211 insertions(+), 218 deletions(-) -- 2.47.3