/net/decnet/ |
D | dn_neigh.c | 214 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()
|
/net/ax25/ |
D | ax25_out.c | 333 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()
|
/net/bpf/ |
D | test_run.c | 73 u32 headroom, u32 tailroom) in bpf_test_init() argument 78 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in bpf_test_init() 81 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init() 85 if (copy_from_user(data + headroom, data_in, size)) { in bpf_test_init()
|
/net/caif/ |
D | caif_socket.c | 53 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()
|
D | chnl_net.c | 264 int llifindex, headroom, tailroom, mtu; in chnl_net_open() local 277 &headroom, &tailroom); in chnl_net_open() 295 dev->hard_header_len = headroom + lldev->hard_header_len + in chnl_net_open() 305 mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); in chnl_net_open()
|
/net/core/ |
D | lwt_bpf.c | 294 u32 headroom = nla_get_u32(tb[LWT_BPF_XMIT_HEADROOM]); in bpf_build_state() local 296 if (headroom > LWT_BPF_MAX_HEADROOM) { in bpf_build_state() 301 newts->headroom = headroom; in bpf_build_state()
|
D | skbuff.c | 1381 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom, in __pskb_copy_fclone() argument 1384 unsigned int size = skb_headlen(skb) + headroom; in __pskb_copy_fclone() 1392 skb_reserve(n, headroom); in __pskb_copy_fclone() 1533 struct sk_buff *skb_realloc_headroom(struct sk_buff *skb, unsigned int headroom) in skb_realloc_headroom() argument 1536 int delta = headroom - skb_headroom(skb); in skb_realloc_headroom() 3507 unsigned int headroom; in skb_segment() local 3587 headroom = skb_headroom(head_skb); in skb_segment() 3644 if (skb_cow_head(nskb, doffset + headroom)) { in skb_segment() 3653 nskb = __alloc_skb(hsize + doffset + headroom, in skb_segment() 3660 skb_reserve(nskb, headroom); in skb_segment() [all …]
|
/net/iucv/ |
D | af_iucv.c | 1044 size_t headroom = 0; in iucv_sock_sendmsg() local 1124 headroom = sizeof(struct af_iucv_trans_hdr) + ETH_HLEN; in iucv_sock_sendmsg() 1133 headroom = sizeof(struct iucv_array) * in iucv_sock_sendmsg() 1135 linear = PAGE_SIZE - headroom; in iucv_sock_sendmsg() 1138 skb = sock_alloc_send_pskb(sk, headroom + linear, len - linear, in iucv_sock_sendmsg() 1142 if (headroom) in iucv_sock_sendmsg() 1143 skb_reserve(skb, headroom); in iucv_sock_sendmsg() 1247 size_t headroom, linear; in alloc_iucv_recv_skb() local 1252 headroom = 0; in alloc_iucv_recv_skb() 1255 headroom = sizeof(struct iucv_array) * (MAX_SKB_FRAGS + 1); in alloc_iucv_recv_skb() [all …]
|
/net/ipv6/ |
D | seg6_local.c | 54 int headroom; member 566 slwt->headroom += len; in parse_nla_srh() 766 slwt->headroom += desc->static_headroom; in parse_nla_action() 818 newts->headroom = slwt->headroom; in seg6_local_build_state()
|
D | seg6_iptunnel.c | 437 newts->headroom = seg6_lwt_headroom(tuninfo); in seg6_build_state()
|
/net/ipv4/ |
D | ip_tunnel.c | 562 u32 headroom = sizeof(struct iphdr); in ip_md_tunnel_xmit() local 613 headroom += LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len; in ip_md_tunnel_xmit() 614 if (headroom > dev->needed_headroom) in ip_md_tunnel_xmit() 615 dev->needed_headroom = headroom; in ip_md_tunnel_xmit()
|
/net/mpls/ |
D | mpls_iptunnel.c | 210 newts->headroom = mpls_encap_size(tun_encap_info); in mpls_build_state()
|
/net/mac80211/ |
D | tx.c | 1898 int headroom; in ieee80211_xmit() local 1903 headroom = local->tx_headroom; in ieee80211_xmit() 1905 headroom += sdata->encrypt_headroom; in ieee80211_xmit() 1906 headroom -= skb_headroom(skb); in ieee80211_xmit() 1907 headroom = max_t(int, 0, headroom); in ieee80211_xmit() 1909 if (ieee80211_skb_resize(sdata, skb, headroom, may_encrypt)) { in ieee80211_xmit() 3031 struct sk_buff *skb, int headroom) in ieee80211_amsdu_realloc_pad() argument 3033 if (skb_headroom(skb) < headroom) { in ieee80211_amsdu_realloc_pad() 3036 if (pskb_expand_head(skb, headroom, 0, GFP_ATOMIC)) { in ieee80211_amsdu_realloc_pad()
|
D | util.c | 3120 int headroom = IEEE80211_ENCRYPT_HEADROOM; in ieee80211_cs_headroom() local 3127 if (cs && headroom < cs->hdr_len) in ieee80211_cs_headroom() 3128 headroom = cs->hdr_len; in ieee80211_cs_headroom() 3132 if (cs && headroom < cs->hdr_len) in ieee80211_cs_headroom() 3133 headroom = cs->hdr_len; in ieee80211_cs_headroom() 3135 return headroom; in ieee80211_cs_headroom()
|
/net/l2tp/ |
D | l2tp_core.c | 1163 int headroom; in l2tp_xmit_skb() local 1172 headroom = NET_SKB_PAD + sizeof(struct iphdr) + in l2tp_xmit_skb() 1174 if (skb_cow_head(skb, headroom)) { in l2tp_xmit_skb()
|
D | l2tp_ppp.c | 368 int uhlen, headroom; in pppol2tp_xmit() local 387 headroom = NET_SKB_PAD + in pppol2tp_xmit() 392 if (skb_cow_head(skb, headroom)) in pppol2tp_xmit()
|