Home
last modified time | relevance | path

Searched refs:XDP_PACKET_HEADROOM (Results 1 – 25 of 48) sorted by relevance

12

/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdma.c23 db->dataptr = page_pool_get_dma_addr(page) + XDP_PACKET_HEADROOM; in lan966x_fdma_rx_alloc_page()
79 .offset = XDP_PACKET_HEADROOM, in lan966x_fdma_rx_alloc_page_pool()
477 (dma_addr_t)db->dataptr + XDP_PACKET_HEADROOM, in lan966x_fdma_rx_check_frame()
481 lan966x_ifh_get_src_port(page_address(page) + XDP_PACKET_HEADROOM, in lan966x_fdma_rx_check_frame()
512 skb_reserve(skb, XDP_PACKET_HEADROOM); in lan966x_fdma_rx_get_frame()
763 ifh = page_address(page) + XDP_PACKET_HEADROOM; in lan966x_fdma_xmit_xdpf()
770 dma_addr + XDP_PACKET_HEADROOM, in lan966x_fdma_xmit_xdpf()
780 dma_addr + XDP_PACKET_HEADROOM); in lan966x_fdma_xmit_xdpf()
959 XDP_PACKET_HEADROOM; in lan966x_fdma_get_max_frame()
Dlan966x_xdp.c85 IFH_LEN_BYTES + XDP_PACKET_HEADROOM, in lan966x_xdp_run()
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_xdp.h7 #define STMMAC_MAX_RX_BUF_SIZE(num) (((num) * PAGE_SIZE) - XDP_PACKET_HEADROOM)
Dstmmac.h375 return XDP_PACKET_HEADROOM; in stmmac_rx_offset()
/Linux-v6.6/drivers/net/vmxnet3/
Dvmxnet3_xdp.h18 #define VMXNET3_XDP_HEADROOM (XDP_PACKET_HEADROOM + NET_IP_ALIGN)
/Linux-v6.6/include/net/
Dxdp_sock_drv.h31 return XDP_PACKET_HEADROOM + pool->headroom; in xsk_pool_get_headroom()
152 xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM; in xsk_buff_set_size()
Dxsk_buff_pool.h130 xskb->dma = xskb->frame_dma + pool->headroom + XDP_PACKET_HEADROOM; in xp_init_xskb_dma()
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.h16 #define AQ_XDP_HEADROOM ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8)
/Linux-v6.6/drivers/net/ethernet/microsoft/mana/
Dmana_bpf.c94 xdp_prepare_buff(xdp, buf_va, XDP_PACKET_HEADROOM, pkt_len, false); in mana_run_xdp()
/Linux-v6.6/net/xdp/
Dxdp_umem.c199 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg()
Dxsk_buff_pool.c85 XDP_PACKET_HEADROOM; in xp_create_and_assign_umem()
539 xskb->xdp.data = xskb->xdp.data_hard_start + XDP_PACKET_HEADROOM; in xp_alloc()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dxdp_adjust_tail.c126 max_grow = 4096 - XDP_PACKET_HEADROOM - tailroom; /* 3520 */ in test_xdp_adjust_tail_grow2()
/Linux-v6.6/drivers/net/
Dxen-netfront.c976 xdp_init_buff(xdp, XEN_PAGE_SIZE - XDP_PACKET_HEADROOM, in xennet_run_xdp()
978 xdp_prepare_buff(xdp, page_address(pdata), XDP_PACKET_HEADROOM, in xennet_run_xdp()
1607 headroom = xdp ? XDP_PACKET_HEADROOM : 0; in talk_to_netback_xdp()
1620 unsigned long max_mtu = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM; in xennet_xdp_set()
2168 .offset = XDP_PACKET_HEADROOM, in xennet_create_page_pool()
2169 .max_len = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM, in xennet_create_page_pool()
/Linux-v6.6/drivers/net/ethernet/amazon/ena/
Dena_netdev.h120 VLAN_HLEN - XDP_PACKET_HEADROOM - \
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c148 frags->page_offset = XDP_PACKET_HEADROOM; in mlx4_en_prepare_rx_desc()
150 XDP_PACKET_HEADROOM); in mlx4_en_prepare_rx_desc()
1063 priv->rx_headroom = XDP_PACKET_HEADROOM; in mlx4_en_calc_rx_buf()
/Linux-v6.6/drivers/net/ethernet/freescale/
Dfec.h351 #define FEC_ENET_XDP_HEADROOM (XDP_PACKET_HEADROOM)
/Linux-v6.6/drivers/net/ethernet/freescale/enetc/
Denetc.h49 (SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - XDP_PACKET_HEADROOM)
/Linux-v6.6/drivers/net/ethernet/ti/
Dcpsw_priv.h420 #define CPSW_HEADROOM_NA (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + NET_IP_ALIGN)
/Linux-v6.6/include/net/mana/
Dmana.h302 #define MANA_XDP_MTU_MAX (PAGE_SIZE - MANA_RXBUF_PAD - XDP_PACKET_HEADROOM)
/Linux-v6.6/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c204 buf_len += XDP_PACKET_HEADROOM; in nicvf_alloc_rcv_buffer()
225 pgcache->dma_addr = *rbuf + XDP_PACKET_HEADROOM; in nicvf_alloc_rcv_buffer()
1654 len += XDP_PACKET_HEADROOM; in nicvf_unmap_rcv_buffer()
Dnicvf_main.c550 xdp_init_buff(&xdp, RCV_FRAG_LEN + XDP_PACKET_HEADROOM, in nicvf_xdp_rx()
576 RCV_FRAG_LEN + XDP_PACKET_HEADROOM, in nicvf_xdp_rx()
607 RCV_FRAG_LEN + XDP_PACKET_HEADROOM, in nicvf_xdp_rx()
/Linux-v6.6/drivers/net/ethernet/engleder/
Dtsnep_main.c34 #define TSNEP_RX_OFFSET (max(NET_SKB_PAD, XDP_PACKET_HEADROOM) + NET_IP_ALIGN)
1218 length = xdp->data_end - xdp->data_hard_start - XDP_PACKET_HEADROOM; in tsnep_xdp_run_prog()
1246 XDP_PACKET_HEADROOM; in tsnep_xdp_run_prog()
1436 XDP_PACKET_HEADROOM + TSNEP_RX_INLINE_METADATA_SIZE, in tsnep_rx_poll()
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c158 XDP_PACKET_HEADROOM - DPAA_HWA_SIZE)
2583 xdp_prepare_buff(&xdp, vaddr + fd_off - XDP_PACKET_HEADROOM, in dpaa_run_xdp()
2584 XDP_PACKET_HEADROOM, qm_fd_get_length(fd), true); in dpaa_run_xdp()
3271 headroom = XDP_PACKET_HEADROOM; in dpaa_get_headroom()
/Linux-v6.6/tools/testing/selftests/bpf/
Dxskxceiver.c826 expected_offset = (pkt_offset + headroom + XDP_PACKET_HEADROOM) % umem->frame_size; in is_offset_correct()
1388 u32 rx_frame_size = umem->frame_size - XDP_PACKET_HEADROOM; in xsk_populate_fill_ring()
1769 XDP_PACKET_HEADROOM - MIN_PKT_SIZE * 3; in testapp_stats_rx_dropped()
/Linux-v6.6/net/bpf/
Dtest_run.c133 u32 headroom = XDP_PACKET_HEADROOM; in xdp_test_run_init_page()
1146 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp()

12