/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_xdp.h | 7 #define STMMAC_MAX_RX_BUF_SIZE(num) (((num) * PAGE_SIZE) - XDP_PACKET_HEADROOM)
|
H A D | stmmac.h | 378 return XDP_PACKET_HEADROOM; in stmmac_rx_offset()
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_fdma.c | 23 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()
|
H A D | lan966x_xdp.c | 85 IFH_LEN_BYTES + XDP_PACKET_HEADROOM, in lan966x_xdp_run()
|
/openbmc/linux/drivers/net/vmxnet3/ |
H A D | vmxnet3_xdp.h | 18 #define VMXNET3_XDP_HEADROOM (XDP_PACKET_HEADROOM + NET_IP_ALIGN)
|
/openbmc/linux/include/net/ |
H A D | xdp_sock_drv.h | 31 return XDP_PACKET_HEADROOM + pool->headroom; in xsk_pool_get_headroom() 169 xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM; in xsk_buff_set_size()
|
H A D | xsk_buff_pool.h | 130 xskb->dma = xskb->frame_dma + pool->headroom + XDP_PACKET_HEADROOM; in xp_init_xskb_dma()
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_xdp.h | 18 VLAN_HLEN - XDP_PACKET_HEADROOM - \
|
H A D | ena_xdp.c | 242 rx_ring->rx_headroom = XDP_PACKET_HEADROOM; in ena_xdp_exchange_program_rx_in_range()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ring.h | 16 #define AQ_XDP_HEADROOM ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8)
|
/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_bpf.c | 94 xdp_prepare_buff(xdp, buf_va, XDP_PACKET_HEADROOM, pkt_len, false); in mana_run_xdp()
|
/openbmc/linux/net/xdp/ |
H A D | xdp_umem.c | 199 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg()
|
H A D | xsk_buff_pool.c | 85 XDP_PACKET_HEADROOM; in xp_create_and_assign_umem() 542 xskb->xdp.data = xskb->xdp.data_hard_start + XDP_PACKET_HEADROOM; in xp_alloc()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_adjust_tail.c | 126 max_grow = 4096 - XDP_PACKET_HEADROOM - tailroom; /* 3520 */ in test_xdp_adjust_tail_grow2()
|
/openbmc/linux/drivers/net/ |
H A D | xen-netfront.c | 977 xdp_init_buff(xdp, XEN_PAGE_SIZE - XDP_PACKET_HEADROOM, in xennet_run_xdp() 979 xdp_prepare_buff(xdp, page_address(pdata), XDP_PACKET_HEADROOM, in xennet_run_xdp() 1608 headroom = xdp ? XDP_PACKET_HEADROOM : 0; in talk_to_netback_xdp() 1621 unsigned long max_mtu = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM; in xennet_xdp_set() 2169 .offset = XDP_PACKET_HEADROOM, in xennet_create_page_pool() 2170 .max_len = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM, in xennet_create_page_pool()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 148 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()
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec.h | 351 #define FEC_ENET_XDP_HEADROOM (XDP_PACKET_HEADROOM)
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | cpsw_priv.h | 420 #define CPSW_HEADROOM_NA (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + NET_IP_ALIGN)
|
/openbmc/linux/include/net/mana/ |
H A D | mana.h | 305 #define MANA_XDP_MTU_MAX (PAGE_SIZE - MANA_RXBUF_PAD - XDP_PACKET_HEADROOM)
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc.h | 49 (SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - XDP_PACKET_HEADROOM)
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.c | 204 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()
|
H A D | nicvf_main.c | 550 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()
|
/openbmc/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_main.c | 34 #define TSNEP_RX_OFFSET (max(NET_SKB_PAD, XDP_PACKET_HEADROOM) + NET_IP_ALIGN) 1226 length = xdp->data_end - xdp->data_hard_start - XDP_PACKET_HEADROOM; in tsnep_xdp_run_prog() 1254 XDP_PACKET_HEADROOM; in tsnep_xdp_run_prog() 1444 XDP_PACKET_HEADROOM + TSNEP_RX_INLINE_METADATA_SIZE, in tsnep_rx_poll()
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.c | 158 XDP_PACKET_HEADROOM - DPAA_HWA_SIZE) 2598 xdp_prepare_buff(&xdp, vaddr + fd_off - XDP_PACKET_HEADROOM, in dpaa_run_xdp() 2599 XDP_PACKET_HEADROOM, qm_fd_get_length(fd), true); in dpaa_run_xdp() 3286 headroom = XDP_PACKET_HEADROOM; in dpaa_get_headroom()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_xsk.c | 418 XDP_PACKET_HEADROOM, size); in i40e_add_xsk_frag()
|