/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_tx.c | 268 unsigned char *skb_data, u16 headlen, in mlx5e_txwqe_build_dsegs() argument 275 if (headlen) { in mlx5e_txwqe_build_dsegs() 276 dma_addr = dma_map_single(sq->pdev, skb_data, headlen, in mlx5e_txwqe_build_dsegs() 283 dseg->byte_count = cpu_to_be32(headlen); in mlx5e_txwqe_build_dsegs() 285 mlx5e_dma_push(sq, dma_addr, headlen, MLX5E_DMA_MAP_SINGLE); in mlx5e_txwqe_build_dsegs() 317 u16 headlen; member 365 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare() 378 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare() 513 attr->headlen, dseg); in mlx5e_sq_xmit_wqe() 964 ds_cnt += !!attr->headlen + skb_shinfo(skb)->nr_frags; in mlx5i_sq_calc_wqe_attr() [all …]
|
A D | en_rx.c | 458 int offset_from, int dma_offset, u32 headlen) in mlx5e_copy_skb_header() argument 462 unsigned int len = ALIGN(headlen, sizeof(long)); in mlx5e_copy_skb_header() 1555 u16 frag_headlen = headlen; in mlx5e_skb_from_cqe_nonlinear() 1556 u16 byte_cnt = cqe_bcnt - headlen; in mlx5e_skb_from_cqe_nonlinear() 1585 headlen); in mlx5e_skb_from_cqe_nonlinear() 1587 skb->tail += headlen; in mlx5e_skb_from_cqe_nonlinear() 1588 skb->len += headlen; in mlx5e_skb_from_cqe_nonlinear() 1793 u32 frag_offset = head_offset + headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear() 1794 u32 byte_cnt = cqe_bcnt - headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear() 1816 skb->tail += headlen; in mlx5e_skb_from_cqe_mpwrq_nonlinear() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_trace.h | 20 __field(unsigned int, headlen) 33 __entry->headlen = skb_headlen(skb); 49 __entry->headlen, __entry->len, __entry->hdr_len,
|
/linux/net/sunrpc/auth_gss/ |
A 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/include/linux/ |
A 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/drivers/net/ethernet/intel/iavf/ |
A D | iavf_txrx.c | 1292 unsigned int headlen; in iavf_construct_skb() local 1309 headlen = size; in iavf_construct_skb() 1310 if (headlen > IAVF_RX_HDR_SIZE) in iavf_construct_skb() 1311 headlen = eth_get_headlen(skb->dev, va, IAVF_RX_HDR_SIZE); in iavf_construct_skb() 1314 memcpy(__skb_put(skb, headlen), va, ALIGN(headlen, sizeof(long))); in iavf_construct_skb() 1317 size -= headlen; in iavf_construct_skb() 1320 rx_buffer->page_offset + headlen, in iavf_construct_skb()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_txrx.c | 979 unsigned int headlen; in ice_construct_skb() local 993 headlen = size; in ice_construct_skb() 994 if (headlen > ICE_RX_HDR_SIZE) in ice_construct_skb() 995 headlen = eth_get_headlen(skb->dev, xdp->data, ICE_RX_HDR_SIZE); in ice_construct_skb() 998 memcpy(__skb_put(skb, headlen), xdp->data, ALIGN(headlen, in ice_construct_skb() 1002 size -= headlen; in ice_construct_skb() 1010 rx_buf->page_offset + headlen, size, truesize); in ice_construct_skb()
|
/linux/net/batman-adv/ |
A 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/drivers/net/wireless/ath/wil6210/ |
A 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()
|
A D | txrx_edma.c | 1412 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/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | rxmq.c | 122 unsigned int headlen, fraglen, pad_len = 0; in iwl_mvm_create_skb() local 142 headlen = (len <= skb_tailroom(skb)) ? len : in iwl_mvm_create_skb() 152 if (WARN_ONCE(headlen < hdrlen, in iwl_mvm_create_skb() 166 skb_put_data(skb, (u8 *)hdr + hdrlen + pad_len, headlen - hdrlen); in iwl_mvm_create_skb() 182 if (unlikely(headlen - hdrlen < sizeof(*shdr) || in iwl_mvm_create_skb() 193 fraglen = len - headlen; in iwl_mvm_create_skb() 196 int offset = (void *)hdr + headlen + pad_len - in iwl_mvm_create_skb()
|
/linux/net/xfrm/ |
A D | xfrm_user.c | 3083 unsigned int headlen; in xfrm_notify_sa() local 3086 headlen = sizeof(*p); in xfrm_notify_sa() 3088 len += nla_total_size(headlen); in xfrm_notify_sa() 3089 headlen = sizeof(*id); in xfrm_notify_sa() 3092 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa() 3098 nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0); in xfrm_notify_sa() 3351 unsigned int headlen; in xfrm_notify_policy() local 3354 headlen = sizeof(*p); in xfrm_notify_policy() 3356 len += nla_total_size(headlen); in xfrm_notify_policy() 3357 headlen = sizeof(*id); in xfrm_notify_policy() [all …]
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_txrx.c | 2116 unsigned int headlen; in i40e_construct_skb() local 2146 headlen = size; in i40e_construct_skb() 2147 if (headlen > I40E_RX_HDR_SIZE) in i40e_construct_skb() 2148 headlen = eth_get_headlen(skb->dev, xdp->data, in i40e_construct_skb() 2152 memcpy(__skb_put(skb, headlen), xdp->data, in i40e_construct_skb() 2153 ALIGN(headlen, sizeof(long))); in i40e_construct_skb() 2156 size -= headlen; in i40e_construct_skb() 2159 rx_buffer->page_offset + headlen, in i40e_construct_skb()
|
/linux/include/trace/events/ |
A D | rpcrdma.h | 826 __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/net/core/ |
A D | skbuff.c | 4304 unsigned int headlen = skb_headlen(skb); in skb_gro_receive() local 4316 if (headlen <= offset) { in skb_gro_receive() 4325 offset -= headlen; in skb_gro_receive() 4352 unsigned int first_size = headlen - offset; in skb_gro_receive() 4382 if (offset > headlen) { in skb_gro_receive() 4383 unsigned int eat = offset - headlen; in skb_gro_receive() 4389 offset = headlen; in skb_gro_receive() 6121 const int headlen, gfp_t gfp_mask) in pskb_carve_inside_header() argument 6125 int new_hlen = headlen - off; in pskb_carve_inside_header() 6330 int headlen = skb_headlen(skb); in pskb_carve() local [all …]
|
A D | filter.c | 210 data, int, headlen, int, offset) in BPF_CALL_4() argument 216 if (headlen - offset >= len) in BPF_CALL_4() 237 data, int, headlen, int, offset) in BPF_CALL_4() argument 243 if (headlen - offset >= len) in BPF_CALL_4() 264 data, int, headlen, int, offset) in BPF_CALL_4() argument 270 if (headlen - offset >= len) in BPF_CALL_4()
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
A D | ixgbevf_main.c | 861 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/drivers/net/ethernet/intel/igc/ |
A D | igc_main.c | 1752 unsigned int headlen; in igc_construct_skb() local 1767 headlen = size; in igc_construct_skb() 1768 if (headlen > IGC_RX_HDR_LEN) in igc_construct_skb() 1769 headlen = eth_get_headlen(skb->dev, va, IGC_RX_HDR_LEN); in igc_construct_skb() 1772 memcpy(__skb_put(skb, headlen), va, ALIGN(headlen, sizeof(long))); in igc_construct_skb() 1775 size -= headlen; in igc_construct_skb() 1778 (va + headlen) - page_address(rx_buffer->page), in igc_construct_skb()
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | igb_main.c | 8311 unsigned int headlen; in igb_construct_skb() local 8326 headlen = size; in igb_construct_skb() 8327 if (headlen > IGB_RX_HDR_LEN) in igb_construct_skb() 8328 headlen = eth_get_headlen(skb->dev, xdp->data, IGB_RX_HDR_LEN); in igb_construct_skb() 8331 memcpy(__skb_put(skb, headlen), xdp->data, ALIGN(headlen, sizeof(long))); in igb_construct_skb() 8334 size -= headlen; in igb_construct_skb() 8337 (xdp->data + headlen) - page_address(rx_buffer->page), in igb_construct_skb()
|
/linux/drivers/net/ |
A D | tun.c | 1929 u32 headlen; in tun_get_user() local 1933 headlen = eth_get_headlen(tun->dev, skb->data, in tun_get_user() 1936 if (unlikely(headlen > skb_headlen(skb))) { in tun_get_user()
|
/linux/Documentation/networking/ |
A D | filter.rst | 1243 skb->data + headlen; arithmetic forbidden.
|