Home
last modified time | relevance | path

Searched refs:ptpsq (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dptp.c62 void mlx5e_ptpsq_track_metadata(struct mlx5e_ptpsq *ptpsq, u8 metadata) in mlx5e_ptpsq_track_metadata() argument
64 mlx5e_ptp_port_ts_cqe_list_add(ptpsq->ts_cqe_pending_list, metadata); in mlx5e_ptpsq_track_metadata()
150 static void mlx5e_ptpsq_mark_ts_cqes_undelivered(struct mlx5e_ptpsq *ptpsq, in mlx5e_ptpsq_mark_ts_cqes_undelivered() argument
153 struct mlx5e_ptp_port_ts_cqe_list *cqe_list = ptpsq->ts_cqe_pending_list; in mlx5e_ptpsq_mark_ts_cqes_undelivered()
155 struct mlx5e_ptp_metadata_map *metadata_map = &ptpsq->metadata_map; in mlx5e_ptpsq_mark_ts_cqes_undelivered()
172 ptpsq->cq_stats->lost_cqe++; in mlx5e_ptpsq_mark_ts_cqes_undelivered()
177 #define PTP_WQE_CTR2IDX(val) ((val) & ptpsq->ts_cqe_ctr_mask)
179 static void mlx5e_ptp_handle_ts_cqe(struct mlx5e_ptpsq *ptpsq, in mlx5e_ptp_handle_ts_cqe() argument
185 struct mlx5e_ptp_port_ts_cqe_list *pending_cqe_list = ptpsq->ts_cqe_pending_list; in mlx5e_ptp_handle_ts_cqe()
188 struct mlx5e_txqsq *sq = &ptpsq->txqsq; in mlx5e_ptp_handle_ts_cqe()
[all …]
H A Dreporter_tx.c168 struct mlx5e_ptpsq *ptpsq = ctx; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() local
175 if (!test_bit(MLX5E_SQ_STATE_RECOVERING, &ptpsq->txqsq.state)) in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
178 priv = ptpsq->txqsq.priv; in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
262 struct mlx5e_ptpsq *ptpsq, int tc) in mlx5e_tx_reporter_build_diagnose_output_ptpsq() argument
266 mlx5e_tx_reporter_build_diagnose_output_sq_common(fmsg, &ptpsq->txqsq, tc); in mlx5e_tx_reporter_build_diagnose_output_ptpsq()
268 mlx5e_health_cq_diag_fmsg(&ptpsq->ts_cq, fmsg); in mlx5e_tx_reporter_build_diagnose_output_ptpsq()
291 struct mlx5e_ptpsq *ptpsq) in mlx5e_tx_reporter_diagnose_generic_tx_port_ts() argument
294 mlx5e_health_cq_common_diag_fmsg(&ptpsq->ts_cq, fmsg); in mlx5e_tx_reporter_diagnose_generic_tx_port_ts()
313 generic_ptpsq = &ptp_ch->ptpsq[0]; in mlx5e_tx_reporter_diagnose_common_config()
354 &ptp_ch->ptpsq[tc], in mlx5e_tx_reporter_diagnose()
[all …]
H A Dptp.h52 struct mlx5e_ptpsq ptpsq[MLX5_MAX_NUM_TC]; member
117 static inline bool mlx5e_ptpsq_metadata_freelist_empty(struct mlx5e_ptpsq *ptpsq) in mlx5e_ptpsq_metadata_freelist_empty() argument
121 if (likely(!ptpsq)) in mlx5e_ptpsq_metadata_freelist_empty()
124 freelist = &ptpsq->metadata_freelist; in mlx5e_ptpsq_metadata_freelist_empty()
141 void mlx5e_ptpsq_track_metadata(struct mlx5e_ptpsq *ptpsq, u8 metadata);
H A Dhealth.h21 void mlx5e_reporter_tx_ptpsq_unhealthy(struct mlx5e_ptpsq *ptpsq);
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tx.c401 if (unlikely(sq->ptpsq && in mlx5e_txwqe_complete()
405 mlx5e_ptp_metadata_fifo_pop(&sq->ptpsq->metadata_freelist); in mlx5e_txwqe_complete()
408 mlx5e_ptp_metadata_map_put(&sq->ptpsq->metadata_map, skb, in mlx5e_txwqe_complete()
412 mlx5e_ptpsq_track_metadata(sq->ptpsq, metadata_index); in mlx5e_txwqe_complete()
414 mlx5e_ptpsq_metadata_freelist_empty(sq->ptpsq)) { in mlx5e_txwqe_complete()
657 static void mlx5e_cqe_ts_id_eseg(struct mlx5e_ptpsq *ptpsq, struct sk_buff *skb, in mlx5e_cqe_ts_id_eseg() argument
662 cpu_to_be32(mlx5e_ptp_metadata_fifo_peek(&ptpsq->metadata_freelist)); in mlx5e_cqe_ts_id_eseg()
671 if (unlikely(sq->ptpsq)) in mlx5e_txwqe_build_eseg()
672 mlx5e_cqe_ts_id_eseg(sq->ptpsq, skb, eseg); in mlx5e_txwqe_build_eseg()
755 if (sq->ptpsq) { in mlx5e_consume_skb()
[all …]
H A Den.h459 struct mlx5e_ptpsq *ptpsq; member
H A Den_rep.c611 sqs[num_sqs++] = ptp_ch->ptpsq[tc].txqsq.sqn; in mlx5e_add_sqs_fwd_rules()
H A Den_stats.c1201 ptp->ptpsq[i].cq_stats; in mlx5e_stats_ts_get()
H A Den_main.c3183 struct mlx5e_txqsq *sq = &c->ptpsq[tc].txqsq; in mlx5e_build_txq_maps()