Lines Matching refs:tx_ring

435 static void ixgbe_clean_xdp_tx_buffer(struct ixgbe_ring *tx_ring,  in ixgbe_clean_xdp_tx_buffer()  argument
439 dma_unmap_single(tx_ring->dev, in ixgbe_clean_xdp_tx_buffer()
446 struct ixgbe_ring *tx_ring, int napi_budget) in ixgbe_clean_xdp_tx_irq() argument
448 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq()
450 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_clean_xdp_tx_irq()
455 tx_bi = &tx_ring->tx_buffer_info[ntc]; in ixgbe_clean_xdp_tx_irq()
456 tx_desc = IXGBE_TX_DESC(tx_ring, ntc); in ixgbe_clean_xdp_tx_irq()
466 ixgbe_clean_xdp_tx_buffer(tx_ring, tx_bi); in ixgbe_clean_xdp_tx_irq()
475 if (unlikely(ntc == tx_ring->count)) { in ixgbe_clean_xdp_tx_irq()
477 tx_bi = tx_ring->tx_buffer_info; in ixgbe_clean_xdp_tx_irq()
478 tx_desc = IXGBE_TX_DESC(tx_ring, 0); in ixgbe_clean_xdp_tx_irq()
485 tx_ring->next_to_clean = ntc; in ixgbe_clean_xdp_tx_irq()
487 u64_stats_update_begin(&tx_ring->syncp); in ixgbe_clean_xdp_tx_irq()
488 tx_ring->stats.bytes += total_bytes; in ixgbe_clean_xdp_tx_irq()
489 tx_ring->stats.packets += total_packets; in ixgbe_clean_xdp_tx_irq()
490 u64_stats_update_end(&tx_ring->syncp); in ixgbe_clean_xdp_tx_irq()
500 return ixgbe_xmit_zc(tx_ring, q_vector->tx.work_limit); in ixgbe_clean_xdp_tx_irq()
534 void ixgbe_xsk_clean_tx_ring(struct ixgbe_ring *tx_ring) in ixgbe_xsk_clean_tx_ring() argument
536 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_xsk_clean_tx_ring()
537 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_xsk_clean_tx_ring()
542 tx_bi = &tx_ring->tx_buffer_info[ntc]; in ixgbe_xsk_clean_tx_ring()
545 ixgbe_clean_xdp_tx_buffer(tx_ring, tx_bi); in ixgbe_xsk_clean_tx_ring()
552 if (ntc == tx_ring->count) in ixgbe_xsk_clean_tx_ring()