Home
last modified time | relevance | path

Searched refs:frag_stride (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c494 truesize += frag_info->frag_stride; in mlx4_en_complete_rx_desc()
495 if (frag_info->frag_stride == PAGE_SIZE / 2) { in mlx4_en_complete_rx_desc()
686 xdp.frame_sz = priv->frag_info[0].frag_stride; in mlx4_en_process_rx_cq()
1007 priv->frag_info[0].frag_stride = PAGE_SIZE; in mlx4_en_calc_rx_buf()
1019 int frag_stride, frag_size = eff_mtu - buf_size; in mlx4_en_calc_rx_buf() local
1026 frag_stride = ALIGN(frag_size, SMP_CACHE_BYTES); in mlx4_en_calc_rx_buf()
1030 nb = PAGE_SIZE / frag_stride; in mlx4_en_calc_rx_buf()
1031 pad = (PAGE_SIZE - nb * frag_stride) / nb; in mlx4_en_calc_rx_buf()
1033 priv->frag_info[i].frag_stride = frag_stride + pad; in mlx4_en_calc_rx_buf()
1054 priv->frag_info[i].frag_stride); in mlx4_en_calc_rx_buf()
Dmlx4_en.h483 u32 frag_stride; member
/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c326 if (next_frag.offset + frag_info[f].frag_stride > PAGE_SIZE) { in mlx5e_init_frags_partition()
335 next_frag.offset += frag_info[f].frag_stride; in mlx5e_init_frags_partition()
489 rq->buff.frame0_sz = rq->wqe.info.arr[0].frag_stride; in mlx5e_alloc_rq()
2093 int frag_stride; in mlx5e_build_rq_frags_info() local
2095 frag_stride = mlx5e_rx_get_linear_frag_sz(params, xsk); in mlx5e_build_rq_frags_info()
2096 frag_stride = roundup_pow_of_two(frag_stride); in mlx5e_build_rq_frags_info()
2099 info->arr[0].frag_stride = frag_stride; in mlx5e_build_rq_frags_info()
2101 info->wqe_bulk = PAGE_SIZE / frag_stride; in mlx5e_build_rq_frags_info()
2117 info->arr[i].frag_stride = roundup_pow_of_two(frag_size); in mlx5e_build_rq_frags_info()
Den.h558 int frag_stride; member
Den_rx.c1199 frag_consumed_bytes, frag_info->frag_stride); in mlx5e_skb_from_cqe_nonlinear()