/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_flow.c | 627 static int ice_flow_val_hdrs(struct ice_flow_seg_info *segs, u8 segs_cnt) in ice_flow_val_hdrs() argument 633 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK && in ice_flow_val_hdrs() 634 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK)) in ice_flow_val_hdrs() 638 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK && in ice_flow_val_hdrs() 639 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK)) in ice_flow_val_hdrs() 667 sz = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_VLAN) ? in ice_flow_calc_seg_sz() 671 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz() 673 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz() 675 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ARP) in ice_flow_calc_seg_sz() 677 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK) in ice_flow_calc_seg_sz() [all …]
|
/Linux-v6.1/net/sctp/ |
D | offload.c | 41 struct sk_buff *segs = ERR_PTR(-EINVAL); in sctp_gso_segment() local 67 segs = NULL; in sctp_gso_segment() 71 segs = skb_segment(skb, (features | NETIF_F_HW_CSUM) & ~NETIF_F_SG); in sctp_gso_segment() 72 if (IS_ERR(segs)) in sctp_gso_segment() 77 for (skb = segs; skb; skb = skb->next) { in sctp_gso_segment() 86 return segs; in sctp_gso_segment()
|
/Linux-v6.1/net/ipv4/ |
D | udp_offload.c | 23 struct sk_buff *segs = ERR_PTR(-EINVAL); in __skb_udp_tunnel_segment() local 86 segs = gso_inner_segment(skb, features); in __skb_udp_tunnel_segment() 87 if (IS_ERR_OR_NULL(segs)) { in __skb_udp_tunnel_segment() 93 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in __skb_udp_tunnel_segment() 97 skb = segs; in __skb_udp_tunnel_segment() 149 return segs; in __skb_udp_tunnel_segment() 159 struct sk_buff *segs = ERR_PTR(-EINVAL); in skb_udp_tunnel_segment() local 181 segs = __skb_udp_tunnel_segment(skb, features, gso_inner_segment, in skb_udp_tunnel_segment() 187 return segs; in skb_udp_tunnel_segment() 218 static struct sk_buff *__udpv4_gso_segment_list_csum(struct sk_buff *segs) in __udpv4_gso_segment_list_csum() argument [all …]
|
D | tcp_offload.c | 58 struct sk_buff *segs = ERR_PTR(-EINVAL); in tcp_gso_segment() local 90 segs = NULL; in tcp_gso_segment() 99 segs = skb_segment(skb, features); in tcp_gso_segment() 100 if (IS_ERR(segs)) in tcp_gso_segment() 104 segs->ooo_okay = ooo_okay; in tcp_gso_segment() 110 if (skb_is_gso(segs)) in tcp_gso_segment() 111 mss *= skb_shinfo(segs)->gso_segs; in tcp_gso_segment() 115 skb = segs; in tcp_gso_segment() 120 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment() 178 return segs; in tcp_gso_segment()
|
D | gre_offload.c | 20 struct sk_buff *segs = ERR_PTR(-EINVAL); in gre_gso_segment() local 57 segs = skb_mac_gso_segment(skb, features); in gre_gso_segment() 58 if (IS_ERR_OR_NULL(segs)) { in gre_gso_segment() 64 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in gre_gso_segment() 68 skb = segs; in gre_gso_segment() 118 return segs; in gre_gso_segment()
|
D | esp4_offload.c | 124 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm4_transport_gso_segment() local 130 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_transport_gso_segment() 132 return segs; in xfrm4_transport_gso_segment() 140 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm4_beet_gso_segment() local 171 segs = ops->callbacks.gso_segment(skb, features); in xfrm4_beet_gso_segment() 173 return segs; in xfrm4_beet_gso_segment()
|
/Linux-v6.1/net/mpls/ |
D | mpls_gso.c | 22 struct sk_buff *segs = ERR_PTR(-EINVAL); in mpls_gso_segment() local 47 segs = skb_mac_gso_segment(skb, mpls_features); in mpls_gso_segment() 48 if (IS_ERR_OR_NULL(segs)) { in mpls_gso_segment() 53 skb = segs; in mpls_gso_segment() 69 return segs; in mpls_gso_segment()
|
/Linux-v6.1/net/nsh/ |
D | nsh.c | 79 struct sk_buff *segs = ERR_PTR(-EINVAL); in nsh_gso_segment() local 108 segs = skb_mac_gso_segment(skb, features); in nsh_gso_segment() 109 if (IS_ERR_OR_NULL(segs)) { in nsh_gso_segment() 116 for (skb = segs; skb; skb = skb->next) { in nsh_gso_segment() 125 return segs; in nsh_gso_segment()
|
/Linux-v6.1/tools/lib/bpf/ |
D | usdt.c | 394 static int parse_elf_segs(Elf *elf, const char *path, struct elf_seg **segs, size_t *seg_cnt) in parse_elf_segs() argument 421 tmp = libbpf_reallocarray(*segs, *seg_cnt + 1, sizeof(**segs)); in parse_elf_segs() 425 *segs = tmp; in parse_elf_segs() 426 seg = *segs + *seg_cnt; in parse_elf_segs() 440 qsort(*segs, *seg_cnt, sizeof(**segs), cmp_elf_segs); in parse_elf_segs() 444 static int parse_vma_segs(int pid, const char *lib_path, struct elf_seg **segs, size_t *seg_cnt) in parse_vma_segs() argument 504 tmp = libbpf_reallocarray(*segs, *seg_cnt + 1, sizeof(**segs)); in parse_vma_segs() 510 *segs = tmp; in parse_vma_segs() 511 seg = *segs + *seg_cnt; in parse_vma_segs() 527 qsort(*segs, *seg_cnt, sizeof(**segs), cmp_elf_segs); in parse_vma_segs() [all …]
|
/Linux-v6.1/net/ipv6/ |
D | ip6_offload.c | 77 struct sk_buff *segs = ERR_PTR(-EINVAL); in ipv6_gso_segment() local 123 segs = ERR_PTR(-EPROTONOSUPPORT); in ipv6_gso_segment() 138 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment() 139 if (!segs) in ipv6_gso_segment() 143 if (IS_ERR_OR_NULL(segs)) in ipv6_gso_segment() 146 gso_partial = !!(skb_shinfo(segs)->gso_type & SKB_GSO_PARTIAL); in ipv6_gso_segment() 148 for (skb = segs; skb; skb = skb->next) { in ipv6_gso_segment() 163 kfree_skb_list(segs); in ipv6_gso_segment() 178 return segs; in ipv6_gso_segment()
|
D | udp_offload.c | 21 struct sk_buff *segs = ERR_PTR(-EINVAL); in udp6_ufo_fragment() local 34 segs = skb_udp_tunnel_segment(skb, features, true); in udp6_ufo_fragment() 108 segs = skb_segment(skb, features); in udp6_ufo_fragment() 112 return segs; in udp6_ufo_fragment()
|
D | esp6_offload.c | 159 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm6_transport_gso_segment() local 165 segs = ops->callbacks.gso_segment(skb, features); in xfrm6_transport_gso_segment() 167 return segs; in xfrm6_transport_gso_segment() 175 struct sk_buff *segs = ERR_PTR(-EINVAL); in xfrm6_beet_gso_segment() local 210 segs = ops->callbacks.gso_segment(skb, features); in xfrm6_beet_gso_segment() 212 return segs; in xfrm6_beet_gso_segment()
|
/Linux-v6.1/net/sched/ |
D | sch_tbf.c | 208 struct sk_buff *segs, *nskb; in tbf_segment() local 213 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK); in tbf_segment() 215 if (IS_ERR_OR_NULL(segs)) in tbf_segment() 219 skb_list_walk_safe(segs, segs, nskb) { in tbf_segment() 220 skb_mark_not_on_list(segs); in tbf_segment() 221 qdisc_skb_cb(segs)->pkt_len = segs->len; in tbf_segment() 222 len += segs->len; in tbf_segment() 223 ret = qdisc_enqueue(segs, q->qdisc, to_free); in tbf_segment()
|
D | sch_netem.c | 415 struct sk_buff *segs; in netem_segment() local 418 segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK); in netem_segment() 420 if (IS_ERR_OR_NULL(segs)) { in netem_segment() 425 return segs; in netem_segment() 441 struct sk_buff *segs = NULL; in netem_enqueue() local 499 segs = skb->next; in netem_enqueue() 522 skb->next = segs; in netem_enqueue() 595 if (segs) { in netem_enqueue() 602 while (segs) { in netem_enqueue() 603 skb2 = segs->next; in netem_enqueue() [all …]
|
/Linux-v6.1/drivers/infiniband/sw/rdmavt/ |
D | mr.c | 379 mr->mr.map[m]->segs[n].vaddr = vaddr; in rvt_reg_user_mr() 380 mr->mr.map[m]->segs[n].length = PAGE_SIZE; in rvt_reg_user_mr() 569 mr->mr.map[m]->segs[n].vaddr = (void *)addr; in rvt_set_page() 570 mr->mr.map[m]->segs[n].length = ps; in rvt_set_page() 599 mr->mr.offset = ibmr->iova - (u64)mr->mr.map[0]->segs[0].vaddr; in rvt_map_mr_sg() 787 while (off >= mr->map[m]->segs[n].length) { in rvt_lkey_ok() 788 off -= mr->map[m]->segs[n].length; in rvt_lkey_ok() 797 isge->vaddr = mr->map[m]->segs[n].vaddr + off; in rvt_lkey_ok() 798 isge->length = mr->map[m]->segs[n].length - off; in rvt_lkey_ok() 894 while (off >= mr->map[m]->segs[n].length) { in rvt_rkey_ok() [all …]
|
/Linux-v6.1/include/linux/ |
D | blk-integrity.h | 69 unsigned int segs) in blk_queue_max_integrity_segments() argument 71 q->limits.max_integrity_segments = segs; in blk_queue_max_integrity_segments() 154 unsigned int segs) in blk_queue_max_integrity_segments() argument
|
/Linux-v6.1/fs/ |
D | binfmt_elf_fdpic.c | 773 seg = loadmap->segs; in elf_fdpic_map_file() 794 seg = loadmap->segs; in elf_fdpic_map_file() 819 seg = loadmap->segs; in elf_fdpic_map_file() 840 seg = loadmap->segs; in elf_fdpic_map_file() 876 mseg = loadmap->segs; in elf_fdpic_map_file() 904 seg = loadmap->segs; in elf_fdpic_map_file() 935 seg = params->loadmap->segs; in elf_fdpic_map_file_constdisp_on_uclinux() 1022 seg = params->loadmap->segs; in elf_fdpic_map_file_by_direct_mmap() 1237 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() argument 1255 elf->e_phnum = segs; in fill_elf_fdpic_header() [all …]
|
/Linux-v6.1/include/rdma/ |
D | rdmavt_mr.h | 28 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-v6.1/net/core/ |
D | gro.c | 104 struct sk_buff *segs = ERR_PTR(-EPROTONOSUPPORT); in skb_eth_gso_segment() local 110 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment() 116 return segs; in skb_eth_gso_segment() 128 struct sk_buff *segs = ERR_PTR(-EPROTONOSUPPORT); in skb_mac_gso_segment() local 141 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment() 149 return segs; in skb_mac_gso_segment() 163 int segs; in skb_gro_receive() local 179 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive() 270 NAPI_GRO_CB(p)->count += segs; in skb_gro_receive()
|
D | dev.h | 99 unsigned int segs) in netif_set_gso_max_segs() argument 102 WRITE_ONCE(dev->gso_max_segs, segs); in netif_set_gso_max_segs()
|
/Linux-v6.1/net/xfrm/ |
D | xfrm_output.c | 620 struct sk_buff *segs, *nskb; in xfrm_output_gso() local 624 segs = skb_gso_segment(skb, 0); in xfrm_output_gso() 626 if (IS_ERR(segs)) in xfrm_output_gso() 627 return PTR_ERR(segs); in xfrm_output_gso() 628 if (segs == NULL) in xfrm_output_gso() 631 skb_list_walk_safe(segs, segs, nskb) { in xfrm_output_gso() 634 skb_mark_not_on_list(segs); in xfrm_output_gso() 635 err = xfrm_output2(net, sk, segs); in xfrm_output_gso()
|
D | xfrm_device.c | 151 struct sk_buff *segs; in validate_xmit_xfrm() local 156 segs = skb_gso_segment(skb, esp_features); in validate_xmit_xfrm() 157 if (IS_ERR(segs)) { in validate_xmit_xfrm() 163 skb = segs; in validate_xmit_xfrm()
|
/Linux-v6.1/include/uapi/linux/ |
D | elf-fdpic.h | 30 struct elf32_fdpic_loadseg segs[]; member
|
/Linux-v6.1/drivers/net/wireguard/ |
D | device.c | 178 struct sk_buff *segs = skb_gso_segment(skb, 0); in wg_xmit() local 180 if (IS_ERR(segs)) { in wg_xmit() 181 ret = PTR_ERR(segs); in wg_xmit() 185 skb = segs; in wg_xmit()
|
/Linux-v6.1/include/net/ |
D | udp.h | 461 struct sk_buff *segs; in udp_rcv_segment() local 483 segs = __skb_gso_segment(skb, features, false); in udp_rcv_segment() 484 if (IS_ERR_OR_NULL(segs)) { in udp_rcv_segment() 494 return segs; in udp_rcv_segment()
|