Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_xdp.h7 #define STMMAC_MAX_RX_BUF_SIZE(num) (((num) * PAGE_SIZE) - XDP_PACKET_HEADROOM)
H A Dstmmac.h378 return XDP_PACKET_HEADROOM; in stmmac_rx_offset()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A 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()
H A Dlan966x_xdp.c85 IFH_LEN_BYTES + XDP_PACKET_HEADROOM, in lan966x_xdp_run()
/openbmc/linux/drivers/net/vmxnet3/
H A Dvmxnet3_xdp.h18 #define VMXNET3_XDP_HEADROOM (XDP_PACKET_HEADROOM + NET_IP_ALIGN)
/openbmc/linux/include/net/
H A Dxdp_sock_drv.h31 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 Dxsk_buff_pool.h130 xskb->dma = xskb->frame_dma + pool->headroom + XDP_PACKET_HEADROOM; in xp_init_xskb_dma()
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_xdp.h18 VLAN_HLEN - XDP_PACKET_HEADROOM - \
H A Dena_xdp.c242 rx_ring->rx_headroom = XDP_PACKET_HEADROOM; in ena_xdp_exchange_program_rx_in_range()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ring.h16 #define AQ_XDP_HEADROOM ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8)
/openbmc/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_bpf.c94 xdp_prepare_buff(xdp, buf_va, XDP_PACKET_HEADROOM, pkt_len, false); in mana_run_xdp()
/openbmc/linux/net/xdp/
H A Dxdp_umem.c199 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg()
H A Dxsk_buff_pool.c85 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 Dxdp_adjust_tail.c126 max_grow = 4096 - XDP_PACKET_HEADROOM - tailroom; /* 3520 */ in test_xdp_adjust_tail_grow2()
/openbmc/linux/drivers/net/
H A Dxen-netfront.c977 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 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()
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dfec.h351 #define FEC_ENET_XDP_HEADROOM (XDP_PACKET_HEADROOM)
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpsw_priv.h420 #define CPSW_HEADROOM_NA (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + NET_IP_ALIGN)
/openbmc/linux/include/net/mana/
H A Dmana.h305 #define MANA_XDP_MTU_MAX (PAGE_SIZE - MANA_RXBUF_PAD - XDP_PACKET_HEADROOM)
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.h49 (SKB_WITH_OVERHEAD(ENETC_RXB_TRUESIZE) - XDP_PACKET_HEADROOM)
/openbmc/linux/drivers/net/ethernet/cavium/thunder/
H A 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()
H A 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()
/openbmc/linux/drivers/net/ethernet/engleder/
H A Dtsnep_main.c34 #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 Ddpaa_eth.c158 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 Di40e_xsk.c418 XDP_PACKET_HEADROOM, size); in i40e_add_xsk_frag()

12