Home
last modified time | relevance | path

Searched refs:segs (Results 1 – 25 of 81) sorted by relevance

1234

/Linux-v4.19/net/ipv4/
Dudp_offload.c25 struct sk_buff *segs = ERR_PTR(-EINVAL); in __skb_udp_tunnel_segment() local
85 segs = gso_inner_segment(skb, features); in __skb_udp_tunnel_segment()
86 if (IS_ERR_OR_NULL(segs)) { in __skb_udp_tunnel_segment()
92 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in __skb_udp_tunnel_segment()
96 skb = segs; in __skb_udp_tunnel_segment()
148 return segs; in __skb_udp_tunnel_segment()
158 struct sk_buff *segs = ERR_PTR(-EINVAL); in skb_udp_tunnel_segment() local
180 segs = __skb_udp_tunnel_segment(skb, features, gso_inner_segment, in skb_udp_tunnel_segment()
186 return segs; in skb_udp_tunnel_segment()
195 struct sk_buff *segs, *seg; in __udp_gso_segment() local
[all …]
Dtcp_offload.c60 struct sk_buff *segs = ERR_PTR(-EINVAL); in tcp_gso_segment() local
92 segs = NULL; in tcp_gso_segment()
101 segs = skb_segment(skb, features); in tcp_gso_segment()
102 if (IS_ERR(segs)) in tcp_gso_segment()
106 segs->ooo_okay = ooo_okay; in tcp_gso_segment()
112 if (skb_is_gso(segs)) in tcp_gso_segment()
113 mss *= skb_shinfo(segs)->gso_segs; in tcp_gso_segment()
117 skb = segs; in tcp_gso_segment()
122 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment()
180 return segs; in tcp_gso_segment()
Dgre_offload.c22 struct sk_buff *segs = ERR_PTR(-EINVAL); in gre_gso_segment() local
53 segs = skb_mac_gso_segment(skb, features); in gre_gso_segment()
54 if (IS_ERR_OR_NULL(segs)) { in gre_gso_segment()
60 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in gre_gso_segment()
64 skb = segs; in gre_gso_segment()
108 return segs; in gre_gso_segment()
Dxfrm4_mode_transport.c65 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm4_transport_gso_segment() local
71 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_transport_gso_segment()
73 return segs; in xfrm4_transport_gso_segment()
/Linux-v4.19/net/sctp/
Doffload.c45 struct sk_buff *segs = ERR_PTR(-EINVAL); in sctp_gso_segment() local
71 segs = NULL; in sctp_gso_segment()
75 segs = skb_segment(skb, features | NETIF_F_HW_CSUM | NETIF_F_SG); in sctp_gso_segment()
76 if (IS_ERR(segs)) in sctp_gso_segment()
81 for (skb = segs; skb; skb = skb->next) { in sctp_gso_segment()
90 return segs; in sctp_gso_segment()
/Linux-v4.19/net/xfrm/
Dxfrm_output.c181 struct sk_buff *segs; in xfrm_output_gso() local
185 segs = skb_gso_segment(skb, 0); in xfrm_output_gso()
187 if (IS_ERR(segs)) in xfrm_output_gso()
188 return PTR_ERR(segs); in xfrm_output_gso()
189 if (segs == NULL) in xfrm_output_gso()
193 struct sk_buff *nskb = segs->next; in xfrm_output_gso()
196 segs->next = NULL; in xfrm_output_gso()
197 err = xfrm_output2(net, sk, segs); in xfrm_output_gso()
204 segs = nskb; in xfrm_output_gso()
205 } while (segs); in xfrm_output_gso()
Dxfrm_device.c60 struct sk_buff *segs; in validate_xmit_xfrm() local
66 segs = skb_gso_segment(skb, esp_features); in validate_xmit_xfrm()
67 if (IS_ERR(segs)) { in validate_xmit_xfrm()
73 skb = segs; in validate_xmit_xfrm()
/Linux-v4.19/net/mpls/
Dmpls_gso.c25 struct sk_buff *segs = ERR_PTR(-EINVAL); in mpls_gso_segment() local
48 segs = skb_mac_gso_segment(skb, mpls_features); in mpls_gso_segment()
49 if (IS_ERR_OR_NULL(segs)) { in mpls_gso_segment()
54 skb = segs; in mpls_gso_segment()
70 return segs; in mpls_gso_segment()
/Linux-v4.19/net/nsh/
Dnsh.c82 struct sk_buff *segs = ERR_PTR(-EINVAL); in nsh_gso_segment() local
111 segs = skb_mac_gso_segment(skb, features); in nsh_gso_segment()
112 if (IS_ERR_OR_NULL(segs)) { in nsh_gso_segment()
119 for (skb = segs; skb; skb = skb->next) { in nsh_gso_segment()
128 return segs; in nsh_gso_segment()
/Linux-v4.19/net/sched/
Dsch_tbf.c152 struct sk_buff *segs, *nskb; in tbf_segment() local
157 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK); in tbf_segment()
159 if (IS_ERR_OR_NULL(segs)) in tbf_segment()
163 while (segs) { in tbf_segment()
164 nskb = segs->next; in tbf_segment()
165 segs->next = NULL; in tbf_segment()
166 qdisc_skb_cb(segs)->pkt_len = segs->len; in tbf_segment()
167 len += segs->len; in tbf_segment()
168 ret = qdisc_enqueue(segs, q->qdisc, to_free); in tbf_segment()
175 segs = nskb; in tbf_segment()
Dsch_netem.c402 struct sk_buff *segs; in netem_segment() local
405 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK); in netem_segment()
407 if (IS_ERR_OR_NULL(segs)) { in netem_segment()
412 return segs; in netem_segment()
438 struct sk_buff *segs = NULL; in netem_enqueue() local
489 segs = netem_segment(skb, sch, to_free); in netem_enqueue()
490 if (!segs) in netem_enqueue()
493 segs = skb; in netem_enqueue()
496 skb = segs; in netem_enqueue()
497 segs = segs->next; in netem_enqueue()
[all …]
Dsch_cake.c1308 u16 segs = 1; in cake_overhead() local
1337 segs = DIV_ROUND_UP(skb->len - hdr_len, in cake_overhead()
1340 segs = shinfo->gso_segs; in cake_overhead()
1343 last_len = skb->len - shinfo->gso_size * (segs - 1); in cake_overhead()
1345 return (cake_calc_overhead(q, len, off) * (segs - 1) + in cake_overhead()
1668 struct sk_buff *segs, *nskb; in cake_enqueue() local
1672 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK); in cake_enqueue()
1673 if (IS_ERR_OR_NULL(segs)) in cake_enqueue()
1676 while (segs) { in cake_enqueue()
1677 nskb = segs->next; in cake_enqueue()
[all …]
/Linux-v4.19/net/ipv6/
Dip6_offload.c61 struct sk_buff *segs = ERR_PTR(-EINVAL); in ipv6_gso_segment() local
85 segs = ERR_PTR(-EPROTONOSUPPORT); in ipv6_gso_segment()
100 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment()
103 if (IS_ERR_OR_NULL(segs)) in ipv6_gso_segment()
106 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in ipv6_gso_segment()
108 for (skb = segs; skb; skb = skb->next) { in ipv6_gso_segment()
123 kfree_skb_list(segs); in ipv6_gso_segment()
138 return segs; in ipv6_gso_segment()
Dudp_offload.c23 struct sk_buff *segs = ERR_PTR(-EINVAL); in udp6_ufo_fragment() local
40 segs = skb_udp_tunnel_segment(skb, features, true); in udp6_ufo_fragment()
110 segs = skb_segment(skb, features); in udp6_ufo_fragment()
114 return segs; in udp6_ufo_fragment()
Dxfrm6_mode_transport.c71 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm4_transport_gso_segment() local
77 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_transport_gso_segment()
79 return segs; in xfrm4_transport_gso_segment()
/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dmr.c422 mr->mr.map[m]->segs[n].vaddr = vaddr; in rvt_reg_user_mr()
423 mr->mr.map[m]->segs[n].length = BIT(umem->page_shift); in rvt_reg_user_mr()
621 mr->mr.map[m]->segs[n].vaddr = (void *)addr; in rvt_set_page()
622 mr->mr.map[m]->segs[n].length = ps; in rvt_set_page()
810 fmr->mr.map[m]->segs[n].vaddr = (void *)page_list[i]; in rvt_map_phys_fmr()
811 fmr->mr.map[m]->segs[n].length = ps; in rvt_map_phys_fmr()
984 while (off >= mr->map[m]->segs[n].length) { in rvt_lkey_ok()
985 off -= mr->map[m]->segs[n].length; in rvt_lkey_ok()
994 isge->vaddr = mr->map[m]->segs[n].vaddr + off; in rvt_lkey_ok()
995 isge->length = mr->map[m]->segs[n].length - off; in rvt_lkey_ok()
[all …]
/Linux-v4.19/include/rdma/
Drdmavt_mr.h70 struct rvt_seg segs[RVT_SEGSZ]; member
175 sge->vaddr = sge->mr->map[sge->m]->segs[sge->n].vaddr; in rvt_update_sge()
176 sge->length = sge->mr->map[sge->m]->segs[sge->n].length; in rvt_update_sge()
/Linux-v4.19/fs/
Dbinfmt_elf_fdpic.c768 seg = loadmap->segs; in elf_fdpic_map_file()
789 seg = loadmap->segs; in elf_fdpic_map_file()
814 seg = loadmap->segs; in elf_fdpic_map_file()
835 seg = loadmap->segs; in elf_fdpic_map_file()
871 mseg = loadmap->segs; in elf_fdpic_map_file()
899 seg = loadmap->segs; in elf_fdpic_map_file()
930 seg = params->loadmap->segs; in elf_fdpic_map_file_constdisp_on_uclinux()
1021 seg = params->loadmap->segs; in elf_fdpic_map_file_by_direct_mmap()
1294 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() argument
1312 elf->e_phnum = segs; in fill_elf_fdpic_header()
[all …]
Dbinfmt_elf.c1445 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument
1463 elf->e_phnum = segs; in fill_elf_header()
2190 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument
2202 shdr4extnum->sh_info = segs; in fill_extnum_info()
2216 int segs, i; in elf_core_dump() local
2248 segs = current->mm->map_count; in elf_core_dump()
2249 segs += elf_core_extra_phdrs(); in elf_core_dump()
2253 segs++; in elf_core_dump()
2256 segs++; in elf_core_dump()
2261 e_phnum = segs > PN_XNUM ? PN_XNUM : segs; in elf_core_dump()
[all …]
/Linux-v4.19/drivers/usb/wusbcore/
Dwa-xfer.c143 u8 segs, segs_submitted, segs_done; member
177 for (cnt = 0; cnt < xfer->segs; cnt++) { in wa_xfer_destroy()
335 for (cnt = 0; cnt < xfer->segs; cnt++) { in __wa_xfer_is_done()
349 && cnt != xfer->segs-1) in __wa_xfer_is_done()
455 while (seg_index < xfer->segs) { in __wa_xfer_abort_cb()
626 xfer->segs = 0; in __wa_xfer_setup_sizes()
635 ++xfer->segs; in __wa_xfer_setup_sizes()
638 xfer->segs = DIV_ROUND_UP(urb->transfer_buffer_length, in __wa_xfer_setup_sizes()
640 if (xfer->segs == 0 && *pxfer_type == WA_XFER_TYPE_CTL) in __wa_xfer_setup_sizes()
641 xfer->segs = 1; in __wa_xfer_setup_sizes()
[all …]
/Linux-v4.19/include/uapi/linux/
Delf-fdpic.h30 struct elf32_fdpic_loadseg segs[]; member
/Linux-v4.19/drivers/net/
Dtap.c342 struct sk_buff *segs = __skb_gso_segment(skb, features, false); in tap_handle_frame() local
344 if (IS_ERR(segs)) in tap_handle_frame()
347 if (!segs) { in tap_handle_frame()
354 while (segs) { in tap_handle_frame()
355 struct sk_buff *nskb = segs->next; in tap_handle_frame()
357 segs->next = NULL; in tap_handle_frame()
358 if (ptr_ring_produce(&q->ring, segs)) { in tap_handle_frame()
359 kfree_skb(segs); in tap_handle_frame()
363 segs = nskb; in tap_handle_frame()
/Linux-v4.19/include/net/
Dip.h426 u32 ip_idents_reserve(u32 hash, int segs);
427 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
430 struct sock *sk, int segs) in ip_select_ident_segs() argument
442 inet_sk(sk)->inet_id += segs; in ip_select_ident_segs()
447 __ip_select_ident(net, iph, segs); in ip_select_ident_segs()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.h40 u16 segs; member
/Linux-v4.19/net/netfilter/
Dnfnetlink_queue.c785 struct sk_buff *skb, *segs; in nfqnl_enqueue_packet() local
813 segs = skb_gso_segment(skb, 0); in nfqnl_enqueue_packet()
818 if (IS_ERR_OR_NULL(segs)) in nfqnl_enqueue_packet()
823 struct sk_buff *nskb = segs->next; in nfqnl_enqueue_packet()
826 segs, entry); in nfqnl_enqueue_packet()
830 kfree_skb(segs); in nfqnl_enqueue_packet()
831 segs = nskb; in nfqnl_enqueue_packet()
832 } while (segs); in nfqnl_enqueue_packet()

1234