Home
last modified time | relevance | path

Searched refs:headroom (Results 1 – 25 of 75) sorted by relevance

123

/Linux-v4.19/include/net/
Dxdp.h78 u16 headroom; member
100 int headroom; in convert_to_xdp_frame() local
107 headroom = xdp->data - xdp->data_hard_start; in convert_to_xdp_frame()
110 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in convert_to_xdp_frame()
118 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in convert_to_xdp_frame()
Dlwtunnel.h28 __u16 headroom; member
102 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom()
103 return lwtstate->headroom; in lwtunnel_headroom()
/Linux-v4.19/samples/bpf/
Dxdp_adjust_tail_kern.c69 int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); in send_icmp4_too_big() local
71 if (bpf_xdp_adjust_head(xdp, 0 - headroom)) in send_icmp4_too_big()
76 if (data + (ICMP_TOOBIG_SIZE + headroom) > data_end) in send_icmp4_too_big()
85 orig_eth = data + headroom; in send_icmp4_too_big()
107 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big()
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Dshm_ipc.c27 const u32 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_has_new_data()
38 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_handle_new_data()
73 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_irq_inbound_handler()
86 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_irq_outbound_handler()
142 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_ipc_send()
Dshm_ipc_defs.h38 u8 headroom[QTN_IPC_REG_HDR_SZ]; member
42 union qtnf_shm_ipc_region_headroom headroom; member
/Linux-v4.19/net/xdp/
Dxdp_umem.c273 u32 chunk_size = mr->chunk_size, headroom = mr->headroom; in xdp_umem_reg() local
309 headroom = ALIGN(headroom, 64); in xdp_umem_reg()
311 size_chk = chunk_size - headroom - XDP_PACKET_HEADROOM; in xdp_umem_reg()
319 umem->headroom = headroom; in xdp_umem_reg()
320 umem->chunk_size_nohr = chunk_size - headroom; in xdp_umem_reg()
/Linux-v4.19/drivers/nfc/nfcmrvl/
Dmain.c111 int headroom; in nfcmrvl_nci_register_dev() local
137 headroom = NCI_SPI_HDR_LEN; in nfcmrvl_nci_register_dev()
140 headroom = tailroom = 0; in nfcmrvl_nci_register_dev()
143 headroom += NFCMRVL_HCI_EVENT_HEADER_SIZE; in nfcmrvl_nci_register_dev()
154 headroom, tailroom); in nfcmrvl_nci_register_dev()
/Linux-v4.19/drivers/net/ethernet/ibm/emac/
DKconfig32 int "Additional RX skb headroom (bytes)"
36 Additional receive skb headroom. Note, that driver
39 headroom.
/Linux-v4.19/net/decnet/
Ddn_neigh.c214 int headroom = dev->hard_header_len + sizeof(struct dn_long_packet) + 3; in dn_long_output() local
220 if (skb_headroom(skb) < headroom) { in dn_long_output()
221 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_long_output()
262 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_short_output() local
268 if (skb_headroom(skb) < headroom) { in dn_short_output()
269 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_short_output()
305 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_phase3_output() local
310 if (skb_headroom(skb) < headroom) { in dn_phase3_output()
311 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_phase3_output()
/Linux-v4.19/net/ax25/
Dax25_out.c333 int headroom; in ax25_transmit_buffer() local
340 headroom = ax25_addr_size(ax25->digipeat); in ax25_transmit_buffer()
342 if (skb_headroom(skb) < headroom) { in ax25_transmit_buffer()
343 if ((skbn = skb_realloc_headroom(skb, headroom)) == NULL) { in ax25_transmit_buffer()
356 ptr = skb_push(skb, headroom); in ax25_transmit_buffer()
/Linux-v4.19/net/bpf/
Dtest_run.c82 u32 headroom, u32 tailroom) in bpf_test_init() argument
87 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in bpf_test_init()
90 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init()
94 if (copy_from_user(data + headroom, data_in, size)) { in bpf_test_init()
/Linux-v4.19/drivers/net/usb/
Dgl620a.c152 int headroom = skb_headroom(skb); in genelink_tx_fixup() local
161 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup()
162 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
Dint51x1.c70 int headroom = skb_headroom(skb); in int51x1_tx_fixup() local
87 (headroom + tailroom >= need_tail + INT51X1_HEADER_SIZE)) { in int51x1_tx_fixup()
88 if (headroom < INT51X1_HEADER_SIZE || tailroom < need_tail) { in int51x1_tx_fixup()
Dcdc_eem.c119 int headroom = skb_headroom(skb); in eem_tx_fixup() local
123 (headroom >= EEM_HEAD)) in eem_tx_fixup()
126 if ((headroom + tailroom) in eem_tx_fixup()
Dkalmia.c171 int headroom = skb_headroom(skb); in kalmia_tx_fixup() local
174 if ((tailroom >= KALMIA_ALIGN_SIZE) && (headroom in kalmia_tx_fixup()
178 if ((headroom + tailroom) > (KALMIA_HEADER_LENGTH in kalmia_tx_fixup()
Dlg-vl600.c263 int headroom = skb_headroom(skb); in vl600_tx_fixup() local
267 headroom >= sizeof(*frame)) in vl600_tx_fixup()
271 if (headroom + tailroom + skb->len >= full_len) { in vl600_tx_fixup()
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethernet/
Ddpaa2-eth.h383 unsigned int headroom = DPAA2_ETH_SWA_SIZE; in dpaa2_eth_needed_headroom() local
393 headroom += DPAA2_ETH_TX_HWA_SIZE; in dpaa2_eth_needed_headroom()
395 return headroom; in dpaa2_eth_needed_headroom()
/Linux-v4.19/net/core/
Dlwt_bpf.c291 u32 headroom = nla_get_u32(tb[LWT_BPF_XMIT_HEADROOM]); in bpf_build_state() local
293 if (headroom > LWT_BPF_MAX_HEADROOM) { in bpf_build_state()
298 newts->headroom = headroom; in bpf_build_state()
/Linux-v4.19/net/caif/
Dcaif_socket.c53 int headroom, tailroom, maxframe; member
563 buffer_size = len + cf_sk->headroom + cf_sk->tailroom; in caif_seqpkt_sendmsg()
571 skb_reserve(skb, cf_sk->headroom); in caif_seqpkt_sendmsg()
631 size + cf_sk->headroom + in caif_stream_sendmsg()
638 skb_reserve(skb, cf_sk->headroom); in caif_stream_sendmsg()
751 int ifindex, headroom, tailroom; in caif_connect() local
833 &cf_sk->layer, &ifindex, &headroom, &tailroom); in caif_connect()
848 cf_sk->headroom = LL_RESERVED_SPACE_EXTRA(dev, headroom); in caif_connect()
853 cf_sk->maxframe = mtu - (headroom + tailroom); in caif_connect()
Dchnl_net.c263 int llifindex, headroom, tailroom, mtu; in chnl_net_open() local
276 &headroom, &tailroom); in chnl_net_open()
294 dev->hard_header_len = headroom + lldev->hard_header_len + in chnl_net_open()
304 mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); in chnl_net_open()
/Linux-v4.19/drivers/net/
Dveth.c273 static struct sk_buff *veth_build_skb(void *head, int headroom, int len, in veth_build_skb() argument
279 buflen = SKB_DATA_ALIGN(headroom + len) + in veth_build_skb()
286 skb_reserve(skb, headroom); in veth_build_skb()
379 void *hard_start = frame->data - frame->headroom; in veth_xdp_rcv_one()
384 unsigned int headroom; in veth_xdp_rcv_one() local
439 headroom = sizeof(struct xdp_frame) + frame->headroom - delta; in veth_xdp_rcv_one()
440 skb = veth_build_skb(head, headroom, len, 0); in veth_xdp_rcv_one()
460 u32 pktlen, headroom, act, metalen; in veth_xdp_rcv_skb() local
477 headroom = skb_headroom(skb) - mac_len; in veth_xdp_rcv_skb()
480 skb_is_nonlinear(skb) || headroom < XDP_PACKET_HEADROOM) { in veth_xdp_rcv_skb()
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
D11n_aggr.c167 int headroom = adapter->intf_hdr_len; in mwifiex_11n_aggregate_pkt() local
188 skb_reserve(skb_aggr, headroom + sizeof(struct txpd)); in mwifiex_11n_aggregate_pkt()
245 skb_push(skb_aggr, headroom); in mwifiex_11n_aggregate_pkt()
/Linux-v4.19/include/linux/
Dvirtio_caif.h14 u16 headroom; member
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dwmi.c299 u16 headroom = sizeof(struct htc_frame_hdr) + in ath9k_wmi_cmd() local
308 skb = alloc_skb(headroom + cmd_len, GFP_ATOMIC); in ath9k_wmi_cmd()
312 skb_reserve(skb, headroom); in ath9k_wmi_cmd()
/Linux-v4.19/include/net/caif/
Dcaif_dev.h70 int *headroom, int *tailroom);

123