MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_timesync_disable

Function bnxt_timesync_disable

dpdk/drivers/net/bnxt/bnxt_ethdev.c:3688–3711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3686}
3687
3688static int
3689bnxt_timesync_disable(struct rte_eth_dev *dev)
3690{
3691 struct bnxt *bp = dev->data->dev_private;
3692 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg;
3693
3694 if (!ptp)
3695 return -ENOTSUP;
3696
3697 ptp->rx_filter = 0;
3698 ptp->tx_tstamp_en = 0;
3699 ptp->rxctl = 0;
3700 ptp->filter_all = 0;
3701
3702 bnxt_hwrm_ptp_cfg(bp);
3703
3704 bp->ptp_all_rx_tstamp = 0;
3705 if (!BNXT_CHIP_P5(bp))
3706 bnxt_unmap_ptp_regs(bp);
3707 else
3708 bnxt_ptp_stop(bp);
3709
3710 return 0;
3711}
3712
3713static int
3714bnxt_timesync_read_rx_timestamp(struct rte_eth_dev *dev,

Callers

nothing calls this directly

Calls 3

bnxt_hwrm_ptp_cfgFunction · 0.85
bnxt_unmap_ptp_regsFunction · 0.85
bnxt_ptp_stopFunction · 0.85

Tested by

no test coverage detected