| 3686 | } |
| 3687 | |
| 3688 | static int |
| 3689 | bnxt_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 | |
| 3713 | static int |
| 3714 | bnxt_timesync_read_rx_timestamp(struct rte_eth_dev *dev, |
nothing calls this directly
no test coverage detected