Home
last modified time | relevance | path

Searched full:headroom (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/Linux-v6.6/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_vnd.c69 u32 headroom; in rmnet_vnd_headroom() local
71 headroom = sizeof(struct rmnet_map_header); in rmnet_vnd_headroom()
74 headroom += sizeof(struct rmnet_map_ul_csum_header); in rmnet_vnd_headroom()
76 return headroom; in rmnet_vnd_headroom()
83 u32 headroom; in rmnet_vnd_change_mtu() local
87 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_change_mtu()
90 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu()
270 * flags, ARP type, needed headroom, etc...
306 u32 headroom; in rmnet_vnd_newlink() local
320 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_newlink()
[all …]
/Linux-v6.6/drivers/net/ethernet/fungible/funeth/
Dfuneth_rx.c22 /* 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()
372 unsigned int headroom; in fun_handle_cqe_pkt() local
388 headroom = be16_to_cpu(rxreq->headroom); in fun_handle_cqe_pkt()
389 if (likely(headroom)) in fun_handle_cqe_pkt()
390 tot_len += FUN_RX_TAILROOM + headroom; in fun_handle_cqe_pkt()
394 if (xdp_q && headroom == FUN_XDP_HEADROOM) { in fun_handle_cqe_pkt()
398 headroom = 0; /* XDP_PASS trims it */ in fun_handle_cqe_pkt()
403 if (likely(headroom)) { in fun_handle_cqe_pkt()
[all …]
/Linux-v6.6/include/net/
Dxdp.h126 int headroom, int data_len, const bool meta_valid) in xdp_prepare_buff() argument
128 unsigned char *data = hard_start + headroom; in xdp_prepare_buff()
169 u16 headroom; member
206 void *data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_get_shared_info_from_frame()
254 xdp->data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_convert_frame_to_buff()
266 int metasize, headroom; in xdp_update_frame_from_buff() local
268 /* Assure headroom is available for storing info */ in xdp_update_frame_from_buff()
269 headroom = xdp->data - xdp->data_hard_start; in xdp_update_frame_from_buff()
272 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
283 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
Dgso.h34 int new_headroom, headroom; in gso_pskb_expand_head() local
37 headroom = skb_headroom(skb); in gso_pskb_expand_head()
43 SKB_GSO_CB(skb)->mac_offset += (new_headroom - headroom); in gso_pskb_expand_head()
Dxsk_buff_pool.h76 u32 headroom; member
122 xskb->xdp.data_hard_start = pool->addrs + addr + pool->headroom; in xp_init_xskb_addr()
130 xskb->dma = xskb->frame_dma + pool->headroom + XDP_PACKET_HEADROOM; in xp_init_xskb_dma()
230 offset += xskb->pool->headroom; in xp_get_handle()
Dlwtunnel.h31 __u16 headroom; member
108 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom()
109 return lwtstate->headroom; in lwtunnel_headroom()
/Linux-v6.6/drivers/net/wireless/quantenna/qtnfmac/
Dshm_ipc.c14 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()
Dshm_ipc_defs.h25 u8 headroom[QTN_IPC_REG_HDR_SZ]; member
29 union qtnf_shm_ipc_region_headroom headroom; member
/Linux-v6.6/samples/bpf/
Dxdp_adjust_tail_kern.c72 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.6/net/core/
Dxdp.c573 xdpf->headroom = 0; in xdp_convert_zc_to_xdp_frame()
605 unsigned int headroom, frame_size; in __xdp_build_skb_from_frame() local
613 /* Part of headroom was reserved to xdpf */ in __xdp_build_skb_from_frame()
614 headroom = sizeof(*xdpf) + xdpf->headroom; in __xdp_build_skb_from_frame()
621 hard_start = xdpf->data - headroom; in __xdp_build_skb_from_frame()
626 skb_reserve(skb, headroom); in __xdp_build_skb_from_frame()
673 unsigned int headroom, totalsize; in xdpf_clone() local
678 headroom = xdpf->headroom + sizeof(*xdpf); in xdpf_clone()
679 totalsize = headroom + xdpf->len; in xdpf_clone()
691 nxdpf->data = addr + headroom; in xdpf_clone()
/Linux-v6.6/net/xdp/
Dxdp_umem.c154 u32 chunk_size = mr->chunk_size, headroom = mr->headroom; in xdp_umem_reg() local
199 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg()
203 umem->headroom = headroom; in xdp_umem_reg()
/Linux-v6.6/drivers/nfc/nfcmrvl/
Dmain.c100 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.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c221 u16 headroom; in mlx5e_get_linear_rq_headroom() local
224 return xsk->headroom; in mlx5e_get_linear_rq_headroom()
226 headroom = NET_IP_ALIGN; in mlx5e_get_linear_rq_headroom()
228 headroom += XDP_PACKET_HEADROOM; in mlx5e_get_linear_rq_headroom()
230 headroom += MLX5_RX_HEADROOM; in mlx5e_get_linear_rq_headroom()
232 return headroom; in mlx5e_get_linear_rq_headroom()
240 return xsk->headroom + hw_mtu; in mlx5e_rx_get_linear_sz_xsk()
245 /* SKBs built on XDP_PASS on XSK RQs don't have headroom. */ in mlx5e_rx_get_linear_sz_skb()
246 u16 headroom = xsk ? 0 : mlx5e_get_linear_rq_headroom(params, NULL); in mlx5e_rx_get_linear_sz_skb() local
249 return MLX5_SKB_FRAG_SZ(headroom + hw_mtu); in mlx5e_rx_get_linear_sz_skb()
[all …]
/Linux-v6.6/drivers/net/
Dvirtio_net.c41 /* Amount of XDP headroom to prepend to packets for use by xdp_adjust_head */
465 unsigned int headroom) in mergeable_len_to_ctx() argument
467 return (void *)(unsigned long)((headroom << MRG_CTX_HEADER_SHIFT) | truesize); in mergeable_len_to_ctx()
481 unsigned int headroom, in virtnet_build_skb() argument
490 skb_reserve(skb, headroom); in virtnet_build_skb()
501 unsigned int headroom) in page_to_skb() argument
519 buf = p - headroom; in page_to_skb()
523 tailroom = truesize - headroom - hdr_padded_len - len; in page_to_skb()
837 if (unlikely(xdpf->headroom < vi->hdr_len)) in __virtnet_xdp_xmit_one()
849 * xdpf->headroom. Therefore, we need to update the value of in __virtnet_xdp_xmit_one()
[all …]
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c1071 * driver's needed headroom on system memory. This is in dpaa_fq_init()
2182 /* We move the headroom when we align it so we have to reset the in dpaa_a050385_wa_skb()
2202 int headroom; in dpaa_a050385_wa_xdpf() local
2204 /* Check the data alignment and make sure the headroom is large in dpaa_a050385_wa_xdpf()
2205 * enough to store the xdpf backpointer. Use an aligned headroom in dpaa_a050385_wa_xdpf()
2209 * byte frame headroom. If the XDP program uses all of it, copy the in dpaa_a050385_wa_xdpf()
2213 xdpf->headroom >= priv->tx_headroom) { in dpaa_a050385_wa_xdpf()
2214 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2219 * store the xdpf backpointer. If the available headroom isn't large in dpaa_a050385_wa_xdpf()
2225 /* The XDP frame's headroom needs to be large enough to accommodate in dpaa_a050385_wa_xdpf()
[all …]
/Linux-v6.6/net/ax25/
Dax25_out.c329 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.6/drivers/net/ethernet/netronome/nfp/
Dnfp_net_xsk.c20 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.6/net/bpf/
Dtest_run.c133 u32 headroom = XDP_PACKET_HEADROOM; in xdp_test_run_init_page() local
142 headroom -= meta_len; in xdp_test_run_init_page()
147 memcpy(data + headroom, orig_ctx->data_meta, frm_len); in xdp_test_run_init_page()
150 xdp_prepare_buff(new_ctx, data, headroom, frm_len, true); in xdp_test_run_init_page()
627 u32 size, u32 headroom, u32 tailroom) in BTF_ID_FLAGS()
632 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in BTF_ID_FLAGS()
639 data = kzalloc(size + headroom + tailroom, GFP_USER); in BTF_ID_FLAGS()
643 if (copy_from_user(data + headroom, data_in, user_size)) { in BTF_ID_FLAGS()
1146 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local
1171 headroom += sizeof(struct xdp_page_head); in bpf_prog_test_run_xdp()
[all …]
/Linux-v6.6/tools/testing/selftests/net/
Dip6_gre_headroom.sh4 # Test that enough headroom is reserved for the first packet passing through an
58 printf "TEST: %-60s [PASS]\n" "$type headroom"
/Linux-v6.6/drivers/net/usb/
Dint51x1.c59 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()
Dgl620a.c140 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.6/include/net/bluetooth/
Dbluetooth.h525 size_t headroom, size_t tailroom) in bt_skb_sendmsg() argument
531 skb = bt_skb_send_alloc(sk, size + headroom + tailroom, in bt_skb_sendmsg()
536 skb_reserve(skb, headroom); in bt_skb_sendmsg()
555 size_t headroom, size_t tailroom) in bt_skb_sendmmsg() argument
559 skb = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg()
572 tmp = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg()
/Linux-v6.6/net/caif/
Dcaif_socket.c54 int headroom, tailroom, maxframe; member
555 buffer_size = len + cf_sk->headroom + cf_sk->tailroom; in caif_seqpkt_sendmsg()
563 skb_reserve(skb, cf_sk->headroom); in caif_seqpkt_sendmsg()
623 size + cf_sk->headroom + in caif_stream_sendmsg()
630 skb_reserve(skb, cf_sk->headroom); in caif_stream_sendmsg()
743 int ifindex, headroom, tailroom; in caif_connect() local
825 &cf_sk->layer, &ifindex, &headroom, &tailroom); in caif_connect()
840 cf_sk->headroom = LL_RESERVED_SPACE_EXTRA(dev, headroom); in caif_connect()
845 cf_sk->maxframe = mtu - (headroom + tailroom); in caif_connect()
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.h388 /* Linear skbs sent as a S/G FD due to insufficient headroom */
743 unsigned int headroom = DPAA2_ETH_SWA_SIZE; in dpaa2_eth_needed_headroom() local
749 return headroom; in dpaa2_eth_needed_headroom()
751 /* For non-linear skbs we have no headroom requirement, as we build a in dpaa2_eth_needed_headroom()
759 headroom += DPAA2_ETH_TX_HWA_SIZE; in dpaa2_eth_needed_headroom()
761 return headroom; in dpaa2_eth_needed_headroom()
764 /* Extra headroom space requested to hardware, in order to make sure there's
/Linux-v6.6/Documentation/devicetree/bindings/sound/
Dcs35l35.txt89 Section 7.30 Class H Headroom Control
90 - cirrus,classh-headroom
162 cirrus,classh-headroom-millivolt = <0x0B>;

12345678910>>...13