Home
last modified time | relevance | path

Searched refs:headlen (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfdk/
Dnfdk.h111 static inline int nfp_nfdk_headlen_to_segs(unsigned int headlen) in nfp_nfdk_headlen_to_segs() argument
114 return DIV_ROUND_UP(headlen + in nfp_nfdk_headlen_to_segs()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h20 __field(unsigned int, headlen)
33 __entry->headlen = skb_headlen(skb);
48 __entry->headlen, __entry->len, __entry->hdr_len,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c178 unsigned char *skb_data, u16 headlen, in mlx5e_txwqe_build_dsegs() argument
185 if (headlen) { in mlx5e_txwqe_build_dsegs()
186 dma_addr = dma_map_single(sq->pdev, skb_data, headlen, in mlx5e_txwqe_build_dsegs()
193 dseg->byte_count = cpu_to_be32(headlen); in mlx5e_txwqe_build_dsegs()
195 mlx5e_dma_push(sq, dma_addr, headlen, MLX5E_DMA_MAP_SINGLE); in mlx5e_txwqe_build_dsegs()
227 u16 headlen; member
277 .headlen = skb_headlen(skb) - ihs - hopbyhop, in mlx5e_sq_xmit_prepare()
291 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare()
314 ds_cnt += !!attr->headlen + skb_shinfo(skb)->nr_frags + ds_cnt_ids; in mlx5e_sq_calc_wqe_attr()
482 attr->headlen, dseg); in mlx5e_sq_xmit_wqe()
[all …]
Den_rx.c439 int offset_from, int dma_offset, u32 headlen) in mlx5e_copy_skb_header() argument
443 unsigned int len = ALIGN(headlen, sizeof(long)); in mlx5e_copy_skb_header()
1884 u16 headlen = min_t(u16, MLX5E_RX_MAX_HEAD, cqe_bcnt); in mlx5e_skb_from_cqe_mpwrq_nonlinear() local
1885 u32 frag_offset = head_offset + headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear()
1886 u32 byte_cnt = cqe_bcnt - headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear()
1910 head_offset, head_offset, headlen); in mlx5e_skb_from_cqe_mpwrq_nonlinear()
1912 skb->tail += headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear()
1913 skb->len += headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear()
/linux-6.1.9/include/linux/
Ddccp.h71 static inline struct dccp_hdr *dccp_zeroed_hdr(struct sk_buff *skb, int headlen) in dccp_zeroed_hdr() argument
73 skb_push(skb, headlen); in dccp_zeroed_hdr()
75 return memset(skb_transport_header(skb), 0, headlen); in dccp_zeroed_hdr()
/linux-6.1.9/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c167 int headlen; in gss_wrap_kerberos_v1() local
182 headlen = g_token_size(&kctx->mech_used, in gss_wrap_kerberos_v1()
188 xdr_extend_head(buf, offset, headlen); in gss_wrap_kerberos_v1()
191 BUG_ON((buf->len - offset - headlen) % blocksize); in gss_wrap_kerberos_v1()
224 if (make_checksum(kctx, ptr, 8, buf, offset + headlen - conflen, in gss_wrap_kerberos_v1()
240 offset + headlen - conflen, pages)) in gss_wrap_kerberos_v1()
/linux-6.1.9/net/core/
Dgro.c157 unsigned int headlen = skb_headlen(skb); in skb_gro_receive() local
183 if (headlen <= offset) { in skb_gro_receive()
192 offset -= headlen; in skb_gro_receive()
219 unsigned int first_size = headlen - offset; in skb_gro_receive()
249 if (offset > headlen) { in skb_gro_receive()
250 unsigned int eat = offset - headlen; in skb_gro_receive()
256 offset = headlen; in skb_gro_receive()
Dskbuff.c6172 const int headlen, gfp_t gfp_mask) in pskb_carve_inside_header() argument
6176 int new_hlen = headlen - off; in pskb_carve_inside_header()
6373 int headlen = skb_headlen(skb); in pskb_carve() local
6375 if (len < headlen) in pskb_carve()
6376 return pskb_carve_inside_header(skb, len, headlen, gfp); in pskb_carve()
6378 return pskb_carve_inside_nonlinear(skb, len, headlen, gfp); in pskb_carve()
Dfilter.c213 data, int, headlen, int, offset) in BPF_CALL_4() argument
219 if (headlen - offset >= len) in BPF_CALL_4()
240 data, int, headlen, int, offset) in BPF_CALL_4() argument
246 if (headlen - offset >= len) in BPF_CALL_4()
267 data, int, headlen, int, offset) in BPF_CALL_4() argument
273 if (headlen - offset >= len) in BPF_CALL_4()
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c1329 unsigned int headlen; in iavf_construct_skb() local
1346 headlen = size; in iavf_construct_skb()
1347 if (headlen > IAVF_RX_HDR_SIZE) in iavf_construct_skb()
1348 headlen = eth_get_headlen(skb->dev, va, IAVF_RX_HDR_SIZE); in iavf_construct_skb()
1351 memcpy(__skb_put(skb, headlen), va, ALIGN(headlen, sizeof(long))); in iavf_construct_skb()
1354 size -= headlen; in iavf_construct_skb()
1357 rx_buffer->page_offset + headlen, in iavf_construct_skb()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_txrx.c989 unsigned int headlen; in ice_construct_skb() local
1004 headlen = size; in ice_construct_skb()
1005 if (headlen > ICE_RX_HDR_SIZE) in ice_construct_skb()
1006 headlen = eth_get_headlen(skb->dev, xdp->data, ICE_RX_HDR_SIZE); in ice_construct_skb()
1009 memcpy(__skb_put(skb, headlen + metasize), xdp->data_meta, in ice_construct_skb()
1010 ALIGN(headlen + metasize, sizeof(long))); in ice_construct_skb()
1018 size -= headlen; in ice_construct_skb()
1026 rx_buf->page_offset + headlen, size, truesize); in ice_construct_skb()
/linux-6.1.9/net/batman-adv/
Dbridge_loop_avoidance.c1089 int headlen; in batadv_bla_process_claim() local
1096 headlen = ETH_HLEN; in batadv_bla_process_claim()
1107 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim()
1113 headlen += VLAN_HLEN; in batadv_bla_process_claim()
1123 if (unlikely(!pskb_may_pull(skb, headlen + arp_hdr_len(skb->dev)))) in batadv_bla_process_claim()
1128 arphdr = (struct arphdr *)((u8 *)ethhdr + headlen); in batadv_bla_process_claim()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Drxmq.c122 unsigned int headlen, fraglen, pad_len = 0; in iwl_mvm_create_skb() local
169 headlen = (len <= skb_tailroom(skb)) ? len : in iwl_mvm_create_skb()
179 if (unlikely(headlen < hdrlen)) in iwl_mvm_create_skb()
183 skb_put_data(skb, (u8 *)hdr + hdrlen + pad_len, headlen - hdrlen); in iwl_mvm_create_skb()
203 if (unlikely(headlen - hdrlen < sizeof(*shdr) || in iwl_mvm_create_skb()
217 fraglen = len - headlen; in iwl_mvm_create_skb()
220 int offset = (u8 *)hdr + headlen + pad_len - in iwl_mvm_create_skb()
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dtxrx.c1750 int f, len, hdrlen, headlen; in __wil_tx_vring_tso() local
1836 headlen = skb_headlen(skb) - hdrlen; in __wil_tx_vring_tso()
1838 for (f = headlen ? -1 : 0; f < nr_frags; f++) { in __wil_tx_vring_tso()
1839 if (headlen) { in __wil_tx_vring_tso()
1840 len = headlen; in __wil_tx_vring_tso()
1864 if (!headlen) { in __wil_tx_vring_tso()
1872 skb_headlen(skb) - headlen, in __wil_tx_vring_tso()
1876 headlen -= lenmss; in __wil_tx_vring_tso()
Dtxrx_edma.c1412 int f, hdrlen, headlen; in __wil_tx_ring_tso_edma() local
1470 headlen = skb_headlen(skb) - hdrlen; in __wil_tx_ring_tso_edma()
1471 wil_dbg_txrx(wil, "TSO: process skb head, headlen %u\n", headlen); in __wil_tx_ring_tso_edma()
1472 rc = wil_tx_tso_gen_desc(wil, skb->data + hdrlen, headlen, in __wil_tx_ring_tso_edma()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c2111 unsigned int headlen; in i40e_construct_skb() local
2141 headlen = size; in i40e_construct_skb()
2142 if (headlen > I40E_RX_HDR_SIZE) in i40e_construct_skb()
2143 headlen = eth_get_headlen(skb->dev, xdp->data, in i40e_construct_skb()
2147 memcpy(__skb_put(skb, headlen), xdp->data, in i40e_construct_skb()
2148 ALIGN(headlen, sizeof(long))); in i40e_construct_skb()
2151 size -= headlen; in i40e_construct_skb()
2154 rx_buffer->page_offset + headlen, in i40e_construct_skb()
/linux-6.1.9/net/xfrm/
Dxfrm_user.c3228 unsigned int headlen; in xfrm_notify_sa() local
3231 headlen = sizeof(*p); in xfrm_notify_sa()
3233 len += nla_total_size(headlen); in xfrm_notify_sa()
3234 headlen = sizeof(*id); in xfrm_notify_sa()
3237 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa()
3243 nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0); in xfrm_notify_sa()
3496 unsigned int headlen; in xfrm_notify_policy() local
3499 headlen = sizeof(*p); in xfrm_notify_policy()
3501 len += nla_total_size(headlen); in xfrm_notify_policy()
3502 headlen = sizeof(*id); in xfrm_notify_policy()
[all …]
/linux-6.1.9/include/trace/events/
Drpcrdma.h826 __field(unsigned int, headlen)
840 __entry->headlen = rqst->rq_snd_buf.head[0].iov_len;
851 __entry->headlen, __entry->pagelen, __entry->taillen,
1380 __field(size_t, headlen)
1389 __entry->headlen = rqst->rq_rcv_buf.head[0].iov_len;
1396 __entry->headlen, __entry->pagelen, __entry->taillen
/linux-6.1.9/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c861 unsigned int headlen; in ixgbevf_construct_skb() local
888 headlen = size; in ixgbevf_construct_skb()
889 if (headlen > IXGBEVF_RX_HDR_SIZE) in ixgbevf_construct_skb()
890 headlen = eth_get_headlen(skb->dev, xdp->data, in ixgbevf_construct_skb()
894 memcpy(__skb_put(skb, headlen), xdp->data, in ixgbevf_construct_skb()
895 ALIGN(headlen, sizeof(long))); in ixgbevf_construct_skb()
898 size -= headlen; in ixgbevf_construct_skb()
901 (xdp->data + headlen) - in ixgbevf_construct_skb()
/linux-6.1.9/drivers/net/ethernet/intel/igc/
Digc_main.c1876 unsigned int headlen; in igc_construct_skb() local
1892 headlen = size; in igc_construct_skb()
1893 if (headlen > IGC_RX_HDR_LEN) in igc_construct_skb()
1894 headlen = eth_get_headlen(skb->dev, va, IGC_RX_HDR_LEN); in igc_construct_skb()
1897 memcpy(__skb_put(skb, headlen + metasize), xdp->data_meta, in igc_construct_skb()
1898 ALIGN(headlen + metasize, sizeof(long))); in igc_construct_skb()
1906 size -= headlen; in igc_construct_skb()
1909 (va + headlen) - page_address(rx_buffer->page), in igc_construct_skb()
/linux-6.1.9/drivers/net/ethernet/intel/igb/
Digb_main.c8440 unsigned int headlen; in igb_construct_skb() local
8455 headlen = size; in igb_construct_skb()
8456 if (headlen > IGB_RX_HDR_LEN) in igb_construct_skb()
8457 headlen = eth_get_headlen(skb->dev, xdp->data, IGB_RX_HDR_LEN); in igb_construct_skb()
8460 memcpy(__skb_put(skb, headlen), xdp->data, ALIGN(headlen, sizeof(long))); in igb_construct_skb()
8463 size -= headlen; in igb_construct_skb()
8466 (xdp->data + headlen) - page_address(rx_buffer->page), in igb_construct_skb()
/linux-6.1.9/drivers/net/
Dtun.c1964 u32 headlen; in tun_get_user() local
1968 headlen = eth_get_headlen(tun->dev, skb->data, in tun_get_user()
1971 if (unlikely(headlen > skb_headlen(skb))) { in tun_get_user()
/linux-6.1.9/Documentation/bpf/
Dverifier.rst139 skb->data + headlen; arithmetic forbidden.