/Linux-v5.10/net/core/ |
D | skbuff.c | 238 shinfo = skb_shinfo(skb); in __alloc_skb() 281 shinfo = skb_shinfo(skb); in __build_skb_around() 555 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in skb_coalesce_rx_frag() 572 skb_drop_list(&skb_shinfo(skb)->frag_list); in skb_drop_fraglist() 595 struct skb_shared_info *shinfo = skb_shinfo(skb); in skb_release_data() 719 struct skb_shared_info *sh = skb_shinfo(skb); in skb_dump() 777 for (i = 0; len && i < skb_shinfo(skb)->nr_frags; i++) { in skb_dump() 778 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in skb_dump() 1000 atomic_inc(&(skb_shinfo(skb)->dataref)); in __skb_clone() 1023 skb_shinfo(n)->frag_list = first; in alloc_skb_for_msg() [all …]
|
D | tso.c | 12 return skb_shinfo(skb)->gso_segs * 2 + skb_shinfo(skb)->nr_frags; in tso_count_descs() 61 (tso->next_frag_idx < skb_shinfo(skb)->nr_frags)) { in tso_build_data() 62 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_build_data() 87 (tso->next_frag_idx < skb_shinfo(skb)->nr_frags)) { in tso_start() 88 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_start()
|
/Linux-v5.10/net/ipv4/ |
D | udp_offload.c | 40 if (skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) in __skb_udp_tunnel_segment() 55 need_csum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_UDP_TUNNEL_CSUM); in __skb_udp_tunnel_segment() 58 remcsum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_TUNNEL_REMCSUM); in __skb_udp_tunnel_segment() 89 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in __skb_udp_tunnel_segment() 121 uh->len = htons(skb_shinfo(skb)->gso_size + in __skb_udp_tunnel_segment() 190 unsigned int mss = skb_shinfo(skb)->gso_size; in __udp_gso_segment_list() 213 if (skb_shinfo(gso_skb)->gso_type & SKB_GSO_FRAGLIST) in __udp_gso_segment() 216 mss = skb_shinfo(gso_skb)->gso_size; in __udp_gso_segment() 239 mss *= skb_shinfo(segs)->gso_segs; in __udp_gso_segment() 245 skb_shinfo(seg)->tskey = skb_shinfo(gso_skb)->tskey; in __udp_gso_segment() [all …]
|
D | tcp_offload.c | 19 skb_shinfo(skb)->tx_flags |= SKBTX_SW_TSTAMP; in tcp_gso_tstamp() 20 skb_shinfo(skb)->tskey = ts_seq; in tcp_gso_tstamp() 32 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)) in tcp4_gso_segment() 80 mss = skb_shinfo(skb)->gso_size; in tcp_gso_segment() 87 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in tcp_gso_segment() 110 mss *= skb_shinfo(segs)->gso_segs; in tcp_gso_segment() 118 if (unlikely(skb_shinfo(gso_skb)->tx_flags & SKBTX_SW_TSTAMP)) in tcp_gso_segment() 119 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment() 258 mss = skb_shinfo(p)->gso_size; in tcp_gro_receive() 296 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in tcp_gro_complete() [all …]
|
D | gre_offload.c | 43 need_csum = !!(skb_shinfo(skb)->gso_type & SKB_GSO_GRE_CSUM); in gre_gso_segment() 57 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in gre_gso_segment() 95 skb_shinfo(skb)->gso_size; in gre_gso_segment() 245 skb_shinfo(skb)->gso_type = SKB_GSO_GRE; in gre_gro_complete()
|
/Linux-v5.10/drivers/net/xen-netback/ |
D | netback.c | 366 skb_shinfo(skb)->destructor_arg = NULL; in xenvif_alloc_skb() 378 struct skb_shared_info *shinfo = skb_shinfo(skb); in xenvif_get_requests() 400 shinfo = skb_shinfo(nskb); in xenvif_get_requests() 413 skb_shinfo(skb)->frag_list = nskb; in xenvif_get_requests() 456 struct skb_shared_info *shinfo = skb_shinfo(skb); in xenvif_tx_check_gop() 560 first_shinfo = skb_shinfo(skb); in xenvif_tx_check_gop() 561 shinfo = skb_shinfo(skb_shinfo(skb)->frag_list); in xenvif_tx_check_gop() 573 struct skb_shared_info *shinfo = skb_shinfo(skb); in xenvif_fill_frags() 588 skb_shinfo(skb)->destructor_arg = in xenvif_fill_frags() 655 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in xenvif_set_skb_gso() [all …]
|
/Linux-v5.10/drivers/net/ethernet/sfc/ |
D | tx.h | 35 if (skb_shinfo(skb)->gso_segs > 1 && in efx_tx_csum_type_skb() 36 !(skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) && in efx_tx_csum_type_skb() 37 (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_TUNNEL_CSUM)) in efx_tx_csum_type_skb()
|
D | tx_tso.c | 291 bool is_last = st->out_len <= skb_shinfo(skb)->gso_size; in tso_start_new_packet() 295 st->packet_space = skb_shinfo(skb)->gso_size; in tso_start_new_packet() 341 st->seqnum += skb_shinfo(skb)->gso_size; in tso_start_new_packet() 386 EFX_WARN_ON_ONCE_PARANOID(skb_shinfo(skb)->nr_frags < 1); in efx_enqueue_skb_tso() 389 skb_shinfo(skb)->frags + frag_i); in efx_enqueue_skb_tso() 408 if (++frag_i >= skb_shinfo(skb)->nr_frags) in efx_enqueue_skb_tso() 412 skb_shinfo(skb)->frags + frag_i); in efx_enqueue_skb_tso()
|
D | ef100_tx.c | 69 mss = skb_shinfo(skb)->gso_size; in ef100_tx_can_tso() 79 if (skb_shinfo(skb)->gso_segs > nic_data->tso_max_payload_num_segs) { in ef100_tx_can_tso() 207 skb_shinfo(skb)->gso_type & SKB_GSO_TCP_FIXEDID ? in ef100_make_tso_desc() 214 u32 mss = skb_shinfo(skb)->gso_size; in ef100_make_tso_desc() 351 segments = skb_is_gso(skb) ? skb_shinfo(skb)->gso_segs : 0; in ef100_enqueue_skb()
|
/Linux-v5.10/net/ipv6/ |
D | ip6_offload.c | 105 skb_shinfo(skb)->gso_type & (SKB_GSO_IPXIP4 | SKB_GSO_IPXIP6)) in ipv6_gso_segment() 107 (skb_shinfo(skb)->gso_type & SKB_GSO_UDP); in ipv6_gso_segment() 110 (skb_shinfo(skb)->gso_type & SKB_GSO_UDP); in ipv6_gso_segment() 121 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in ipv6_gso_segment() 126 payload_len = skb_shinfo(skb)->gso_size + in ipv6_gso_segment() 351 skb_shinfo(skb)->gso_type |= SKB_GSO_IPXIP4; in sit_gro_complete() 358 skb_shinfo(skb)->gso_type |= SKB_GSO_IPXIP6; in ip6ip6_gro_complete() 365 skb_shinfo(skb)->gso_type |= SKB_GSO_IPXIP6; in ip4ip6_gro_complete() 381 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_IPXIP4)) in sit_gso_segment() 390 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_IPXIP6)) in ip4ip6_gso_segment() [all …]
|
D | udp_offload.c | 31 mss = skb_shinfo(skb)->gso_size; in udp6_ufo_fragment() 35 if (skb->encapsulation && skb_shinfo(skb)->gso_type & in udp6_ufo_fragment() 42 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4))) in udp6_ufo_fragment() 48 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) in udp6_ufo_fragment() 169 skb_shinfo(skb)->gso_type |= (SKB_GSO_FRAGLIST|SKB_GSO_UDP_L4); in udp6_gro_complete() 170 skb_shinfo(skb)->gso_segs = NAPI_GRO_CB(skb)->count; in udp6_gro_complete()
|
D | tcpv6_offload.c | 36 skb_shinfo(skb)->gso_type |= SKB_GSO_TCPV6; in tcp6_gro_complete() 46 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6)) in tcp6_gso_segment()
|
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_txrx.c | 59 frag = &skb_shinfo(skb)->frags[seg - 1]; in otx2_dma_map_skb_frag() 101 if (skb_shinfo(skb)->tx_flags & SKBTX_IN_PROGRESS) { in otx2_snd_pkt_handler() 146 if (likely(!skb_shinfo(skb)->nr_frags)) { in otx2_skb_add_frag() 159 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, page, in otx2_skb_add_frag() 512 if (skb_shinfo(skb)->gso_size) { in otx2_sqe_add_ext() 515 ext->lso_mps = skb_shinfo(skb)->gso_size; in otx2_sqe_add_ext() 518 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) { in otx2_sqe_add_ext() 527 } else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) { in otx2_sqe_add_ext() 532 } else if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) { in otx2_sqe_add_ext() 555 } else if (skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP) { in otx2_sqe_add_ext() [all …]
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_trace.h | 35 __entry->nr_frags = skb_shinfo(skb)->nr_frags; 36 __entry->gso_size = skb_shinfo(skb)->gso_size; 37 __entry->gso_segs = skb_shinfo(skb)->gso_segs; 38 __entry->gso_type = skb_shinfo(skb)->gso_type; 44 hns3_shinfo_pack(skb_shinfo(skb), __entry->size);
|
/Linux-v5.10/include/trace/events/ |
D | net.h | 55 __entry->tx_flags = skb_shinfo(skb)->tx_flags; 56 __entry->gso_size = skb_shinfo(skb)->gso_size; 57 __entry->gso_segs = skb_shinfo(skb)->gso_segs; 58 __entry->gso_type = skb_shinfo(skb)->gso_type; 213 __entry->nr_frags = skb_shinfo(skb)->nr_frags; 214 __entry->gso_size = skb_shinfo(skb)->gso_size; 215 __entry->gso_type = skb_shinfo(skb)->gso_type;
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 168 skb_shinfo(nskb)->gso_size = 0; in mlx5e_tls_complete_sync_skb() 170 skb_shinfo(nskb)->gso_size = mss; in mlx5e_tls_complete_sync_skb() 171 skb_shinfo(nskb)->gso_segs = DIV_ROUND_UP(data_len, mss); in mlx5e_tls_complete_sync_skb() 173 skb_shinfo(nskb)->gso_type = skb_shinfo(skb)->gso_type; in mlx5e_tls_complete_sync_skb() 239 skb_shinfo(nskb)->frags[i] = info.frags[i]; in mlx5e_tls_handle_ooo() 241 skb_shinfo(nskb)->nr_frags = info.nr_frags; in mlx5e_tls_handle_ooo()
|
/Linux-v5.10/include/linux/ |
D | udp.h | 126 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) { in udp_cmsg_recv() 127 gso_size = skb_shinfo(skb)->gso_size; in udp_cmsg_recv() 135 skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4; in udp_unexpected_gso()
|
D | skbuff.h | 485 #define skb_uarg(SKB) ((struct ubuf_info *)(skb_shinfo(SKB)->destructor_arg)) 1426 #define skb_shinfo(SKB) ((struct skb_shared_info *)(skb_end_pointer(SKB))) macro 1430 return &skb_shinfo(skb)->hwtstamps; in skb_hwtstamps() 1435 bool is_zcopy = skb && skb_shinfo(skb)->tx_flags & SKBTX_DEV_ZEROCOPY; in skb_zcopy() 1448 skb_shinfo(skb)->destructor_arg = uarg; in skb_zcopy_set() 1449 skb_shinfo(skb)->tx_flags |= SKBTX_ZEROCOPY_FRAG; in skb_zcopy_set() 1455 skb_shinfo(skb)->destructor_arg = (void *)((uintptr_t) val | 0x1UL); in skb_zcopy_set_nouarg() 1456 skb_shinfo(skb)->tx_flags |= SKBTX_ZEROCOPY_FRAG; in skb_zcopy_set_nouarg() 1461 return (uintptr_t) skb_shinfo(skb)->destructor_arg & 0x1UL; in skb_zcopy_is_nouarg() 1466 return (void *)((uintptr_t) skb_shinfo(skb)->destructor_arg & ~0x1UL); in skb_zcopy_get_nouarg() [all …]
|
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ptp.h | 57 return skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP; in cxgb4_xmit_with_hwtstamp() 62 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; in cxgb4_xmit_hwtstamp_pending()
|
/Linux-v5.10/drivers/staging/octeon/ |
D | ethernet-tx.c | 191 if (unlikely(skb_shinfo(skb)->nr_frags > 5)) { in cvm_oct_xmit() 263 if (skb_shinfo(skb)->nr_frags == 0) { in cvm_oct_xmit() 272 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in cvm_oct_xmit() 273 skb_frag_t *fs = skb_shinfo(skb)->frags + i; in cvm_oct_xmit() 282 hw_buffer.s.size = skb_shinfo(skb)->nr_frags + 1; in cvm_oct_xmit() 283 pko_command.s.segs = skb_shinfo(skb)->nr_frags + 1; in cvm_oct_xmit() 325 if (unlikely(skb_shinfo(skb)->nr_frags)) { in cvm_oct_xmit()
|
/Linux-v5.10/net/sctp/ |
D | inqueue.c | 125 chunk->skb = skb_shinfo(chunk->skb)->frag_list; in sctp_inq_pop() 162 if (skb_shinfo(chunk->skb)->frag_list) in sctp_inq_pop() 167 chunk->skb = skb_shinfo(chunk->skb)->frag_list; in sctp_inq_pop()
|
/Linux-v5.10/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 1083 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in vnet_skb_map() 1084 skb_frag_t *f = &skb_shinfo(skb)->frags[i]; in vnet_skb_map() 1123 docopy = skb_shinfo(skb)->nr_frags >= ncookies; in vnet_skb_shape() 1124 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in vnet_skb_shape() 1125 skb_frag_t *f = &skb_shinfo(skb)->frags[i]; in vnet_skb_shape() 1209 skb_shinfo(nskb)->gso_size = skb_shinfo(skb)->gso_size; in vnet_skb_shape() 1210 skb_shinfo(nskb)->gso_type = skb_shinfo(skb)->gso_type; in vnet_skb_shape() 1249 gso_size = skb_shinfo(skb)->gso_size; in vnet_handle_offloads() 1250 gso_type = skb_shinfo(skb)->gso_type; in vnet_handle_offloads() 1251 gso_segs = skb_shinfo(skb)->gso_segs; in vnet_handle_offloads() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tx.c | 201 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) in mlx5e_tx_get_gso_ihs() 236 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in mlx5e_txwqe_build_dsegs() 237 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in mlx5e_txwqe_build_dsegs() 308 .mss = cpu_to_be16(skb_shinfo(skb)->gso_size), in mlx5e_sq_xmit_prepare() 310 .num_bytes = skb->len + (skb_shinfo(skb)->gso_segs - 1) * ihs, in mlx5e_sq_xmit_prepare() 314 stats->packets += skb_shinfo(skb)->gso_segs; in mlx5e_sq_xmit_prepare() 345 ds_cnt += !!attr->headlen + skb_shinfo(skb)->nr_frags + ds_cnt_ids; in mlx5e_sq_calc_wqe_attr() 366 if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) in mlx5e_tx_skb_update_hwts_flags() 367 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; in mlx5e_tx_skb_update_hwts_flags() 705 if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) { in mlx5e_consume_skb() [all …]
|
/Linux-v5.10/net/xfrm/ |
D | xfrm_ipcomp.c | 72 if (WARN_ON(skb_shinfo(skb)->nr_frags >= MAX_SKB_FRAGS)) in ipcomp_decompress() 75 frag = skb_shinfo(skb)->frags + skb_shinfo(skb)->nr_frags; in ipcomp_decompress() 96 skb_shinfo(skb)->nr_frags++; in ipcomp_decompress()
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_fp.c | 111 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++, bds_consumed++) { in qede_free_tx_pkt() 191 unsigned short gso_type = skb_shinfo(skb)->gso_type; in qede_xmit_type() 285 return (skb_shinfo(skb)->nr_frags > allowed_frags); in qede_pkt_req_lin() 662 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6; in qede_set_gro_params() 664 skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4; in qede_set_gro_params() 666 skb_shinfo(skb)->gso_size = __le16_to_cpu(cqe->len_on_first_bd) - in qede_set_gro_params() 931 skb_shinfo(skb)->gso_type = 0; in qede_gro_receive() 932 skb_shinfo(skb)->gso_size = 0; in qede_gro_receive() 937 if (skb_shinfo(skb)->gso_size) { in qede_gro_receive() 1220 skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags++, in qede_rx_build_jumbo() [all …]
|