Home
last modified time | relevance | path

Searched refs:skb_headlen (Results 1 – 25 of 195) sorted by relevance

12345678

/Linux-v5.15/net/caif/
Dcfpkt_skbuff.c111 if (skb_headlen(skb) >= len) { in cfpkt_peek_head()
131 if (unlikely(len > skb_headlen(skb))) { in cfpkt_extr_head()
300 u16 addlen = skb_headlen(add); in cfpkt_append()
316 dstlen = skb_headlen(dst); in cfpkt_append()
326 skb_put_data(dst, add->data, skb_headlen(add)); in cfpkt_append()
/Linux-v5.15/net/core/
Dskbuff.c821 level, skb->len, headroom, skb_headlen(skb), tailroom, in skb_dump()
845 seg_len = min_t(int, skb_headlen(skb), len); in skb_dump()
1624 unsigned int size = skb_headlen(skb) + headroom; in __pskb_copy_fclone()
1634 skb_put(n, skb_headlen(skb)); in __pskb_copy_fclone()
2053 int offset = skb_headlen(skb); in ___pskb_trim()
2119 if (len > skb_headlen(skb)) { in ___pskb_trim()
2145 int hdlen = (len > skb_headlen(skb)) ? skb_headlen(skb) : len; in pskb_trim_rcsum_slow()
2194 BUG_ON(skb_copy_bits(skb, skb_headlen(skb), in __pskb_pull_tail()
2320 int start = skb_headlen(skb); in skb_copy_bits()
2517 skb_headlen(skb), in __skb_splice_bits()
[all …]
Dtso.c84 tso->size = skb_headlen(skb) - hdr_len; in tso_start()
Ddatagram.c417 int start = skb_headlen(skb); in __skb_datagram_iter()
551 int start = skb_headlen(skb); in skb_copy_datagram_from_iter()
701 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
/Linux-v5.15/drivers/net/ethernet/sfc/
Dtx_tso.c163 skb_headlen(skb)); in efx_tso_check_protocol()
180 in_len = skb_headlen(skb) - header_len; in tso_start()
199 skb_headlen(skb), DMA_TO_DEVICE); in tso_start()
201 st->header_unmap_len = skb_headlen(skb); in tso_start()
/Linux-v5.15/drivers/net/ethernet/google/gve/
Dgve_tx.c287 tcp_hdrlen(skb) : skb_headlen(skb); in gve_skb_fifo_bytes_required()
440 skb_headlen(skb); in gve_tx_add_skb_copy()
508 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
509 len = skb_headlen(skb); in gve_tx_add_skb_no_copy()
Dgve_tx_dqo.c498 u32 len = skb_headlen(skb); in gve_tx_add_skb_no_copy_dqo()
586 num_descs = gve_num_descs_per_buf(skb_headlen(skb)); in gve_num_buffer_descs_needed()
614 cur_seg_size = skb_headlen(skb) - header_len; in gve_can_send_tso()
/Linux-v5.15/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c282 if (skb_headlen(skb)) { in ipoib_dma_map_tx()
283 mapping[0] = ib_dma_map_single(ca, skb->data, skb_headlen(skb), in ipoib_dma_map_tx()
312 ib_dma_unmap_single(ca, mapping[0], skb_headlen(skb), DMA_TO_DEVICE); in ipoib_dma_map_tx()
325 if (skb_headlen(skb)) { in ipoib_dma_unmap_tx()
326 ib_dma_unmap_single(priv->ca, mapping[0], skb_headlen(skb), in ipoib_dma_unmap_tx()
573 unsigned int usable_sge = priv->max_send_sge - !!skb_headlen(skb); in ipoib_send()
Dipoib.h549 if (skb_headlen(skb)) { in ipoib_build_sge()
551 priv->tx_sge[0].length = skb_headlen(skb); in ipoib_build_sge()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7615/
Dsdio_txrx.c249 skb_headlen(e->skb)); in mt7663s_tx_run_queue()
250 len += skb_headlen(e->skb); in mt7663s_tx_run_queue()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c650 if (unlikely(*lso_header_size != skb_headlen(skb))) { in get_real_size()
653 if (*lso_header_size < skb_headlen(skb)) in get_real_size()
683 unsigned int hlen = skb_headlen(skb); in build_inline_wqe()
830 byte_count = skb_headlen(skb) - lso_header_size; in mlx4_en_build_dma_wqe()
958 tx_info->linear = lso_header_size < skb_headlen(skb) && !inline_ok; in mlx4_en_xmit()
/Linux-v5.15/include/linux/
Dvirtio_net.h152 skb_headlen(skb)); in virtio_net_hdr_from_skb()
/Linux-v5.15/drivers/block/aoe/
Daoenet.c149 sn -= skb_headlen(skb); in aoenet_rcv()
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Dchain_mode.c20 unsigned int nopaged_len = skb_headlen(skb); in jumbo_frm()
Dring_mode.c20 unsigned int nopaged_len = skb_headlen(skb); in jumbo_frm()
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h33 __entry->headlen = skb_headlen(skb);
/Linux-v5.15/net/bridge/
Dbr_netfilter_ipv6.c54 if ((raw + len) - skb->data > skb_headlen(skb)) in br_nf_check_hbh_len()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c190 hlen = eth_get_headlen(skb->dev, skb->data, skb_headlen(skb)); in mlx5e_calc_min_inline()
201 return min_t(u16, hlen, skb_headlen(skb)); in mlx5e_calc_min_inline()
381 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare()
394 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare()
Den_selftest.c192 if (MLX5E_TEST_PKT_SIZE - ETH_HLEN > skb_headlen(skb)) in mlx5e_test_loopback_validate()
/Linux-v5.15/drivers/net/wireless/ath/wil6210/
Dtxrx.c510 skb->data, skb_headlen(skb), false); in wil_vring_reap_rx()
560 skb->data, skb_headlen(skb), false); in wil_vring_reap_rx()
1838 headlen = skb_headlen(skb) - hdrlen; in __wil_tx_vring_tso()
1874 skb_headlen(skb) - headlen, in __wil_tx_vring_tso()
2044 uint len = skb_headlen(skb); in __wil_tx_ring()
2060 pa = dma_map_single(dev, skb->data, skb_headlen(skb), DMA_TO_DEVICE); in __wil_tx_ring()
2063 skb_headlen(skb), skb->data, &pa); in __wil_tx_ring()
2065 skb->data, skb_headlen(skb), false); in __wil_tx_ring()
/Linux-v5.15/drivers/net/ethernet/aeroflex/
Dgreth.c104 length = skb_headlen(skb); in greth_print_tx_packet()
194 skb_headlen(skb), in greth_clean_rings()
500 status |= skb_headlen(skb) & GRETH_BD_LEN; in greth_start_xmit_gbit()
507 dma_addr = dma_map_single(greth->dev, skb->data, skb_headlen(skb), DMA_TO_DEVICE); in greth_start_xmit_gbit()
710 skb_headlen(skb), in greth_clean_tx_gbit()
/Linux-v5.15/drivers/net/ethernet/faraday/
Dftmac100.c602 dma_unmap_single(priv->dev, map, skb_headlen(skb), DMA_TO_DEVICE); in ftmac100_tx_complete_packet()
711 dma_unmap_single(priv->dev, map, skb_headlen(skb), DMA_TO_DEVICE); in ftmac100_free_buffers()
1017 map = dma_map_single(priv->dev, skb->data, skb_headlen(skb), DMA_TO_DEVICE); in ftmac100_hard_start_xmit()
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dvnic_sdma.c58 skb_headlen(tx->skb)); in build_vnic_ulp_payload()
/Linux-v5.15/net/bpf/
Dtest_run.c637 if (sizeof(struct iphdr) <= skb_headlen(skb)) { in bpf_prog_test_run_skb()
645 if (sizeof(struct ipv6hdr) <= skb_headlen(skb)) { in bpf_prog_test_run_skb()
681 size = skb_headlen(skb); in bpf_prog_test_run_skb()
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c55 *len = skb_headlen(skb); in otx2_dma_map_skb_frag()
656 len = skb_headlen(skb) - hdr_len; in otx2_dma_map_tso_skb()
690 if (skb_headlen(skb) - hdr_len) in otx2_tso_frag_dma_addr()

12345678