/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tx.c | 214 unsigned char *skb_data, u16 headlen, in mlx5e_txwqe_build_dsegs() argument 221 if (headlen) { in mlx5e_txwqe_build_dsegs() 222 dma_addr = dma_map_single(sq->pdev, skb_data, headlen, in mlx5e_txwqe_build_dsegs() 229 dseg->byte_count = cpu_to_be32(headlen); in mlx5e_txwqe_build_dsegs() 231 mlx5e_dma_push(sq, dma_addr, headlen, MLX5E_DMA_MAP_SINGLE); in mlx5e_txwqe_build_dsegs() 263 u16 headlen; member 311 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare() 324 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare() 345 ds_cnt += !!attr->headlen + skb_shinfo(skb)->nr_frags + ds_cnt_ids; in mlx5e_sq_calc_wqe_attr() 453 attr->headlen, dseg); in mlx5e_sq_xmit_wqe() [all …]
|
D | en_rx.c | 456 int offset_from, u32 headlen) in mlx5e_copy_skb_header() argument 460 unsigned int len = ALIGN(headlen, sizeof(long)); in mlx5e_copy_skb_header() 1180 u16 headlen = min_t(u32, MLX5E_RX_MAX_HEAD, cqe_bcnt); in mlx5e_skb_from_cqe_nonlinear() local 1181 u16 frag_headlen = headlen; in mlx5e_skb_from_cqe_nonlinear() 1182 u16 byte_cnt = cqe_bcnt - headlen; in mlx5e_skb_from_cqe_nonlinear() 1210 mlx5e_copy_skb_header(rq->pdev, skb, head_wi->di, head_wi->offset, headlen); in mlx5e_skb_from_cqe_nonlinear() 1212 skb->tail += headlen; in mlx5e_skb_from_cqe_nonlinear() 1213 skb->len += headlen; in mlx5e_skb_from_cqe_nonlinear() 1401 u16 headlen = min_t(u16, MLX5E_RX_MAX_HEAD, cqe_bcnt); in mlx5e_skb_from_cqe_mpwrq_nonlinear() local 1403 u32 frag_offset = head_offset + headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear() [all …]
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_trace.h | 20 __field(unsigned int, headlen) 33 __entry->headlen = skb_headlen(skb); 49 __entry->headlen, __entry->len, __entry->hdr_len,
|
/Linux-v5.10/include/linux/ |
D | dccp.h | 71 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-v5.10/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 167 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-v5.10/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 1305 unsigned int headlen; in iavf_construct_skb() local 1322 headlen = size; in iavf_construct_skb() 1323 if (headlen > IAVF_RX_HDR_SIZE) in iavf_construct_skb() 1324 headlen = eth_get_headlen(skb->dev, va, IAVF_RX_HDR_SIZE); in iavf_construct_skb() 1327 memcpy(__skb_put(skb, headlen), va, ALIGN(headlen, sizeof(long))); in iavf_construct_skb() 1330 size -= headlen; in iavf_construct_skb() 1333 rx_buffer->page_offset + headlen, in iavf_construct_skb()
|
/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 969 unsigned int headlen; in ice_construct_skb() local 983 headlen = size; in ice_construct_skb() 984 if (headlen > ICE_RX_HDR_SIZE) in ice_construct_skb() 985 headlen = eth_get_headlen(skb->dev, xdp->data, ICE_RX_HDR_SIZE); in ice_construct_skb() 988 memcpy(__skb_put(skb, headlen), xdp->data, ALIGN(headlen, in ice_construct_skb() 992 size -= headlen; in ice_construct_skb() 1000 rx_buf->page_offset + headlen, size, truesize); in ice_construct_skb()
|
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rxmq.c | 178 unsigned int headlen, fraglen, pad_len = 0; in iwl_mvm_create_skb() local 198 headlen = (len <= skb_tailroom(skb)) ? len : in iwl_mvm_create_skb() 208 if (WARN_ONCE(headlen < hdrlen, in iwl_mvm_create_skb() 222 skb_put_data(skb, (u8 *)hdr + hdrlen + pad_len, headlen - hdrlen); in iwl_mvm_create_skb() 238 if (unlikely(headlen - hdrlen < sizeof(*shdr) || in iwl_mvm_create_skb() 249 fraglen = len - headlen; in iwl_mvm_create_skb() 252 int offset = (void *)hdr + headlen + pad_len - in iwl_mvm_create_skb()
|
/Linux-v5.10/drivers/net/wireless/ath/wil6210/ |
D | txrx.c | 1750 int f, len, hdrlen, headlen; in __wil_tx_vring_tso() local 1838 headlen = skb_headlen(skb) - hdrlen; in __wil_tx_vring_tso() 1840 for (f = headlen ? -1 : 0; f < nr_frags; f++) { in __wil_tx_vring_tso() 1841 if (headlen) { in __wil_tx_vring_tso() 1842 len = headlen; in __wil_tx_vring_tso() 1866 if (!headlen) { in __wil_tx_vring_tso() 1874 skb_headlen(skb) - headlen, in __wil_tx_vring_tso() 1878 headlen -= lenmss; in __wil_tx_vring_tso()
|
D | txrx_edma.c | 1410 int f, hdrlen, headlen; in __wil_tx_ring_tso_edma() local 1468 headlen = skb_headlen(skb) - hdrlen; in __wil_tx_ring_tso_edma() 1469 wil_dbg_txrx(wil, "TSO: process skb head, headlen %u\n", headlen); in __wil_tx_ring_tso_edma() 1470 rc = wil_tx_tso_gen_desc(wil, skb->data + hdrlen, headlen, in __wil_tx_ring_tso_edma()
|
/Linux-v5.10/include/trace/events/ |
D | rpcrdma.h | 646 __field(unsigned int, headlen) 660 __entry->headlen = rqst->rq_snd_buf.head[0].iov_len; 670 __entry->headlen, __entry->pagelen, __entry->taillen, 1143 __field(size_t, headlen) 1152 __entry->headlen = rqst->rq_rcv_buf.head[0].iov_len; 1159 __entry->headlen, __entry->pagelen, __entry->taillen
|
/Linux-v5.10/net/batman-adv/ |
D | bridge_loop_avoidance.c | 1088 int headlen; in batadv_bla_process_claim() local 1095 headlen = ETH_HLEN; in batadv_bla_process_claim() 1106 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim() 1112 headlen += VLAN_HLEN; in batadv_bla_process_claim() 1122 if (unlikely(!pskb_may_pull(skb, headlen + arp_hdr_len(skb->dev)))) in batadv_bla_process_claim() 1127 arphdr = (struct arphdr *)((u8 *)ethhdr + headlen); in batadv_bla_process_claim()
|
/Linux-v5.10/net/xfrm/ |
D | xfrm_user.c | 2913 unsigned int headlen; in xfrm_notify_sa() local 2916 headlen = sizeof(*p); in xfrm_notify_sa() 2918 len += nla_total_size(headlen); in xfrm_notify_sa() 2919 headlen = sizeof(*id); in xfrm_notify_sa() 2922 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa() 2928 nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0); in xfrm_notify_sa() 3181 unsigned int headlen; in xfrm_notify_policy() local 3184 headlen = sizeof(*p); in xfrm_notify_policy() 3186 len += nla_total_size(headlen); in xfrm_notify_policy() 3187 headlen = sizeof(*id); in xfrm_notify_policy() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 2000 unsigned int headlen; in i40e_construct_skb() local 2030 headlen = size; in i40e_construct_skb() 2031 if (headlen > I40E_RX_HDR_SIZE) in i40e_construct_skb() 2032 headlen = eth_get_headlen(skb->dev, xdp->data, in i40e_construct_skb() 2036 memcpy(__skb_put(skb, headlen), xdp->data, in i40e_construct_skb() 2037 ALIGN(headlen, sizeof(long))); in i40e_construct_skb() 2040 size -= headlen; in i40e_construct_skb() 2043 rx_buffer->page_offset + headlen, in i40e_construct_skb()
|
/Linux-v5.10/net/core/ |
D | skbuff.c | 4082 unsigned int headlen = skb_headlen(skb); in skb_gro_receive() local 4093 if (headlen <= offset) { in skb_gro_receive() 4102 offset -= headlen; in skb_gro_receive() 4129 unsigned int first_size = headlen - offset; in skb_gro_receive() 4155 if (offset > headlen) { in skb_gro_receive() 4156 unsigned int eat = offset - headlen; in skb_gro_receive() 4162 offset = headlen; in skb_gro_receive() 5878 const int headlen, gfp_t gfp_mask) in pskb_carve_inside_header() argument 5882 int new_hlen = headlen - off; in pskb_carve_inside_header() 6087 int headlen = skb_headlen(skb); in pskb_carve() local [all …]
|
D | filter.c | 209 data, int, headlen, int, offset) in BPF_CALL_4() argument 215 if (headlen - offset >= len) in BPF_CALL_4() 236 data, int, headlen, int, offset) in BPF_CALL_4() argument 242 if (headlen - offset >= len) in BPF_CALL_4() 263 data, int, headlen, int, offset) in BPF_CALL_4() argument 269 if (headlen - offset >= len) in BPF_CALL_4()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 866 unsigned int headlen; in ixgbevf_construct_skb() local 893 headlen = size; in ixgbevf_construct_skb() 894 if (headlen > IXGBEVF_RX_HDR_SIZE) in ixgbevf_construct_skb() 895 headlen = eth_get_headlen(skb->dev, xdp->data, in ixgbevf_construct_skb() 899 memcpy(__skb_put(skb, headlen), xdp->data, in ixgbevf_construct_skb() 900 ALIGN(headlen, sizeof(long))); in ixgbevf_construct_skb() 903 size -= headlen; in ixgbevf_construct_skb() 906 (xdp->data + headlen) - in ixgbevf_construct_skb()
|
/Linux-v5.10/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 1590 unsigned int headlen; in igc_construct_skb() local 1608 headlen = size; in igc_construct_skb() 1609 if (headlen > IGC_RX_HDR_LEN) in igc_construct_skb() 1610 headlen = eth_get_headlen(skb->dev, va, IGC_RX_HDR_LEN); in igc_construct_skb() 1613 memcpy(__skb_put(skb, headlen), va, ALIGN(headlen, sizeof(long))); in igc_construct_skb() 1616 size -= headlen; in igc_construct_skb() 1619 (va + headlen) - page_address(rx_buffer->page), in igc_construct_skb()
|
/Linux-v5.10/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 8310 unsigned int headlen; in igb_construct_skb() local 8328 headlen = size; in igb_construct_skb() 8329 if (headlen > IGB_RX_HDR_LEN) in igb_construct_skb() 8330 headlen = eth_get_headlen(skb->dev, xdp->data, IGB_RX_HDR_LEN); in igb_construct_skb() 8333 memcpy(__skb_put(skb, headlen), xdp->data, ALIGN(headlen, sizeof(long))); in igb_construct_skb() 8336 size -= headlen; in igb_construct_skb() 8339 (xdp->data + headlen) - page_address(rx_buffer->page), in igb_construct_skb()
|
/Linux-v5.10/drivers/net/ |
D | tun.c | 1905 u32 headlen; in tun_get_user() local 1909 headlen = eth_get_headlen(tun->dev, skb->data, in tun_get_user() 1912 if (unlikely(headlen > skb_headlen(skb))) { in tun_get_user()
|
/Linux-v5.10/Documentation/networking/ |
D | filter.rst | 1193 skb->data + headlen; arithmetic forbidden.
|