| /dpdk/drivers/net/sfc/ |
| H A D | sfc_ef10_tx.c | 98 *tx_ev = evq_hw_ring[txq->evq_read_ptr & txq->ptr_mask]; in sfc_ef10_tx_get_event() 203 EFX_POPULATE_QWORD_5(txq->txq_hw_ring[added & txq->ptr_mask], in sfc_ef10_tx_qdesc_tso2_create() 310 sfc_ef10_tx_qpush(txq, added, txq->added); in sfc_ef10_try_reap() 525 &txq->txq_hw_ring[(*added) & txq->ptr_mask]); in sfc_ef10_xmit_tso_pkt() 681 sfc_ef10_tx_qpush(txq, added, txq->added); in sfc_ef10_xmit_pkts() 733 sfc_ef10_tx_qpush(txq, added, txq->added); in sfc_ef10_xmit_pkts() 883 sfc_ef10_tx_qpush(txq, added, txq->added); in sfc_ef10_simple_xmit_pkts() 950 txq = rte_zmalloc_socket("sfc-ef10-txq", sizeof(*txq), in sfc_ef10_tx_qcreate() 976 txq->tsoh_iova = rte_malloc_virt2iova(txq->tsoh); in sfc_ef10_tx_qcreate() 1026 txq->added = txq->completed = txq_desc_index; in sfc_ef10_tx_qstart() [all …]
|
| H A D | sfc_ef100_tx.c | 228 *ev = evq_hw_ring[txq->evq_read_ptr & txq->ptr_mask]; in sfc_ef100_tx_get_event() 231 (txq->evq_read_ptr >> txq->evq_phase_bit_shift) & 1)) in sfc_ef100_tx_get_event() 243 txq->evq_read_ptr, txq->evq_read_ptr & txq->ptr_mask, in sfc_ef100_tx_get_event() 253 txq->evq_read_ptr & txq->ptr_mask); in sfc_ef100_tx_get_event() 284 txd = &txq->sw_ring[completed & txq->ptr_mask]; in sfc_ef100_tx_reap_num_descs() 850 txq = rte_zmalloc_socket("sfc-ef100-txq", sizeof(*txq), in sfc_ef100_tx_qcreate() 893 rte_free(txq); in sfc_ef100_tx_qcreate() 907 rte_free(txq); in sfc_ef100_tx_qdestroy() 918 txq->added = txq->completed = txq_desc_index; in sfc_ef100_tx_qstart() 960 txd = &txq->sw_ring[completed & txq->ptr_mask]; in sfc_ef100_tx_qreap() [all …]
|
| H A D | sfc_tx.c | 191 txq->evq = evq; in sfc_tx_qinit() 561 rc = efx_tx_qcreate(sa->nic, txq->hw_index, 0, &txq->mem, in sfc_tx_qstart() 771 txd = &txq->sw_ring[completed & txq->ptr_mask]; in sfc_efx_tx_reap() 998 txq->sw_ring[(added - 1) & txq->ptr_mask].mbuf = *pktp; in sfc_efx_xmit_pkts() 1002 rc = efx_tx_qdesc_post(txq->common, txq->pend_desc, in sfc_efx_xmit_pkts() 1004 txq->completed, &txq->added); in sfc_efx_xmit_pkts() 1008 efx_tx_qpush(txq->common, txq->added, pushed); in sfc_efx_xmit_pkts() 1100 txq = rte_zmalloc_socket("sfc-efx-txq", sizeof(*txq), in sfc_efx_tx_qcreate() 1147 rte_free(txq); in sfc_efx_tx_qcreate() 1178 txq->pending = txq->completed = txq->added = txq_desc_index; in sfc_efx_tx_qstart() [all …]
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_txq.c | 51 if (txq && txq->cp_ring && txq->cp_ring->hw_stats) in bnxt_free_txq_stats() 60 if (!txq || !txq->tx_ring) in bnxt_tx_queue_release_mbufs() 89 if (txq) { in bnxt_tx_queue_release_op() 94 bnxt_free_hwrm_tx_ring(txq->bp, txq->queue_id); in bnxt_tx_queue_release_op() 96 if (txq->tx_ring) { in bnxt_tx_queue_release_op() 111 txq->mz = NULL; in bnxt_tx_queue_release_op() 114 rte_free(txq); in bnxt_tx_queue_release_op() 147 if (txq) in bnxt_tx_queue_setup_op() 152 if (!txq) { in bnxt_tx_queue_setup_op() 157 txq->bp = bp; in bnxt_tx_queue_setup_op() [all …]
|
| H A D | bnxt_txr.c | 30 if (!txq) in bnxt_free_tx_rings() 35 rte_free(txq->tx_ring); in bnxt_free_tx_rings() 39 rte_free(txq->cp_ring); in bnxt_free_tx_rings() 41 rte_memzone_free(txq->mz); in bnxt_free_tx_rings() 42 txq->mz = NULL; in bnxt_free_tx_rings() 44 rte_free(txq); in bnxt_free_tx_rings() 71 txq->tx_ring = txr; in bnxt_init_tx_ring_struct() 92 txq->cp_ring = cpr; in bnxt_init_tx_ring_struct() 121 (txq->bp->tx_cfa_action || txq->vfr_tx_cfa_action))) in bnxt_xmit_need_long_bd() 457 if (bnxt_tx_bds_in_hw(txq) < txq->tx_free_thresh) in bnxt_handle_tx_cp() [all …]
|
| /dpdk/drivers/net/ixgbe/ |
| H A D | ixgbe_rxtx_vec_common.h | 86 status = txq->tx_ring[txq->tx_next_dd].wb.status; in ixgbe_tx_free_bufs() 96 txep = &txq->sw_ring_v[txq->tx_next_dd - (n - 1)]; in ixgbe_tx_free_bufs() 124 txq->nb_tx_free = (uint16_t)(txq->nb_tx_free + txq->tx_rs_thresh); in ixgbe_tx_free_bufs() 125 txq->tx_next_dd = (uint16_t)(txq->tx_next_dd + txq->tx_rs_thresh); in ixgbe_tx_free_bufs() 126 if (txq->tx_next_dd >= txq->nb_tx_desc) in ixgbe_tx_free_bufs() 127 txq->tx_next_dd = (uint16_t)(txq->tx_rs_thresh - 1); in ixgbe_tx_free_bufs() 153 for (i = txq->tx_next_dd - (txq->tx_rs_thresh - 1); in _ixgbe_tx_queue_release_mbufs_vec() 228 txq->tx_next_dd = (uint16_t)(txq->tx_rs_thresh - 1); in _ixgbe_reset_tx_queue_vec() 229 txq->tx_next_rs = (uint16_t)(txq->tx_rs_thresh - 1); in _ixgbe_reset_tx_queue_vec() 238 txq->nb_tx_free = (uint16_t)(txq->nb_tx_desc - 1); in _ixgbe_reset_tx_queue_vec() [all …]
|
| H A D | ixgbe_rxtx.c | 118 txep = &(txq->sw_ring[txq->tx_next_dd - (txq->tx_rs_thresh - 1)]); in ixgbe_tx_free_bufs() 142 txq->nb_tx_free = (uint16_t)(txq->nb_tx_free + txq->tx_rs_thresh); in ixgbe_tx_free_bufs() 143 txq->tx_next_dd = (uint16_t)(txq->tx_next_dd + txq->tx_rs_thresh); in ixgbe_tx_free_bufs() 605 txq->port_id, txq->queue_id); in ixgbe_xmit_cleanup() 2428 if (txq->nb_tx_desc - txq->nb_tx_free < txq->tx_rs_thresh) in ixgbe_tx_done_cleanup_simple() 2481 txq->ops->release_mbufs(txq); in ixgbe_tx_queue_release() 2482 txq->ops->free_swring(txq); in ixgbe_tx_queue_release() 2808 txq->sw_ring, txq->tx_ring, txq->tx_ring_phys_addr); in ixgbe_dev_tx_queue_setup() 2813 txq->ops->reset(txq); in ixgbe_dev_tx_queue_setup() 3386 txq->ops->reset(txq); in ixgbe_dev_clear_queues() [all …]
|
| /dpdk/drivers/net/mlx4/ |
| H A D | mlx4_txq.c | 48 txq_uar_init(struct txq *txq) in txq_uar_init() argument 55 ppriv->uar_table[txq->stats.idx] = txq->msq.db; in txq_uar_init() 74 txq_uar_init_secondary(struct txq *txq, int fd) in txq_uar_init_secondary() argument 94 txq->port_id, txq->stats.idx); in txq_uar_init_secondary() 110 txq_uar_uninit_secondary(struct txq *txq) in txq_uar_uninit_secondary() argument 135 struct txq *txq; in mlx4_tx_uar_init_secondary() local 207 mlx4_txq_free_elts(struct txq *txq) in mlx4_txq_free_elts() argument 222 txq->elts_tail = txq->elts_head; in mlx4_txq_free_elts() 321 struct txq *txq; in mlx4_tx_queue_setup() local 377 *txq = (struct txq){ in mlx4_tx_queue_setup() [all …]
|
| /dpdk/drivers/net/axgbe/ |
| H A D | axgbe_rxtx_vec_sse.c | 42 idx = AXGBE_GET_DESC_IDX(txq, txq->dirty + txq->free_batch_cnt in axgbe_xmit_cleanup_vec() 44 desc = &txq->desc[idx]; in axgbe_xmit_cleanup_vec() 54 txq->dirty += txq->free_batch_cnt; in axgbe_xmit_cleanup_vec() 55 txq->nb_desc_free += txq->free_batch_cnt; in axgbe_xmit_cleanup_vec() 64 struct axgbe_tx_queue *txq; in axgbe_xmit_pkts_vec() local 69 if (txq->nb_desc_free < txq->free_thresh) { in axgbe_xmit_pkts_vec() 70 axgbe_xmit_cleanup_vec(txq); in axgbe_xmit_pkts_vec() 76 idx = AXGBE_GET_DESC_IDX(txq, txq->cur); in axgbe_xmit_pkts_vec() 77 loop = txq->nb_desc - idx; in axgbe_xmit_pkts_vec() 90 txq->cur += nb_pkts; in axgbe_xmit_pkts_vec() [all …]
|
| H A D | axgbe_rxtx.c | 557 if (txq->free_thresh > txq->nb_desc) in axgbe_dev_tx_queue_setup() 558 txq->free_thresh = (txq->nb_desc >> 1); in axgbe_dev_tx_queue_setup() 559 txq->free_batch_cnt = txq->free_thresh; in axgbe_dev_tx_queue_setup() 562 if (txq->nb_desc % txq->free_thresh != 0) in axgbe_dev_tx_queue_setup() 587 txq->nb_desc_free = txq->nb_desc; in axgbe_dev_tx_queue_setup() 758 while (txq->cur != txq->dirty) { in axgbe_xmit_cleanup() 784 idx = AXGBE_GET_DESC_IDX(txq, txq->cur); in axgbe_xmit_hw() 861 nb_desc_free = txq->nb_desc - (txq->cur - txq->dirty); in axgbe_xmit_pkts() 865 nb_desc_free = txq->nb_desc - (txq->cur - txq->dirty); in axgbe_xmit_pkts() 879 idx = AXGBE_GET_DESC_IDX(txq, txq->cur); in axgbe_xmit_pkts() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_tx.h | 629 &txq->elts[txq->elts_tail & txq->elts_m], in mlx5_tx_free_elts() 713 txq->fcqs[txq->cq_pi++ & txq->cqe_m] = head | in mlx5_tx_request_completion() 716 txq->fcqs[txq->cq_pi++ & txq->cqe_m] = head; in mlx5_tx_request_completion() 1676 wqe = txq->wqes + (txq->wqe_ci & txq->wqe_m); in mlx5_tx_schedule_send() 1795 wqe = txq->wqes + (txq->wqe_ci & txq->wqe_m); in mlx5_tx_packet_multi_tso() 1876 wqe = txq->wqes + (txq->wqe_ci & txq->wqe_m); in mlx5_tx_packet_multi_send() 2080 wqe = txq->wqes + (txq->wqe_ci & txq->wqe_m); in mlx5_tx_packet_multi_inline() 2284 wqe = txq->wqes + (txq->wqe_ci & txq->wqe_m); in mlx5_tx_burst_tso() 2801 wqem = txq->wqes + (txq->wqe_ci & txq->wqe_m); in mlx5_tx_burst_empw_inline() 3239 txq->elts[txq->elts_head++ & txq->elts_m] = in mlx5_tx_burst_single_send() [all …]
|
| H A D | mlx5_txq.c | 151 cqe = &txq->cqes[txq->cq_ci & txq->cqe_m]; in txq_sync_cq() 152 ret = check_cqe(cqe, txq->cqe_s, txq->cq_ci); in txq_sync_cq() 169 *txq->cq_db = rte_cpu_to_be_32(txq->cq_ci); in txq_sync_cq() 170 txq->cq_pi = txq->cq_ci; in txq_sync_cq() 192 container_of(txq, struct mlx5_txq_ctrl, txq); in mlx5_tx_queue_stop_primary() 206 txq->wqe_ci = txq->wqe_s; in mlx5_tx_queue_stop_primary() 265 container_of(txq, struct mlx5_txq_ctrl, txq); in mlx5_tx_queue_start_primary() 390 container_of(txq, struct mlx5_txq_ctrl, txq); in mlx5_tx_queue_setup() 431 container_of(txq, struct mlx5_txq_ctrl, txq); in mlx5_tx_hairpin_queue_setup() 519 struct mlx5_txq_data *txq = &txq_ctrl->txq; in txq_uar_init_secondary() local [all …]
|
| H A D | mlx5_tx.c | 91 container_of(txq, struct mlx5_txq_ctrl, txq); in mlx5_tx_error_cqe_handle() 100 txq->cqe_s, txq->qp_num_8s >> 8, in mlx5_tx_error_cqe_handle() 102 txq->wqe_ci, txq->cq_ci); in mlx5_tx_error_cqe_handle() 159 tail = txq->fcqs[(txq->cq_ci - 1) & txq->cqe_m]; in mlx5_tx_comp_flush() 193 cqe = &txq->cqes[txq->cq_ci & txq->cqe_m]; in mlx5_tx_handle_completion() 225 txq->cq_pi = txq->cq_ci; in mlx5_tx_handle_completion() 230 MLX5_ASSERT(txq->cq_ci != txq->cq_pi); in mlx5_tx_handle_completion() 232 MLX5_ASSERT((txq->fcqs[txq->cq_ci & txq->cqe_m] >> 16) == in mlx5_tx_handle_completion() 251 *txq->cq_db = rte_cpu_to_be_32(txq->cq_ci); in mlx5_tx_handle_completion() 274 used = txq->elts_head - txq->elts_tail; in mlx5_tx_descriptor_status() [all …]
|
| /dpdk/drivers/net/nfb/ |
| H A D | nfb_tx.c | 16 if (txq->queue == NULL) { in nfb_eth_tx_queue_start() 37 if (txq->queue == NULL) { in nfb_eth_tx_queue_stop() 64 if (txq == NULL) { in nfb_eth_tx_queue_setup() 72 txq); in nfb_eth_tx_queue_setup() 77 rte_free(txq); in nfb_eth_tx_queue_setup() 94 txq->nfb = nfb; in nfb_eth_tx_queue_init() 97 txq->tx_pkts = 0; in nfb_eth_tx_queue_init() 98 txq->tx_bytes = 0; in nfb_eth_tx_queue_init() 99 txq->err_pkts = 0; in nfb_eth_tx_queue_init() 111 rte_free(txq); in nfb_eth_tx_queue_release() [all …]
|
| /dpdk/drivers/net/nfp/ |
| H A D | nfp_rxtx.c | 629 qcp_rd_p, txq->rd_p, txq->rd_p); in nfp_net_tx_free_bufs() 636 txq->rd_p -= txq->tx_count; in nfp_net_tx_free_bufs() 779 txq->txbufs, txq->txds, (unsigned long)txq->dma); in nfp_net_tx_queue_setup() 799 if (txq->wr_p >= txq->rd_p) in nfp_free_tx_desc() 800 return txq->tx_count - (txq->wr_p - txq->rd_p) - 8; in nfp_free_tx_desc() 802 return txq->rd_p - txq->wr_p - 8; in nfp_free_tx_desc() 895 txds = &txq->txds[txq->wr_p]; in nfp_net_xmit_pkts() 898 txq->qidx, txq->wr_p, nb_pkts); in nfp_net_xmit_pkts() 916 lmbuf = &txq->txbufs[txq->wr_p].mbuf; in nfp_net_xmit_pkts() 997 txds = &txq->txds[txq->wr_p]; in nfp_net_xmit_pkts() [all …]
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_rxtx_vec.h | 14 struct rte_mbuf **free = txq->free; in hns3_tx_bulk_free_buffers() 20 tx_entry = &txq->sw_ring[txq->next_to_clean]; in hns3_tx_bulk_free_buffers() 21 if (txq->mbuf_fast_free_en) { in hns3_tx_bulk_free_buffers() 23 txq->tx_rs_thresh); in hns3_tx_bulk_free_buffers() 24 for (i = 0; i < txq->tx_rs_thresh; i++) in hns3_tx_bulk_free_buffers() 49 txq->tx_bd_ready += txq->tx_rs_thresh; in hns3_tx_bulk_free_buffers() 50 txq->next_to_clean += txq->tx_rs_thresh; in hns3_tx_bulk_free_buffers() 51 if (txq->next_to_clean >= txq->nb_tx_desc) in hns3_tx_bulk_free_buffers() 52 txq->next_to_clean = 0; in hns3_tx_bulk_free_buffers() 65 tx_desc = &txq->tx_ring[txq->next_to_clean]; in hns3_tx_free_buffers() [all …]
|
| /dpdk/drivers/net/ngbe/ |
| H A D | ngbe_rxtx.c | 77 txep = &txq->sw_ring[txq->tx_next_dd - (txq->tx_free_thresh - 1)]; in ngbe_tx_free_bufs() 100 txq->nb_tx_free = (uint16_t)(txq->nb_tx_free + txq->tx_free_thresh); in ngbe_tx_free_bufs() 101 txq->tx_next_dd = (uint16_t)(txq->tx_next_dd + txq->tx_free_thresh); in ngbe_tx_free_bufs() 533 txq->port_id, txq->queue_id); in ngbe_xmit_cleanup() 552 txq->port_id, txq->queue_id); in ngbe_xmit_cleanup() 683 txq->port_id, txq->queue_id); in ngbe_xmit_pkts() 1818 txq->ops->free_swring(txq); in ngbe_tx_queue_release() 2056 txq->sw_ring, txq->tx_ring, txq->tx_ring_phys_addr); in ngbe_dev_tx_queue_setup() 2061 txq->ops->reset(txq); in ngbe_dev_tx_queue_setup() 2462 txq->ops->reset(txq); in ngbe_dev_clear_queues() [all …]
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_rxtx_vec_common.h | 89 if ((txq->tx_ring[txq->tx_next_dd].cmd_type_offset_bsz & in ice_tx_free_bufs_vec() 94 n = txq->tx_rs_thresh; in ice_tx_free_bufs_vec() 99 txep = &txq->sw_ring[txq->tx_next_dd - (n - 1)]; in ice_tx_free_bufs_vec() 128 txq->nb_tx_free = (uint16_t)(txq->nb_tx_free + txq->tx_rs_thresh); in ice_tx_free_bufs_vec() 129 txq->tx_next_dd = (uint16_t)(txq->tx_next_dd + txq->tx_rs_thresh); in ice_tx_free_bufs_vec() 130 if (txq->tx_next_dd >= txq->nb_tx_desc) in ice_tx_free_bufs_vec() 131 txq->tx_next_dd = (uint16_t)(txq->tx_rs_thresh - 1); in ice_tx_free_bufs_vec() 186 if (unlikely(!txq || !txq->sw_ring)) { in _ice_tx_queue_release_mbufs_vec() 195 i = txq->tx_next_dd - txq->tx_rs_thresh + 1; in _ice_tx_queue_release_mbufs_vec() 204 if (txq->tx_tail < i) { in _ice_tx_queue_release_mbufs_vec() [all …]
|
| H A D | ice_rxtx.c | 672 if (!txq || !txq->q_set) { in ice_tx_queue_start() 852 txq = pf->fdir.txq; in ice_fdir_tx_queue_start() 853 if (!txq || !txq->q_set) { in ice_fdir_tx_queue_start() 910 if (!txq || !txq->sw_ring) { in _ice_tx_queue_release_mbufs() 997 txq->tx_rel_mbufs(txq); in ice_tx_queue_stop() 1037 txq = pf->fdir.txq; in ice_fdir_tx_queue_stop() 1056 txq->tx_rel_mbufs(txq); in ice_fdir_tx_queue_stop() 2272 pf->fdir.txq = txq; in ice_fdir_setup_tx_resources() 2951 txep = &txq->sw_ring[txq->tx_next_dd - (txq->tx_rs_thresh - 1)]; in ice_tx_free_bufs() 3056 if (txq->nb_tx_desc - txq->nb_tx_free < txq->tx_rs_thresh) in ice_tx_done_cleanup_simple() [all …]
|
| /dpdk/drivers/net/e1000/ |
| H A D | em_rxtx.c | 318 txq->port_id, txq->queue_id); in em_xmit_cleanup() 397 if (txq->nb_tx_free < txq->tx_free_thresh) in eth_em_xmit_pkts() 465 txq->port_id, txq->queue_id); in eth_em_xmit_pkts() 578 txq->nb_tx_used = (uint16_t)(txq->nb_tx_used + nb_used); in eth_em_xmit_pkts() 582 if (txq->nb_tx_used >= txq->tx_rs_thresh) { in eth_em_xmit_pkts() 586 tx_last, txq->port_id, txq->queue_id); in eth_em_xmit_pkts() 602 (unsigned) txq->port_id, (unsigned) txq->queue_id, in eth_em_xmit_pkts() 1287 if ((txq = rte_zmalloc("ethdev TX queue", sizeof(*txq), in eth_em_tx_queue_setup() 1314 txq->sw_ring, txq->tx_ring, txq->tx_ring_phys_addr); in eth_em_tx_queue_setup() 2030 tx_desc = &txq->tx_ring[txq->tx_tail]; in e1000_flush_tx_ring() [all …]
|
| /dpdk/drivers/net/atlantic/ |
| H A D | atl_rxtx.c | 201 if (!txq) { in atl_reset_tx_queue() 221 txq->tx_free = txq->nb_tx_desc - 1; in atl_reset_tx_queue() 255 txq = rte_zmalloc_socket("atlantic Tx queue", sizeof(*txq), in atl_tx_queue_setup() 276 txq->port_id, txq->queue_id); in atl_tx_queue_setup() 277 rte_free(txq); in atl_tx_queue_setup() 292 txq->port_id, txq->queue_id); in atl_tx_queue_setup() 294 rte_free(txq); in atl_tx_queue_setup() 329 txq->port_id, txq->queue_id); in atl_tx_init() 1319 txq->port_id, txq->queue_id, nb_pkts, txq->tx_free, in atl_xmit_pkts() 1320 txq->tx_tail, txq->tx_head); in atl_xmit_pkts() [all …]
|
| /dpdk/drivers/net/netvsc/ |
| H A D | hn_rxtx.c | 231 txq->agg_szleft = txq->agg_szmax; in hn_reset_txagg() 232 txq->agg_pktleft = txq->agg_pktmax; in hn_reset_txagg() 268 if (!txq) in hn_dev_tx_queue_setup() 290 txq->tx_rndis = txq->tx_rndis_mz->addr; in hn_dev_tx_queue_setup() 291 txq->tx_rndis_iova = txq->tx_rndis_mz->iova; in hn_dev_tx_queue_setup() 364 if (!txq) in hn_dev_tx_queue_release() 385 hn_process_events(txq->hv, txq->queue_id, 0); in hn_dev_tx_descriptor_status() 1201 txq->port_id, txq->queue_id); in hn_flush_txagg() 1207 txq->port_id, txq->queue_id, ret); in hn_flush_txagg() 1271 txq->agg_pktleft = txq->agg_pktmax - 1; in hn_try_txagg() [all …]
|
| /dpdk/drivers/net/i40e/ |
| H A D | i40e_rxtx.c | 392 txq->port_id, txq->queue_id); in i40e_xmit_cleanup() 1368 txq->nb_tx_free = (uint16_t)(txq->nb_tx_free + txq->tx_rs_thresh); in i40e_tx_free_bufs() 1369 txq->tx_next_dd = (uint16_t)(txq->tx_next_dd + txq->tx_rs_thresh); in i40e_tx_free_bufs() 1370 if (txq->tx_next_dd >= txq->nb_tx_desc) in i40e_tx_free_bufs() 1471 if (txq->tx_tail > txq->tx_next_rs) { in tx_xmit_pkts() 1481 if (txq->tx_tail >= txq->nb_tx_desc) in tx_xmit_pkts() 1768 if (!txq || !txq->q_set) { in i40e_dev_tx_queue_start() 1801 if (!txq || !txq->q_set) { in i40e_dev_tx_queue_stop() 2592 if (!txq || !txq->sw_ring) { in i40e_tx_queue_release_mbufs() 2717 if (txq->nb_tx_desc - txq->nb_tx_free < txq->tx_rs_thresh) in i40e_tx_done_cleanup_simple() [all …]
|
| /dpdk/drivers/net/bnx2x/ |
| H A D | bnx2x_rxtx.c | 198 txq = p_txq; in bnx2x_xmit_pkts() 199 sc = txq->sc; in bnx2x_xmit_pkts() 202 if ((unlikely((txq->nb_tx_desc - txq->nb_tx_avail) > in bnx2x_xmit_pkts() 223 if ((txq->nb_tx_desc - txq->nb_tx_avail) > in bnx2x_xmit_pkts() 249 if (txq == NULL) in bnx2x_dev_tx_queue_setup() 251 txq->sc = sc; in bnx2x_dev_tx_queue_setup() 257 txq->nb_tx_desc = TOTAL_TX_BD(txq); in bnx2x_dev_tx_queue_setup() 262 txq->tx_free_thresh = min(txq->tx_free_thresh, in bnx2x_dev_tx_queue_setup() 269 (unsigned long)TOTAL_TX_BD(txq), txq->nb_tx_pages); in bnx2x_dev_tx_queue_setup() 311 txq->nb_tx_avail = txq->nb_tx_desc; in bnx2x_dev_tx_queue_setup() [all …]
|
| /dpdk/drivers/net/qede/ |
| H A D | qede_rxtx.c | 440 txq->nb_tx_avail = txq->nb_tx_desc; in qede_alloc_tx_queue_mem() 480 if (!txq) in qede_tx_queue_setup() 483 qdev->fp_array[queue_idx * 2].txq = txq; in qede_tx_queue_setup() 486 if (!txq) in qede_tx_queue_setup() 489 qdev->fp_array[(queue_idx * 2) + 1].txq = txq; in qede_tx_queue_setup() 495 if (!txq) in qede_tx_queue_setup() 499 qdev->fp_array[queue_idx].txq = txq; in qede_tx_queue_setup() 831 txq = fp->txq; in qede_tx_queue_start() 935 while (txq->sw_tx_cons != txq->sw_tx_prod) { in qede_drain_txq() 949 txq->queue_id, txq->sw_tx_prod, in qede_drain_txq() [all …]
|