From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (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 34D6686340 for ; Thu, 23 Oct 2025 22:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761257114; cv=none; b=geh/F1uJakIKxEXFgjUPZFPv5mCeBlhWQHNNo1KVW8VYUNIuz8OOxIMpl3uNTsrru76B32WpUhXHSCLyGNYdY/e47aBbzbpSR8qAaFLKSUMwkd4vjA6ajnzYbQgYw3snFHzl/mh9sR4gDGafSfMyzq3pyqG7W15j6UMuIvBs5Tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761257114; c=relaxed/simple; bh=ioTHWtZyicX1PYcq8lbYFsuMxeiqnC8bmB5v9dSqr9c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CdOt/7xc/DkCBoJDOveMjGa5XnVElLrHlSffzz1kgnZNrHXx03JF8PHh6HV9wqTf1T+y9Ww2I3E9E8AEh7/tgb13ZWDw3j7e94IlmFP9wlTzMTeELWN3wc8ESctJIEB7YyrasYUB6lIc6aCt3zjEa5nqXuQk3BUWsxDlPEAs/O0= 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=P0kF10TU; arc=none smtp.client-ip=95.215.58.181 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="P0kF10TU" 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=1761257108; 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=jUraxx9cStQCMPeHEMKbx7/f+zLUBLbKTBMMk1wDwRw=; b=P0kF10TUMP487hqqvuMRpxhEGqSHb5jDZ6kYceRYufBnYypsGJo43Xl1yrIB/iEkzPrdaB QOpMo2TrA1H1dOAbf6fFd0H3YNgEYZkU5qlVt8QKn+2XPXRzWnqfOnZqJ1akgPRBhjkH9U EPOgsPXp79HjmtuTesnNxcmPwS4haa8= 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 v5 0/6] convert net drivers to ndo_hwtstamp API part 2 Date: Thu, 23 Oct 2025 22:04:51 +0000 Message-ID: <20251023220457.3201122-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. v4 -> v5: fix ionic dirver build with CONFIG_PTP_1588_CLOCK=n v3 -> v4: fix commit message in patch 6 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 | 18 ++++-- .../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, 216 insertions(+), 220 deletions(-) -- 2.47.3