* [PATCH net-next v2 0/2] convert drivers to use ndo_hwtstamp callbacks part 4
@ 2025-11-06 21:37 Vadim Fedorenko
2025-11-06 21:37 ` [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks Vadim Fedorenko
2025-11-06 21:37 ` [PATCH net-next v2 2/2] qede: " Vadim Fedorenko
0 siblings, 2 replies; 7+ messages in thread
From: Vadim Fedorenko @ 2025-11-06 21:37 UTC (permalink / raw)
To: Manish Chopra, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Vadim Fedorenko
Cc: Richard Cochran, Simon Horman, Jacob Keller, Kory Maincent,
netdev
This patchset is a subset of part 3 patchset to convert bnx2x and qede
drviers to use ndo callbacks instead ioctl to configure and report time
stamping. These drivers implemented only SIOCSHWTSTAMP command, but
converted to also provide configuration back to users. Some logic is
changed to avoid reporting configuration which is not in sync with the
HW in case of error happened.
v1 -> v2:
- remove unused variable in qede patch
Vadim Fedorenko (2):
bnx2x: convert to use ndo_hwtstamp callbacks
qede: convert to use ndo_hwtstamp callbacks
.../net/ethernet/broadcom/bnx2x/bnx2x_main.c | 73 ++++++++++++-------
drivers/net/ethernet/qlogic/qede/qede_main.c | 22 +-----
drivers/net/ethernet/qlogic/qede/qede_ptp.c | 69 ++++++++++--------
drivers/net/ethernet/qlogic/qede/qede_ptp.h | 6 +-
4 files changed, 93 insertions(+), 77 deletions(-)
--
2.47.3
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks
2025-11-06 21:37 [PATCH net-next v2 0/2] convert drivers to use ndo_hwtstamp callbacks part 4 Vadim Fedorenko
@ 2025-11-06 21:37 ` Vadim Fedorenko
2025-11-08 2:41 ` Jakub Kicinski
2025-11-06 21:37 ` [PATCH net-next v2 2/2] qede: " Vadim Fedorenko
1 sibling, 1 reply; 7+ messages in thread
From: Vadim Fedorenko @ 2025-11-06 21:37 UTC (permalink / raw)
To: Manish Chopra, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Vadim Fedorenko
Cc: Richard Cochran, Simon Horman, Jacob Keller, Kory Maincent,
netdev
The driver implemented SIOCSHWTSTAMP ioctl command only, but at the same
time it has configuration stored in a private structure. Implement both
ndo_hwtstamp_set and ndo_hwtstamp_get callback using stored info.
ndo_hwtstamp_set callback implements a check for unsupported 1-step
timestamping. The same check is removed from bnx2x_configure_ptp_filters
function as it's not needed anymore. Another call site of
bnx2x_configure_ptp_filters has hwtstamp_ioctl_called guard.
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
---
.../net/ethernet/broadcom/bnx2x/bnx2x_main.c | 73 ++++++++++++-------
1 file changed, 46 insertions(+), 27 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index f0f05d7315ac..94dba7db4b6a 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -308,8 +308,11 @@ static int bnx2x_set_storm_rx_mode(struct bnx2x *bp);
/****************************************************************************
* General service functions
****************************************************************************/
-
-static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr);
+static int bnx2x_hwtstamp_set(struct net_device *dev,
+ struct kernel_hwtstamp_config *config,
+ struct netlink_ext_ack *extack);
+static int bnx2x_hwtstamp_get(struct net_device *dev,
+ struct kernel_hwtstamp_config *config);
static void __storm_memset_dma_mapping(struct bnx2x *bp,
u32 addr, dma_addr_t mapping)
@@ -12813,14 +12816,9 @@ static int bnx2x_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
if (!netif_running(dev))
return -EAGAIN;
- switch (cmd) {
- case SIOCSHWTSTAMP:
- return bnx2x_hwtstamp_ioctl(bp, ifr);
- default:
- DP(NETIF_MSG_LINK, "ioctl: phy id 0x%x, reg 0x%x, val_in 0x%x\n",
- mdio->phy_id, mdio->reg_num, mdio->val_in);
- return mdio_mii_ioctl(&bp->mdio, mdio, cmd);
- }
+ DP(NETIF_MSG_LINK, "ioctl: phy id 0x%x, reg 0x%x, val_in 0x%x\n",
+ mdio->phy_id, mdio->reg_num, mdio->val_in);
+ return mdio_mii_ioctl(&bp->mdio, mdio, cmd);
}
static int bnx2x_validate_addr(struct net_device *dev)
@@ -13036,6 +13034,8 @@ static const struct net_device_ops bnx2x_netdev_ops = {
.ndo_get_phys_port_id = bnx2x_get_phys_port_id,
.ndo_set_vf_link_state = bnx2x_set_vf_link_state,
.ndo_features_check = bnx2x_features_check,
+ .ndo_hwtstamp_get = bnx2x_hwtstamp_get,
+ .ndo_hwtstamp_set = bnx2x_hwtstamp_set,
};
static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev,
@@ -15285,10 +15285,8 @@ int bnx2x_configure_ptp_filters(struct bnx2x *bp)
REG_WR(bp, param, BNX2X_PTP_TX_ON_PARAM_MASK);
REG_WR(bp, rule, BNX2X_PTP_TX_ON_RULE_MASK);
break;
- case HWTSTAMP_TX_ONESTEP_SYNC:
- case HWTSTAMP_TX_ONESTEP_P2P:
- BNX2X_ERR("One-step timestamping is not supported\n");
- return -ERANGE;
+ default:
+ break;
}
param = port ? NIG_REG_P1_LLH_PTP_PARAM_MASK :
@@ -15350,31 +15348,52 @@ int bnx2x_configure_ptp_filters(struct bnx2x *bp)
return 0;
}
-static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr)
+static int bnx2x_hwtstamp_set(struct net_device *dev,
+ struct kernel_hwtstamp_config *config,
+ struct netlink_ext_ack *extack)
{
- struct hwtstamp_config config;
+ struct bnx2x *bp = netdev_priv(dev);
int rc;
- DP(BNX2X_MSG_PTP, "HWTSTAMP IOCTL called\n");
-
- if (copy_from_user(&config, ifr->ifr_data, sizeof(config)))
- return -EFAULT;
+ DP(BNX2X_MSG_PTP, "HWTSTAMP SET called\n");
DP(BNX2X_MSG_PTP, "Requested tx_type: %d, requested rx_filters = %d\n",
- config.tx_type, config.rx_filter);
+ config->tx_type, config->rx_filter);
+
+ switch (config->tx_type) {
+ case HWTSTAMP_TX_ONESTEP_SYNC:
+ case HWTSTAMP_TX_ONESTEP_P2P:
+ NL_SET_ERR_MSG_MOD(extack,
+ "One-step timestamping is not supported");
+ return -ERANGE;
+ default:
+ break;
+ }
bp->hwtstamp_ioctl_called = true;
- bp->tx_type = config.tx_type;
- bp->rx_filter = config.rx_filter;
+ bp->tx_type = config->tx_type;
+ bp->rx_filter = config->rx_filter;
rc = bnx2x_configure_ptp_filters(bp);
- if (rc)
+ if (rc) {
+ NL_SET_ERR_MSG_MOD(extack, "HW configuration failure");
return rc;
+ }
+
+ config->rx_filter = bp->rx_filter;
- config.rx_filter = bp->rx_filter;
+ return 0;
+}
- return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ?
- -EFAULT : 0;
+static int bnx2x_hwtstamp_get(struct net_device *dev,
+ struct kernel_hwtstamp_config *config)
+{
+ struct bnx2x *bp = netdev_priv(dev);
+
+ config->rx_filter = bp->rx_filter;
+ config->tx_type = bp->tx_type;
+
+ return 0;
}
/* Configures HW for PTP */
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net-next v2 2/2] qede: convert to use ndo_hwtstamp callbacks
2025-11-06 21:37 [PATCH net-next v2 0/2] convert drivers to use ndo_hwtstamp callbacks part 4 Vadim Fedorenko
2025-11-06 21:37 ` [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks Vadim Fedorenko
@ 2025-11-06 21:37 ` Vadim Fedorenko
1 sibling, 0 replies; 7+ messages in thread
From: Vadim Fedorenko @ 2025-11-06 21:37 UTC (permalink / raw)
To: Manish Chopra, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Vadim Fedorenko
Cc: Richard Cochran, Simon Horman, Jacob Keller, Kory Maincent,
netdev
The driver implemented SIOCSHWTSTAMP ioctl cmd only, but it stores
configuration in private structure, so it can be reported back to users.
Implement both ndo_hwtstamp_set and ndo_hwtstamp_set callbacks.
ndo_hwtstamp_set implements a check of unsupported 1-step timestamping
and qede_ptp_cfg_filters() becomes void as it cannot fail anymore.
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
---
drivers/net/ethernet/qlogic/qede/qede_main.c | 22 +------
drivers/net/ethernet/qlogic/qede/qede_ptp.c | 69 ++++++++++++--------
drivers/net/ethernet/qlogic/qede/qede_ptp.h | 6 +-
3 files changed, 47 insertions(+), 50 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c
index b5d744d2586f..66ab1b9d65a1 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_main.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_main.c
@@ -506,25 +506,6 @@ static int qede_set_vf_trust(struct net_device *dev, int vfidx, bool setting)
}
#endif
-static int qede_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
-{
- struct qede_dev *edev = netdev_priv(dev);
-
- if (!netif_running(dev))
- return -EAGAIN;
-
- switch (cmd) {
- case SIOCSHWTSTAMP:
- return qede_ptp_hw_ts(edev, ifr);
- default:
- DP_VERBOSE(edev, QED_MSG_DEBUG,
- "default IOCTL cmd 0x%x\n", cmd);
- return -EOPNOTSUPP;
- }
-
- return 0;
-}
-
static void qede_fp_sb_dump(struct qede_dev *edev, struct qede_fastpath *fp)
{
char *p_sb = (char *)fp->sb_info->sb_virt;
@@ -717,7 +698,6 @@ static const struct net_device_ops qede_netdev_ops = {
.ndo_set_mac_address = qede_set_mac_addr,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = qede_change_mtu,
- .ndo_eth_ioctl = qede_ioctl,
.ndo_tx_timeout = qede_tx_timeout,
#ifdef CONFIG_QED_SRIOV
.ndo_set_vf_mac = qede_set_vf_mac,
@@ -742,6 +722,8 @@ static const struct net_device_ops qede_netdev_ops = {
#endif
.ndo_xdp_xmit = qede_xdp_transmit,
.ndo_setup_tc = qede_setup_tc_offload,
+ .ndo_hwtstamp_get = qede_hwtstamp_get,
+ .ndo_hwtstamp_set = qede_hwtstamp_set,
};
static const struct net_device_ops qede_netdev_vf_ops = {
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ptp.c b/drivers/net/ethernet/qlogic/qede/qede_ptp.c
index a38f1e72c62b..a122e0da88f3 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_ptp.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_ptp.c
@@ -199,18 +199,15 @@ static u64 qede_ptp_read_cc(struct cyclecounter *cc)
return phc_cycles;
}
-static int qede_ptp_cfg_filters(struct qede_dev *edev)
+static void qede_ptp_cfg_filters(struct qede_dev *edev)
{
enum qed_ptp_hwtstamp_tx_type tx_type = QED_PTP_HWTSTAMP_TX_ON;
enum qed_ptp_filter_type rx_filter = QED_PTP_FILTER_NONE;
struct qede_ptp *ptp = edev->ptp;
- if (!ptp)
- return -EIO;
-
if (!ptp->hw_ts_ioctl_called) {
DP_INFO(edev, "TS IOCTL not called\n");
- return 0;
+ return;
}
switch (ptp->tx_type) {
@@ -223,11 +220,6 @@ static int qede_ptp_cfg_filters(struct qede_dev *edev)
clear_bit(QEDE_FLAGS_TX_TIMESTAMPING_EN, &edev->flags);
tx_type = QED_PTP_HWTSTAMP_TX_OFF;
break;
-
- case HWTSTAMP_TX_ONESTEP_SYNC:
- case HWTSTAMP_TX_ONESTEP_P2P:
- DP_ERR(edev, "One-step timestamping is not supported\n");
- return -ERANGE;
}
spin_lock_bh(&ptp->lock);
@@ -286,39 +278,58 @@ static int qede_ptp_cfg_filters(struct qede_dev *edev)
ptp->ops->cfg_filters(edev->cdev, rx_filter, tx_type);
spin_unlock_bh(&ptp->lock);
-
- return 0;
}
-int qede_ptp_hw_ts(struct qede_dev *edev, struct ifreq *ifr)
+int qede_hwtstamp_set(struct net_device *netdev,
+ struct kernel_hwtstamp_config *config,
+ struct netlink_ext_ack *extack)
{
- struct hwtstamp_config config;
+ struct qede_dev *edev = netdev_priv(netdev);
struct qede_ptp *ptp;
- int rc;
ptp = edev->ptp;
- if (!ptp)
+ if (!ptp) {
+ NL_SET_ERR_MSG_MOD(extack, "HW timestamping is not supported");
return -EIO;
-
- if (copy_from_user(&config, ifr->ifr_data, sizeof(config)))
- return -EFAULT;
+ }
DP_VERBOSE(edev, QED_MSG_DEBUG,
- "HWTSTAMP IOCTL: Requested tx_type = %d, requested rx_filters = %d\n",
- config.tx_type, config.rx_filter);
+ "HWTSTAMP SET: Requested tx_type = %d, requested rx_filters = %d\n",
+ config->tx_type, config->rx_filter);
+
+ switch (config->tx_type) {
+ case HWTSTAMP_TX_ONESTEP_SYNC:
+ case HWTSTAMP_TX_ONESTEP_P2P:
+ NL_SET_ERR_MSG_MOD(extack,
+ "One-step timestamping is not supported");
+ return -ERANGE;
+ }
ptp->hw_ts_ioctl_called = 1;
- ptp->tx_type = config.tx_type;
- ptp->rx_filter = config.rx_filter;
+ ptp->tx_type = config->tx_type;
+ ptp->rx_filter = config->rx_filter;
- rc = qede_ptp_cfg_filters(edev);
- if (rc)
- return rc;
+ qede_ptp_cfg_filters(edev);
+
+ config->rx_filter = ptp->rx_filter;
+
+ return 0;
+}
- config.rx_filter = ptp->rx_filter;
+int qede_hwtstamp_get(struct net_device *netdev,
+ struct kernel_hwtstamp_config *config)
+{
+ struct qede_dev *edev = netdev_priv(netdev);
+ struct qede_ptp *ptp;
- return copy_to_user(ifr->ifr_data, &config,
- sizeof(config)) ? -EFAULT : 0;
+ ptp = edev->ptp;
+ if (!ptp)
+ return -EIO;
+
+ config->tx_type = ptp->tx_type;
+ config->rx_filter = ptp->rx_filter;
+
+ return 0;
}
int qede_ptp_get_ts_info(struct qede_dev *edev, struct kernel_ethtool_ts_info *info)
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ptp.h b/drivers/net/ethernet/qlogic/qede/qede_ptp.h
index adafc894797e..88f168395812 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_ptp.h
+++ b/drivers/net/ethernet/qlogic/qede/qede_ptp.h
@@ -14,7 +14,11 @@
void qede_ptp_rx_ts(struct qede_dev *edev, struct sk_buff *skb);
void qede_ptp_tx_ts(struct qede_dev *edev, struct sk_buff *skb);
-int qede_ptp_hw_ts(struct qede_dev *edev, struct ifreq *req);
+int qede_hwtstamp_get(struct net_device *netdev,
+ struct kernel_hwtstamp_config *config);
+int qede_hwtstamp_set(struct net_device *netdev,
+ struct kernel_hwtstamp_config *config,
+ struct netlink_ext_ack *extack);
void qede_ptp_disable(struct qede_dev *edev);
int qede_ptp_enable(struct qede_dev *edev);
int qede_ptp_get_ts_info(struct qede_dev *edev, struct kernel_ethtool_ts_info *ts);
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks
2025-11-06 21:37 ` [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks Vadim Fedorenko
@ 2025-11-08 2:41 ` Jakub Kicinski
2025-11-08 12:38 ` Vadim Fedorenko
0 siblings, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2025-11-08 2:41 UTC (permalink / raw)
To: Vadim Fedorenko
Cc: Manish Chopra, Andrew Lunn, David S. Miller, Eric Dumazet,
Paolo Abeni, Richard Cochran, Simon Horman, Jacob Keller,
Kory Maincent, netdev
On Thu, 6 Nov 2025 21:37:16 +0000 Vadim Fedorenko wrote:
> + switch (config->tx_type) {
> + case HWTSTAMP_TX_ONESTEP_SYNC:
> + case HWTSTAMP_TX_ONESTEP_P2P:
> + NL_SET_ERR_MSG_MOD(extack,
> + "One-step timestamping is not supported");
> + return -ERANGE;
> + default:
> + break;
> + }
This is the wrong way around, if someone adds a new value unsupported
by the driver it will pass. We should be listing the supported types
and
default:
...ERR_MSG..
return -ERANGE;
}
--
pw-bot: cr
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks
2025-11-08 2:41 ` Jakub Kicinski
@ 2025-11-08 12:38 ` Vadim Fedorenko
2025-11-10 23:23 ` Jacob Keller
0 siblings, 1 reply; 7+ messages in thread
From: Vadim Fedorenko @ 2025-11-08 12:38 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Manish Chopra, Andrew Lunn, David S. Miller, Eric Dumazet,
Paolo Abeni, Richard Cochran, Simon Horman, Jacob Keller,
Kory Maincent, netdev
On 08/11/2025 02:41, Jakub Kicinski wrote:
> On Thu, 6 Nov 2025 21:37:16 +0000 Vadim Fedorenko wrote:
>> + switch (config->tx_type) {
>> + case HWTSTAMP_TX_ONESTEP_SYNC:
>> + case HWTSTAMP_TX_ONESTEP_P2P:
>> + NL_SET_ERR_MSG_MOD(extack,
>> + "One-step timestamping is not supported");
>> + return -ERANGE;
>> + default:
>> + break;
>> + }
>
> This is the wrong way around, if someone adds a new value unsupported
> by the driver it will pass. We should be listing the supported types
> and
>
> default:
> ...ERR_MSG..
> return -ERANGE;
> }
But that's the original logic of the driver. Should I change it within
the same patch, or is it better to make a follow-up work to clean such
things in net-next?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks
2025-11-08 12:38 ` Vadim Fedorenko
@ 2025-11-10 23:23 ` Jacob Keller
2025-11-10 23:50 ` Jakub Kicinski
0 siblings, 1 reply; 7+ messages in thread
From: Jacob Keller @ 2025-11-10 23:23 UTC (permalink / raw)
To: Vadim Fedorenko, Jakub Kicinski
Cc: Manish Chopra, Andrew Lunn, David S. Miller, Eric Dumazet,
Paolo Abeni, Richard Cochran, Simon Horman, Kory Maincent, netdev
[-- Attachment #1.1: Type: text/plain, Size: 1066 bytes --]
On 11/8/2025 4:38 AM, Vadim Fedorenko wrote:
> On 08/11/2025 02:41, Jakub Kicinski wrote:
>> On Thu, 6 Nov 2025 21:37:16 +0000 Vadim Fedorenko wrote:
>>> + switch (config->tx_type) {
>>> + case HWTSTAMP_TX_ONESTEP_SYNC:
>>> + case HWTSTAMP_TX_ONESTEP_P2P:
>>> + NL_SET_ERR_MSG_MOD(extack,
>>> + "One-step timestamping is not supported");
>>> + return -ERANGE;
>>> + default:
>>> + break;
>>> + }
>>
>> This is the wrong way around, if someone adds a new value unsupported
>> by the driver it will pass. We should be listing the supported types
>> and
>>
>> default:
>> ...ERR_MSG..
>> return -ERANGE;
>> }
>
> But that's the original logic of the driver. Should I change it within
> the same patch, or is it better to make a follow-up work to clean such
> things in net-next?
I'd prefer a separate patch for clarity. A backport is probably
unnecessary since I doubt we'll add a new timestamp mode in such a
backport in the future.. but functional changes like that make sense as
a separate patch.
Thanks,
Jake
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks
2025-11-10 23:23 ` Jacob Keller
@ 2025-11-10 23:50 ` Jakub Kicinski
0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2025-11-10 23:50 UTC (permalink / raw)
To: Jacob Keller
Cc: Vadim Fedorenko, Manish Chopra, Andrew Lunn, David S. Miller,
Eric Dumazet, Paolo Abeni, Richard Cochran, Simon Horman,
Kory Maincent, netdev
On Mon, 10 Nov 2025 15:23:23 -0800 Jacob Keller wrote:
> On 11/8/2025 4:38 AM, Vadim Fedorenko wrote:
> > On 08/11/2025 02:41, Jakub Kicinski wrote:
> >> On Thu, 6 Nov 2025 21:37:16 +0000 Vadim Fedorenko wrote:
> >> This is the wrong way around, if someone adds a new value unsupported
> >> by the driver it will pass. We should be listing the supported types
> >> and
> >>
> >> default:
> >> ...ERR_MSG..
> >> return -ERANGE;
> >> }
> >
> > But that's the original logic of the driver. Should I change it within
> > the same patch, or is it better to make a follow-up work to clean such
> > things in net-next?
That's partially true, note that the original code did not have a
default clause. So (IIUC) compiler would warn us if we added a new
enum value without adding it in this driver. You're adding defaults.
> I'd prefer a separate patch for clarity. A backport is probably
> unnecessary since I doubt we'll add a new timestamp mode in such a
> backport in the future.. but functional changes like that make sense as
> a separate patch.
Yup, I think I asked for separate patch originally. Perhpas I wasn't
clear enough.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-11-10 23:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06 21:37 [PATCH net-next v2 0/2] convert drivers to use ndo_hwtstamp callbacks part 4 Vadim Fedorenko
2025-11-06 21:37 ` [PATCH net-next v2 1/2] bnx2x: convert to use ndo_hwtstamp callbacks Vadim Fedorenko
2025-11-08 2:41 ` Jakub Kicinski
2025-11-08 12:38 ` Vadim Fedorenko
2025-11-10 23:23 ` Jacob Keller
2025-11-10 23:50 ` Jakub Kicinski
2025-11-06 21:37 ` [PATCH net-next v2 2/2] qede: " Vadim Fedorenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).