Home
last modified time | relevance | path

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

12345678910>>...13

/openbmc/linux/drivers/net/ethernet/qualcomm/rmnet/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A 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 …]
/openbmc/linux/include/net/
H A 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()
H A 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()
H A 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()
H A Dlwtunnel.h31 __u16 headroom; member
108 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom()
109 return lwtstate->headroom; in lwtunnel_headroom()
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/
H A 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()
H A Dshm_ipc_defs.h25 u8 headroom[QTN_IPC_REG_HDR_SZ]; member
29 union qtnf_shm_ipc_region_headroom headroom; member
/openbmc/linux/samples/bpf/
H A Dxdp_adjust_tail_kern.c73 int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); in send_icmp4_too_big() local
75 if (bpf_xdp_adjust_head(xdp, 0 - headroom)) in send_icmp4_too_big()
80 if (data + (ICMP_TOOBIG_SIZE + headroom) > data_end) in send_icmp4_too_big()
89 orig_eth = data + headroom; in send_icmp4_too_big()
111 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big()
/openbmc/linux/net/core/
H A Dxdp.c569 xdpf->headroom = 0; in xdp_convert_zc_to_xdp_frame()
601 unsigned int headroom, frame_size; in __xdp_build_skb_from_frame() local
609 /* Part of headroom was reserved to xdpf */ in __xdp_build_skb_from_frame()
610 headroom = sizeof(*xdpf) + xdpf->headroom; in __xdp_build_skb_from_frame()
617 hard_start = xdpf->data - headroom; in __xdp_build_skb_from_frame()
622 skb_reserve(skb, headroom); in __xdp_build_skb_from_frame()
669 unsigned int headroom, totalsize; in xdpf_clone() local
674 headroom = xdpf->headroom + sizeof(*xdpf); in xdpf_clone()
675 totalsize = headroom + xdpf->len; in xdpf_clone()
687 nxdpf->data = addr + headroom; in xdpf_clone()
/openbmc/linux/net/xdp/
H A 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()
/openbmc/linux/drivers/nfc/nfcmrvl/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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 …]
/openbmc/bmcweb/redfish-core/include/generated/enums/
H A Dsensor.hpp84 Headroom, enumerator
161 {ReadingBasisType::Headroom, "Headroom"},
/openbmc/linux/drivers/net/
H A Dvirtio_net.c41 /* Amount of XDP headroom to prepend to packets for use by xdp_adjust_head */
475 unsigned int headroom) in mergeable_len_to_ctx() argument
477 return (void *)(unsigned long)((headroom << MRG_CTX_HEADER_SHIFT) | truesize); in mergeable_len_to_ctx()
491 unsigned int headroom, in virtnet_build_skb() argument
500 skb_reserve(skb, headroom); in virtnet_build_skb()
511 unsigned int headroom) in page_to_skb() argument
529 buf = p - headroom; in page_to_skb()
533 tailroom = truesize - headroom - hdr_padded_len - len; in page_to_skb()
847 if (unlikely(xdpf->headroom < vi->hdr_len)) in __virtnet_xdp_xmit_one()
859 * xdpf->headroom. Therefore, we need to update the value of in __virtnet_xdp_xmit_one()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c1079 * driver's needed headroom on system memory. This is in dpaa_fq_init()
2190 /* We move the headroom when we align it so we have to reset the in dpaa_a050385_wa_skb()
2210 int headroom; in dpaa_a050385_wa_xdpf() local
2212 /* Check the data alignment and make sure the headroom is large in dpaa_a050385_wa_xdpf()
2213 * enough to store the xdpf backpointer. Use an aligned headroom in dpaa_a050385_wa_xdpf()
2217 * byte frame headroom. If the XDP program uses all of it, copy the in dpaa_a050385_wa_xdpf()
2221 xdpf->headroom >= priv->tx_headroom) { in dpaa_a050385_wa_xdpf()
2222 xdpf->headroom = priv->tx_headroom; in dpaa_a050385_wa_xdpf()
2227 * store the xdpf backpointer. If the available headroom isn't large in dpaa_a050385_wa_xdpf()
2233 /* The XDP frame's headroom needs to be large enough to accommodate in dpaa_a050385_wa_xdpf()
[all …]
/openbmc/linux/net/ax25/
H A 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()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A 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()
/openbmc/linux/tools/testing/selftests/net/
H A 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"
/openbmc/linux/net/bpf/
H A 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()
628 u32 size, u32 headroom, u32 tailroom) in BTF_ID_FLAGS()
633 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in BTF_ID_FLAGS()
640 data = kzalloc(size + headroom + tailroom, GFP_USER); in BTF_ID_FLAGS()
644 if (copy_from_user(data + headroom, data_in, user_size)) { in BTF_ID_FLAGS()
1153 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local
1178 headroom += sizeof(struct xdp_page_head); in bpf_prog_test_run_xdp()
[all …]
/openbmc/linux/drivers/net/usb/
H A 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()
/openbmc/linux/include/net/bluetooth/
H A Dbluetooth.h529 size_t headroom, size_t tailroom) in bt_skb_sendmsg() argument
535 skb = bt_skb_send_alloc(sk, size + headroom + tailroom, in bt_skb_sendmsg()
540 skb_reserve(skb, headroom); in bt_skb_sendmsg()
559 size_t headroom, size_t tailroom) in bt_skb_sendmmsg() argument
563 skb = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg()
576 tmp = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg()
/openbmc/linux/net/caif/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.h388 /* Linear skbs sent as a S/G FD due to insufficient headroom */
743 unsigned int headroom = DPAA2_ETH_SWA_SIZE + DPAA2_ETH_TX_BUF_ALIGN; 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
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmcu.c16 len = ops->headroom + len + ops->tailroom; in __mt76_mcu_msg_alloc()
23 skb_reserve(skb, ops->headroom); in __mt76_mcu_msg_alloc()

12345678910>>...13