Home
last modified time | relevance | path

Searched refs:nb_buffs (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.c245 u32 nb_buffs, i; in i40e_alloc_rx_buffers_zc() local
251 nb_buffs = min_t(u16, count, rx_ring->count - ntu); in i40e_alloc_rx_buffers_zc()
252 nb_buffs = xsk_buff_alloc_batch(rx_ring->xsk_pool, xdp, nb_buffs); in i40e_alloc_rx_buffers_zc()
253 if (!nb_buffs) in i40e_alloc_rx_buffers_zc()
256 i = nb_buffs; in i40e_alloc_rx_buffers_zc()
266 ntu += nb_buffs; in i40e_alloc_rx_buffers_zc()
276 return count == nb_buffs; in i40e_alloc_rx_buffers_zc()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c485 u32 nb_buffs_extra = 0, nb_buffs = 0; in __ice_alloc_rx_bufs_zc() local
509 nb_buffs = ice_fill_rx_descs(rx_ring->xsk_pool, xdp, rx_desc, count); in __ice_alloc_rx_bufs_zc()
511 ntu += nb_buffs; in __ice_alloc_rx_bufs_zc()
519 return total_count == (nb_buffs_extra + nb_buffs); in __ice_alloc_rx_bufs_zc()