/Linux-v6.1/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_vnd.c | 64 u32 headroom; in rmnet_vnd_headroom() local 66 headroom = sizeof(struct rmnet_map_header); in rmnet_vnd_headroom() 69 headroom += sizeof(struct rmnet_map_ul_csum_header); in rmnet_vnd_headroom() 71 return headroom; in rmnet_vnd_headroom() 78 u32 headroom; in rmnet_vnd_change_mtu() local 82 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_change_mtu() 85 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu() 220 * flags, ARP type, needed headroom, etc... 256 u32 headroom; in rmnet_vnd_newlink() local 270 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_newlink() [all …]
|
/Linux-v6.1/drivers/net/ethernet/fungible/funeth/ |
D | funeth_rx.c | 22 /* Per packet headroom in non-XDP mode. Present only for 1-frag packets. */ 149 /* VA includes the headroom, frag size includes headroom + tailroom */ in fun_run_xdp() 160 /* remove headroom, which may not be FUN_XDP_HEADROOM now */ in fun_run_xdp() 373 unsigned int headroom; in fun_handle_cqe_pkt() local 389 headroom = be16_to_cpu(rxreq->headroom); in fun_handle_cqe_pkt() 390 if (likely(headroom)) in fun_handle_cqe_pkt() 391 tot_len += FUN_RX_TAILROOM + headroom; in fun_handle_cqe_pkt() 395 if (xdp_q && headroom == FUN_XDP_HEADROOM) { in fun_handle_cqe_pkt() 399 headroom = 0; /* XDP_PASS trims it */ in fun_handle_cqe_pkt() 404 if (likely(headroom)) { in fun_handle_cqe_pkt() [all …]
|
/Linux-v6.1/include/net/ |
D | xdp.h | 123 int headroom, int data_len, const bool meta_valid) in xdp_prepare_buff() argument 125 unsigned char *data = hard_start + headroom; in xdp_prepare_buff() 166 u16 headroom; member 203 void *data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_get_shared_info_from_frame() 251 xdp->data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_convert_frame_to_buff() 263 int metasize, headroom; in xdp_update_frame_from_buff() local 265 /* Assure headroom is available for storing info */ in xdp_update_frame_from_buff() 266 headroom = xdp->data - xdp->data_hard_start; in xdp_update_frame_from_buff() 269 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff() 280 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
|
D | xsk_buff_pool.h | 69 u32 headroom; member 115 xskb->xdp.data_hard_start = pool->addrs + addr + pool->headroom; in xp_init_xskb_addr() 123 xskb->dma = xskb->frame_dma + pool->headroom + XDP_PACKET_HEADROOM; in xp_init_xskb_dma() 223 offset += xskb->pool->headroom; in xp_get_handle()
|
D | lwtunnel.h | 28 __u16 headroom; member 105 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom() 106 return lwtstate->headroom; in lwtunnel_headroom()
|
/Linux-v6.1/drivers/net/wireless/quantenna/qtnfmac/ |
D | shm_ipc.c | 14 const u32 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_has_new_data() 25 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_handle_new_data() 59 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_irq_inbound_handler() 72 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_irq_outbound_handler() 128 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_ipc_send()
|
D | shm_ipc_defs.h | 25 u8 headroom[QTN_IPC_REG_HDR_SZ]; member 29 union qtnf_shm_ipc_region_headroom headroom; member
|
/Linux-v6.1/samples/bpf/ |
D | xdp_adjust_tail_kern.c | 72 int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); in send_icmp4_too_big() local 74 if (bpf_xdp_adjust_head(xdp, 0 - headroom)) in send_icmp4_too_big() 79 if (data + (ICMP_TOOBIG_SIZE + headroom) > data_end) in send_icmp4_too_big() 88 orig_eth = data + headroom; in send_icmp4_too_big() 110 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big()
|
/Linux-v6.1/net/core/ |
D | xdp.c | 586 xdpf->headroom = 0; in xdp_convert_zc_to_xdp_frame() 619 unsigned int headroom, frame_size; in __xdp_build_skb_from_frame() local 627 /* Part of headroom was reserved to xdpf */ in __xdp_build_skb_from_frame() 628 headroom = sizeof(*xdpf) + xdpf->headroom; in __xdp_build_skb_from_frame() 635 hard_start = xdpf->data - headroom; in __xdp_build_skb_from_frame() 640 skb_reserve(skb, headroom); in __xdp_build_skb_from_frame() 687 unsigned int headroom, totalsize; in xdpf_clone() local 692 headroom = xdpf->headroom + sizeof(*xdpf); in xdpf_clone() 693 totalsize = headroom + xdpf->len; in xdpf_clone() 705 nxdpf->data = addr + headroom; in xdpf_clone()
|
/Linux-v6.1/net/xdp/ |
D | xdp_umem.c | 153 u32 npgs_rem, chunk_size = mr->chunk_size, headroom = mr->headroom; in xdp_umem_reg() local 198 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg() 202 umem->headroom = headroom; in xdp_umem_reg()
|
/Linux-v6.1/drivers/nfc/nfcmrvl/ |
D | main.c | 100 int headroom; in nfcmrvl_nci_register_dev() local 126 headroom = NCI_SPI_HDR_LEN; in nfcmrvl_nci_register_dev() 129 headroom = tailroom = 0; in nfcmrvl_nci_register_dev() 132 headroom += NFCMRVL_HCI_EVENT_HEADER_SIZE; in nfcmrvl_nci_register_dev() 143 headroom, tailroom); in nfcmrvl_nci_register_dev()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.c | 220 u16 headroom; in mlx5e_get_linear_rq_headroom() local 223 return xsk->headroom; in mlx5e_get_linear_rq_headroom() 225 headroom = NET_IP_ALIGN; in mlx5e_get_linear_rq_headroom() 227 headroom += XDP_PACKET_HEADROOM; in mlx5e_get_linear_rq_headroom() 229 headroom += MLX5_RX_HEADROOM; in mlx5e_get_linear_rq_headroom() 231 return headroom; in mlx5e_get_linear_rq_headroom() 239 return xsk->headroom + hw_mtu; in mlx5e_rx_get_linear_sz_xsk() 244 /* SKBs built on XDP_PASS on XSK RQs don't have headroom. */ in mlx5e_rx_get_linear_sz_skb() 245 u16 headroom = xsk ? 0 : mlx5e_get_linear_rq_headroom(params, NULL); in mlx5e_rx_get_linear_sz_skb() local 248 return MLX5_SKB_FRAG_SZ(headroom + hw_mtu); in mlx5e_rx_get_linear_sz_skb() [all …]
|
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.c | 1055 * driver's needed headroom on system memory. This is in dpaa_fq_init() 2171 /* We move the headroom when we align it so we have to reset the in dpaa_a050385_wa_skb() 2191 int headroom; in dpaa_a050385_wa_xdpf() local 2193 /* Check the data alignment and make sure the headroom is large in dpaa_a050385_wa_xdpf() 2194 * enough to store the xdpf backpointer. Use an aligned headroom in dpaa_a050385_wa_xdpf() 2198 * byte frame headroom. If the XDP program uses all of it, copy the in dpaa_a050385_wa_xdpf() 2202 xdpf->headroom >= priv->tx_headroom) { in dpaa_a050385_wa_xdpf() 2203 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf() 2208 * store the xdpf backpointer. If the available headroom isn't large in dpaa_a050385_wa_xdpf() 2214 /* The XDP frame's headroom needs to be large enough to accommodate in dpaa_a050385_wa_xdpf() [all …]
|
/Linux-v6.1/drivers/net/ |
D | virtio_net.c | 40 /* Amount of XDP headroom to prepend to packets for use by xdp_adjust_head */ 426 unsigned int headroom) in mergeable_len_to_ctx() argument 428 return (void *)(unsigned long)((headroom << MRG_CTX_HEADER_SHIFT) | truesize); in mergeable_len_to_ctx() 447 unsigned int headroom) in page_to_skb() argument 465 /* If headroom is not 0, there is an offset between the beginning of the in page_to_skb() 469 * Buffers with headroom use PAGE_SIZE as alloc size, see in page_to_skb() 472 truesize = headroom ? PAGE_SIZE : truesize; in page_to_skb() 473 tailroom = truesize - headroom; in page_to_skb() 474 buf = p - headroom; in page_to_skb() 571 if (unlikely(xdpf->headroom < vi->hdr_len)) in __virtnet_xdp_xmit_one() [all …]
|
/Linux-v6.1/net/ax25/ |
D | ax25_out.c | 329 int headroom; in ax25_transmit_buffer() local 336 headroom = ax25_addr_size(ax25->digipeat); in ax25_transmit_buffer() 338 if (unlikely(skb_headroom(skb) < headroom)) { in ax25_transmit_buffer() 339 skb = skb_expand_head(skb, headroom); in ax25_transmit_buffer() 346 ptr = skb_push(skb, headroom); in ax25_transmit_buffer()
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_xsk.c | 20 unsigned int headroom; in nfp_net_xsk_rx_bufs_stash() local 22 headroom = xsk_pool_get_headroom(rx_ring->r_vec->xsk_pool); in nfp_net_xsk_rx_bufs_stash() 29 xsk_buff_xdp_get_frame_dma(xdp) + headroom; in nfp_net_xsk_rx_bufs_stash()
|
/Linux-v6.1/net/bpf/ |
D | test_run.c | 123 u32 headroom = XDP_PACKET_HEADROOM; in xdp_test_run_init_page() local 132 headroom -= meta_len; in xdp_test_run_init_page() 137 memcpy(data + headroom, orig_ctx->data_meta, frm_len); in xdp_test_run_init_page() 140 xdp_prepare_buff(new_ctx, data, headroom, frm_len, true); in xdp_test_run_init_page() 766 u32 size, u32 headroom, u32 tailroom) in BTF_ID_FLAGS() 771 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in BTF_ID_FLAGS() 778 data = kzalloc(size + headroom + tailroom, GFP_USER); in BTF_ID_FLAGS() 782 if (copy_from_user(data + headroom, data_in, user_size)) { in BTF_ID_FLAGS() 1283 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local 1305 headroom += sizeof(struct xdp_page_head); in bpf_prog_test_run_xdp() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | ip6_gre_headroom.sh | 4 # Test that enough headroom is reserved for the first packet passing through an 58 printf "TEST: %-60s [PASS]\n" "$type headroom"
|
/Linux-v6.1/drivers/net/usb/ |
D | int51x1.c | 59 int headroom = skb_headroom(skb); in int51x1_tx_fixup() local 76 (headroom + tailroom >= need_tail + INT51X1_HEADER_SIZE)) { in int51x1_tx_fixup() 77 if (headroom < INT51X1_HEADER_SIZE || tailroom < need_tail) { in int51x1_tx_fixup()
|
D | gl620a.c | 140 int headroom = skb_headroom(skb); in genelink_tx_fixup() local 149 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup() 150 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
|
/Linux-v6.1/include/net/bluetooth/ |
D | bluetooth.h | 507 size_t headroom, size_t tailroom) in bt_skb_sendmsg() argument 513 skb = bt_skb_send_alloc(sk, size + headroom + tailroom, in bt_skb_sendmsg() 518 skb_reserve(skb, headroom); in bt_skb_sendmsg() 537 size_t headroom, size_t tailroom) in bt_skb_sendmmsg() argument 541 skb = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg() 554 tmp = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg()
|
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.h | 368 /* Linear skbs sent as a S/G FD due to insufficient headroom */ 705 unsigned int headroom = DPAA2_ETH_SWA_SIZE; in dpaa2_eth_needed_headroom() local 711 return headroom; in dpaa2_eth_needed_headroom() 713 /* For non-linear skbs we have no headroom requirement, as we build a in dpaa2_eth_needed_headroom() 721 headroom += DPAA2_ETH_TX_HWA_SIZE; in dpaa2_eth_needed_headroom() 723 return headroom; in dpaa2_eth_needed_headroom() 726 /* Extra headroom space requested to hardware, in order to make sure there's
|
/Linux-v6.1/net/caif/ |
D | caif_socket.c | 54 int headroom, tailroom, maxframe; member 559 buffer_size = len + cf_sk->headroom + cf_sk->tailroom; in caif_seqpkt_sendmsg() 567 skb_reserve(skb, cf_sk->headroom); in caif_seqpkt_sendmsg() 627 size + cf_sk->headroom + in caif_stream_sendmsg() 634 skb_reserve(skb, cf_sk->headroom); in caif_stream_sendmsg() 747 int ifindex, headroom, tailroom; in caif_connect() local 829 &cf_sk->layer, &ifindex, &headroom, &tailroom); in caif_connect() 844 cf_sk->headroom = LL_RESERVED_SPACE_EXTRA(dev, headroom); in caif_connect() 849 cf_sk->maxframe = mtu - (headroom + tailroom); in caif_connect()
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | cs35l35.txt | 89 Section 7.30 Class H Headroom Control 90 - cirrus,classh-headroom 162 cirrus,classh-headroom-millivolt = <0x0B>;
|
/Linux-v6.1/drivers/net/ethernet/fungible/funcore/ |
D | fun_hci.h | 228 __u8 headroom; /* per packet headroom in 2B units */ member 247 __be16 headroom; /* headroom in bytes */ member 264 .tailroom = cpu_to_be16(_tailroom), .headroom = _headroom, \ 277 .id = cpu_to_be32(_id), .headroom = cpu_to_be16(_headroom), \ 1179 __be16 headroom; member
|