mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
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 <alex@alexforencich.com>
This commit is contained in:
parent
1d729817a6
commit
fa75b47b7b
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user