From fa75b47b7b6621ba7f302e1dea020b76c90e3c5b Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 7 Jul 2023 01:10:49 -0700 Subject: [PATCH] modules/mqnic: Convert more relatively frequent info-level printk calls to debug-level so they can be selectively enabled via dynamic debug Signed-off-by: Alex Forencich --- modules/mqnic/mqnic_ptp.c | 6 +++--- modules/mqnic/mqnic_tx.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/mqnic/mqnic_ptp.c b/modules/mqnic/mqnic_ptp.c index 1c971f89a..83c66180d 100644 --- a/modules/mqnic/mqnic_ptp.c +++ b/modules/mqnic/mqnic_ptp.c @@ -33,7 +33,7 @@ static int mqnic_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) bool neg = false; u64 nom_per_fns, adj; - dev_info(mdev->dev, "%s: scaled_ppm: %ld", __func__, scaled_ppm); + dev_dbg(mdev->dev, "%s: scaled_ppm: %ld", __func__, scaled_ppm); if (scaled_ppm < 0) { neg = true; @@ -56,7 +56,7 @@ static int mqnic_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) iowrite32(adj & 0xffffffff, mdev->phc_rb->regs + MQNIC_RB_PHC_REG_PERIOD_FNS); iowrite32(adj >> 32, mdev->phc_rb->regs + MQNIC_RB_PHC_REG_PERIOD_NS); - dev_info(mdev->dev, "%s adj: 0x%llx", __func__, adj); + dev_dbg(mdev->dev, "%s adj: 0x%llx", __func__, adj); return 0; } @@ -107,7 +107,7 @@ static int mqnic_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) struct mqnic_dev *mdev = container_of(ptp, struct mqnic_dev, ptp_clock_info); struct timespec64 ts; - dev_info(mdev->dev, "%s: delta: %lld", __func__, delta); + dev_dbg(mdev->dev, "%s: delta: %lld", __func__, delta); if (delta > 1000000000 || delta < -1000000000) { mqnic_phc_gettime(ptp, &ts); diff --git a/modules/mqnic/mqnic_tx.c b/modules/mqnic/mqnic_tx.c index b29f87fd2..965463c00 100644 --- a/modules/mqnic/mqnic_tx.c +++ b/modules/mqnic/mqnic_tx.c @@ -258,7 +258,7 @@ int mqnic_process_tx_cq(struct mqnic_cq *cq, int napi_budget) // TX hardware timestamp if (unlikely(tx_info->ts_requested)) { - netdev_info(priv->ndev, "%s: TX TS requested", __func__); + netdev_dbg(priv->ndev, "%s: TX TS requested", __func__); hwts.hwtstamp = mqnic_read_cpl_ts(interface->mdev, tx_ring, cpl); skb_tstamp_tx(tx_info->skb, &hwts); } @@ -435,7 +435,7 @@ netdev_tx_t mqnic_start_xmit(struct sk_buff *skb, struct net_device *ndev) // TX hardware timestamp tx_info->ts_requested = 0; if (unlikely(priv->if_features & MQNIC_IF_FEATURE_PTP_TS && shinfo->tx_flags & SKBTX_HW_TSTAMP)) { - netdev_info(ndev, "%s: TX TS requested", __func__); + netdev_dbg(ndev, "%s: TX TS requested", __func__); shinfo->tx_flags |= SKBTX_IN_PROGRESS; tx_info->ts_requested = 1; }