Home
last modified time | relevance | path

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

12345

/linux/net/core/
H A Dnet_test.c64 const unsigned int *segs;
74 .segs = (const unsigned int[]) { GSO_TEST_SIZE },
81 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 1 },
90 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 1 },
98 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 2 },
107 .segs = (const unsigned int[]) { 2 * GSO_TEST_SIZE, 3 },
117 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, GSO_TEST_SIZE },
125 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE },
135 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, GSO_TEST_SIZE, 3 },
151 .segs in gso_test_func()
52 const unsigned int *segs; global() member
150 struct sk_buff *skb, *segs, *cur, *next, *last; gso_test_func() local
[all...]
H A Dgso.c16 struct sk_buff *segs = ERR_PTR(-EPROTONOSUPPORT); in skb_eth_gso_segment() local
22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment()
28 return segs; in skb_eth_gso_segment()
40 struct sk_buff *segs = ERR_PTR(-EPROTONOSUPPORT); in skb_mac_gso_segment() local
53 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment()
61 return segs; in skb_mac_gso_segment()
94 struct sk_buff *segs; in __skb_gso_segment()
129 segs = skb_mac_gso_segment(skb, features); in __skb_gso_segment()
131 if (segs != skb && unlikely(skb_needs_check(skb, tx_path) && !IS_ERR(segs))) in __skb_gso_segment()
91 struct sk_buff *segs; __skb_gso_segment() local
[all...]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_flow.c730 * @segs: array of one or more packet segments that describe the flow
733 static int ice_flow_val_hdrs(struct ice_flow_seg_info *segs, u8 segs_cnt) in ice_flow_val_hdrs() argument
739 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK && in ice_flow_val_hdrs()
740 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK)) in ice_flow_val_hdrs()
744 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK && in ice_flow_val_hdrs()
745 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK)) in ice_flow_val_hdrs()
773 sz = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_VLAN) ? in ice_flow_calc_seg_sz()
777 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz()
779 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz()
781 else if (params->prof->segs[se in ice_flow_calc_seg_sz()
1359 ice_flow_find_prof_conds(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt,bool symm,u16 vsi_handle,u32 conds) ice_flow_find_prof_conds() argument
1454 ice_flow_add_prof_sync(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt,bool symm,struct ice_flow_prof ** prof) ice_flow_add_prof_sync() argument
1728 ice_flow_add_prof(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt,bool symm,struct ice_flow_prof ** prof) ice_flow_add_prof() argument
2073 ice_flow_set_rss_seg_info(struct ice_flow_seg_info * segs,u8 seg_cnt,const struct ice_rss_hash_cfg * cfg) ice_flow_set_rss_seg_info() argument
2548 struct ice_flow_seg_info *segs; ice_add_rss_cfg_sync() local
2695 struct ice_flow_seg_info *segs; ice_rem_rss_cfg_sync() local
[all...]
/linux/net/sctp/
H A Doffload.c42 struct sk_buff *segs = ERR_PTR(-EINVAL); in sctp_gso_segment() local
68 segs = NULL; in sctp_gso_segment()
72 segs = skb_segment(skb, (features | NETIF_F_HW_CSUM) & ~NETIF_F_SG); in sctp_gso_segment()
73 if (IS_ERR(segs)) in sctp_gso_segment()
78 for (skb = segs; skb; skb = skb->next) { in sctp_gso_segment()
87 return segs; in sctp_gso_segment()
/linux/net/ipv4/
H A Dudp_offload.c180 struct sk_buff *segs = ERR_PTR(-EINVAL); in __skb_udp_tunnel_segment() local
245 segs = gso_inner_segment(skb, features); in __skb_udp_tunnel_segment()
246 if (IS_ERR_OR_NULL(segs)) { in __skb_udp_tunnel_segment()
252 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in __skb_udp_tunnel_segment()
256 skb = segs; in __skb_udp_tunnel_segment()
308 return segs; in __skb_udp_tunnel_segment()
318 struct sk_buff *segs = ERR_PTR(-EINVAL); in skb_udp_tunnel_segment() local
340 segs = __skb_udp_tunnel_segment(skb, features, gso_inner_segment, in skb_udp_tunnel_segment()
346 return segs; in skb_udp_tunnel_segment()
376 static struct sk_buff *__udpv4_gso_segment_list_csum(struct sk_buff *segs) in __udpv4_gso_segment_list_csum() argument
431 __udpv6_gso_segment_list_csum(struct sk_buff * segs) __udpv6_gso_segment_list_csum() argument
486 struct sk_buff *segs, *seg; __udp_gso_segment() local
636 struct sk_buff *segs = ERR_PTR(-EINVAL); udp4_ufo_fragment() local
[all...]
H A Dtcp_offload.c55 static struct sk_buff *__tcpv4_gso_segment_list_csum(struct sk_buff *segs) in __tcpv4_gso_segment_list_csum() argument
63 seg = segs; in __tcpv4_gso_segment_list_csum()
71 return segs; in __tcpv4_gso_segment_list_csum()
85 return segs; in __tcpv4_gso_segment_list_csum()
140 struct sk_buff *segs = ERR_PTR(-EINVAL); in tcp_gso_segment()
176 segs = NULL; in tcp_gso_segment()
185 segs = skb_segment(skb, features); in tcp_gso_segment()
186 if (IS_ERR(segs)) in tcp_gso_segment()
190 segs->ooo_okay = ooo_okay; in tcp_gso_segment()
196 if (skb_is_gso(segs)) in tcp_gso_segment()
136 struct sk_buff *segs = ERR_PTR(-EINVAL); tcp_gso_segment() local
[all...]
H A Dgre_offload.c21 struct sk_buff *segs = ERR_PTR(-EINVAL); in gre_gso_segment() local
58 segs = skb_mac_gso_segment(skb, features); in gre_gso_segment()
59 if (IS_ERR_OR_NULL(segs)) { in gre_gso_segment()
65 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in gre_gso_segment()
69 skb = segs; in gre_gso_segment()
119 return segs; in gre_gso_segment()
H A Desp4_offload.c139 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm4_transport_gso_segment()
145 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_transport_gso_segment()
147 return segs; in xfrm4_transport_gso_segment()
155 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm4_beet_gso_segment()
186 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_beet_gso_segment()
188 return segs; in xfrm4_beet_gso_segment()
138 struct sk_buff *segs = ERR_PTR(-EINVAL); xfrm4_transport_gso_segment() local
154 struct sk_buff *segs = ERR_PTR(-EINVAL); xfrm4_beet_gso_segment() local
/linux/net/mpls/
H A Dmpls_gso.c23 struct sk_buff *segs = ERR_PTR(-EINVAL); in mpls_gso_segment() local
51 segs = skb_mac_gso_segment(skb, mpls_features); in mpls_gso_segment()
52 if (IS_ERR_OR_NULL(segs)) { in mpls_gso_segment()
57 skb = segs; in mpls_gso_segment()
73 return segs; in mpls_gso_segment()
/linux/net/nsh/
H A Dnsh.c82 struct sk_buff *segs = ERR_PTR(-EINVAL); in nsh_gso_segment()
117 segs = skb_mac_gso_segment(skb, features); in nsh_gso_segment()
118 if (IS_ERR_OR_NULL(segs)) { in nsh_gso_segment()
124 for (skb = segs; skb; skb = skb->next) { in nsh_gso_segment()
133 return segs;
81 struct sk_buff *segs = ERR_PTR(-EINVAL); nsh_gso_segment() local
/linux/net/ipv6/
H A Dip6_offload.c103 struct sk_buff *segs = ERR_PTR(-EINVAL); in ipv6_gso_segment()
130 segs = ERR_PTR(-EPROTONOSUPPORT); in ipv6_gso_segment()
147 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment()
148 if (!segs) in ipv6_gso_segment()
152 if (IS_ERR_OR_NULL(segs)) in ipv6_gso_segment()
155 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in ipv6_gso_segment()
157 for (skb = segs; skb; skb = skb->next) { in ipv6_gso_segment()
172 kfree_skb_list(segs); in ipv6_gso_segment()
187 return segs; in ipv6_exthdrs_len()
95 struct sk_buff *segs = ERR_PTR(-EINVAL); ipv6_gso_segment() local
H A Dudp_offload.c22 struct sk_buff *segs = ERR_PTR(-EINVAL); in udp6_ufo_fragment() local
35 segs = skb_udp_tunnel_segment(skb, features, true); in udp6_ufo_fragment()
109 segs = skb_segment(skb, features); in udp6_ufo_fragment()
113 return segs; in udp6_ufo_fragment()
H A Dtcpv6_offload.c127 static struct sk_buff *__tcpv6_gso_segment_list_csum(struct sk_buff *segs) in __tcpv6_gso_segment_list_csum()
135 seg = segs; in __tcpv6_gso_segment_list_csum()
144 return segs; in __tcpv6_gso_segment_list_csum()
156 return segs; in __tcpv6_gso_segment_list_csum()
126 __tcpv6_gso_segment_list_csum(struct sk_buff * segs) __tcpv6_gso_segment_list_csum() argument
H A Desp6_offload.c175 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm6_transport_gso_segment()
181 segs = ops->callbacks.gso_segment(skb, features); in xfrm6_transport_gso_segment()
183 return segs; in xfrm6_transport_gso_segment()
191 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm6_beet_gso_segment()
226 segs = ops->callbacks.gso_segment(skb, features); in xfrm6_beet_gso_segment()
228 return segs; in xfrm6_beet_gso_segment()
174 struct sk_buff *segs = ERR_PTR(-EINVAL); xfrm6_transport_gso_segment() local
190 struct sk_buff *segs = ERR_PTR(-EINVAL); xfrm6_beet_gso_segment() local
/linux/tools/lib/bpf/
H A Dusdt.c419 static int parse_elf_segs(Elf *elf, const char *path, struct elf_seg **segs, size_t *seg_cnt) in parse_elf_segs() argument
447 tmp = libbpf_reallocarray(*segs, *seg_cnt + 1, sizeof(**segs)); in parse_elf_segs()
451 *segs = tmp; in parse_elf_segs()
452 seg = *segs + *seg_cnt; in parse_elf_segs()
466 qsort(*segs, *seg_cnt, sizeof(**segs), cmp_elf_segs); in parse_elf_segs()
470 static int parse_vma_segs(int pid, const char *lib_path, struct elf_seg **segs, size_t *seg_cnt) in parse_vma_segs() argument
538 tmp = libbpf_reallocarray(*segs, *seg_cnt + 1, sizeof(**segs)); in parse_vma_segs()
568 find_elf_seg(struct elf_seg * segs,size_t seg_cnt,long virtaddr) find_elf_seg() argument
584 find_vma_seg(struct elf_seg * segs,size_t seg_cnt,long offset) find_vma_seg() argument
630 struct elf_seg *segs = NULL, *vma_segs = NULL; collect_usdt_targets() local
[all...]
/linux/net/sched/
H A Dsch_tbf.c214 struct sk_buff *segs, *nskb; in tbf_segment()
219 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK); in tbf_segment()
221 if (IS_ERR_OR_NULL(segs)) in tbf_segment()
225 skb_list_walk_safe(segs, segs, nskb) { in tbf_segment()
226 skb_mark_not_on_list(segs); in tbf_segment()
227 seg_len = segs->len; in tbf_segment()
228 qdisc_skb_cb(segs)->pkt_len = seg_len; in tbf_segment()
229 qdisc_skb_cb(segs)->pkt_segs = 1; in tbf_segment()
230 ret = qdisc_enqueue(segs, in tbf_segment()
209 struct sk_buff *segs, *nskb; tbf_segment() local
[all...]
H A Dsch_netem.c439 struct sk_buff *segs; in netem_segment()
443 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK);
445 if (IS_ERR_OR_NULL(segs)) {
450 return segs; in netem_enqueue()
466 struct sk_buff *segs = NULL; in netem_enqueue()
526 segs = skb->next; in netem_enqueue()
553 /* re-link segs, so that qdisc_drop_all() frees them all */ in netem_enqueue()
554 skb->next = segs; in netem_enqueue()
649 if (segs) { in netem_enqueue()
656 while (segs) { in get_slot_next()
429 struct sk_buff *segs; netem_segment() local
456 struct sk_buff *segs = NULL; netem_enqueue() local
[all...]
/linux/include/uapi/linux/
H A Delf-fdpic.h30 struct elf32_fdpic_loadseg segs[]; member
45 struct elf64_fdpic_loadseg segs[]; member
/linux/fs/
H A Dbinfmt_elf_fdpic.c775 loadmap = kzalloc_flex(*loadmap, segs, nloads); in elf_fdpic_map_file()
803 seg = loadmap->segs; in elf_fdpic_map_file()
828 seg = loadmap->segs; in elf_fdpic_map_file()
849 seg = loadmap->segs; in elf_fdpic_map_file()
885 mseg = loadmap->segs; in elf_fdpic_map_file()
913 seg = loadmap->segs; in elf_fdpic_map_file()
946 seg = params->loadmap->segs; in elf_fdpic_map_file_constdisp_on_uclinux()
1033 seg = params->loadmap->segs; in elf_fdpic_map_file_by_direct_mmap()
1251 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() argument
1269 elf->e_phnum = segs; in fill_elf_fdpic_header()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_coredump.c98 info->segs = le16_to_cpu(*((__le16 *)(resp + in bnxt_hwrm_dbg_dma_data()
100 if (!info->segs) { in bnxt_hwrm_dbg_dma_data()
105 info->dest_buf_size = info->segs * in bnxt_hwrm_dbg_dma_data()
169 coredump->total_segs = info.segs; in bnxt_hwrm_dbg_coredump_list()
349 u32 *segs) in bnxt_get_ctx_coredump() argument
359 *segs = 0; in bnxt_get_ctx_coredump()
398 *segs += 1; in bnxt_get_ctx_coredump()
436 u32 drv_len, segs = 0; in __bnxt_get_coredump() local
438 drv_len = bnxt_get_ctx_coredump(bp, buf, offset, &segs); in __bnxt_get_coredump()
442 coredump.total_segs += segs; in __bnxt_get_coredump()
/linux/include/rdma/
H A Drdmavt_mr.h28 struct rvt_seg segs[RVT_SEGSZ]; member
133 sge->vaddr = sge->mr->map[sge->m]->segs[sge->n].vaddr; in rvt_update_sge()
134 sge->length = sge->mr->map[sge->m]->segs[sge->n].length; in rvt_update_sge()
/linux/tools/testing/selftests/net/
H A Dlwt_dst_cache_ref_loop.sh63 encap rpl segs 2001:db8:3::1 dev veth0 &>/dev/null
66 encap seg6 mode inline segs 2001:db8:4::1 dev veth0 &>/dev/null
186 encap rpl segs 2001:db8:2::2 \
208 encap seg6 mode inline segs 2001:db8:2::2 \
/linux/net/xfrm/
H A Dxfrm_output.c661 struct sk_buff *segs, *nskb; in xfrm_output_gso() local
665 segs = skb_gso_segment(skb, 0); in xfrm_output_gso()
667 if (IS_ERR(segs)) in xfrm_output_gso()
668 return PTR_ERR(segs); in xfrm_output_gso()
669 if (segs == NULL) in xfrm_output_gso()
672 skb_list_walk_safe(segs, segs, nskb) { in xfrm_output_gso()
675 skb_mark_not_on_list(segs); in xfrm_output_gso()
676 err = xfrm_output2(net, sk, segs); in xfrm_output_gso()
/linux/net/netfilter/
H A Dnf_flow_table_ip.c797 struct sk_buff *segs, *nskb;
799 segs = skb_gso_segment(skb, 0); in nf_flow_queue_xmit4()
800 if (IS_ERR(segs)) in nf_flow_queue_xmit4()
803 if (segs) in nf_flow_queue_xmit4()
806 segs = skb; in nf_flow_queue_xmit4()
808 skb_list_walk_safe(segs, segs, nskb) { in nf_flow_queue_xmit4()
809 skb_mark_not_on_list(segs); in nf_flow_queue_xmit4()
811 if (nf_flow_encap_push(segs, xmit->tuple, xmit->outdev) < 0) { in nf_flow_queue_xmit4()
812 kfree_skb(segs); in nf_flow_queue_xmit4()
757 struct sk_buff *segs, *nskb; nf_flow_encap_gso_xmit() local
[all...]
/linux/include/net/
H A Dudp.h584 struct sk_buff *segs; in udp_rcv_segment() local
616 segs = __skb_gso_segment(skb, features, false, 0); in udp_rcv_segment()
617 if (IS_ERR_OR_NULL(segs)) { in udp_rcv_segment()
623 return segs; in udp_rcv_segment()

12345