| /dpdk/examples/l3fwd/ |
| H A D | lpm_route_parse.c | 185 FILE *fh; in lpm_add_rules() local 190 fh = fopen(rule_path, "rb"); in lpm_add_rules() 191 if (fh == NULL) in lpm_add_rules() 200 fclose(fh); in lpm_add_rules() 204 val = fseek(fh, 0, SEEK_SET); in lpm_add_rules() 206 fclose(fh); in lpm_add_rules() 213 fclose(fh); in lpm_add_rules() 218 while (fgets(buff, LINE_MAX, fh) != NULL) { in lpm_add_rules() 235 fclose(fh); in lpm_add_rules() 244 fclose(fh); in lpm_add_rules() [all …]
|
| H A D | em_route_parse.c | 120 FILE *fh; in em_add_rules() local 125 fh = fopen(rule_path, "rb"); in em_add_rules() 126 if (fh == NULL) in em_add_rules() 135 fclose(fh); in em_add_rules() 139 val = fseek(fh, 0, SEEK_SET); in em_add_rules() 141 fclose(fh); in em_add_rules() 148 fclose(fh); in em_add_rules() 153 while (fgets(buff, LINE_MAX, fh) != NULL) { in em_add_rules() 170 fclose(fh); in em_add_rules() 179 fclose(fh); in em_add_rules() [all …]
|
| /dpdk/lib/ip_frag/ |
| H A D | rte_ipv6_fragmentation.c | 25 struct rte_ipv6_fragment_ext *fh; in __fill_ipv6hdr_frag() local 31 fh = (struct rte_ipv6_fragment_ext *) ++dst; in __fill_ipv6hdr_frag() 32 fh->next_header = src->proto; in __fill_ipv6hdr_frag() 33 fh->reserved = 0; in __fill_ipv6hdr_frag() 34 fh->frag_data = rte_cpu_to_be_16(RTE_IPV6_SET_FRAG_DATA(fofs, mf)); in __fill_ipv6hdr_frag() 35 fh->id = 0; in __fill_ipv6hdr_frag()
|
| /dpdk/examples/flow_classify/ |
| H A D | flow_classify.c | 668 FILE *fh; in add_rules() local 675 fh = fopen(rule_path, "rb"); in add_rules() 676 if (fh == NULL) in add_rules() 680 ret = fseek(fh, 0, SEEK_SET); in add_rules() 686 while (fgets(buff, LINE_MAX, fh) != NULL) { in add_rules() 709 fclose(fh); in add_rules()
|
| /dpdk/app/test/ |
| H A D | test_ipfrag.c | 191 struct ipv6_extension_fragment *fh = in test_get_offset() local 196 offset[i] = fh->frag_data; in test_get_offset()
|
| /dpdk/examples/l3fwd-acl/ |
| H A D | main.c | 1045 FILE *fh = fopen(rule_path, "rb"); in add_rules() local 1049 if (fh == NULL) in add_rules() 1053 while ((fgets(buff, LINE_MAX, fh) != NULL)) { in add_rules() 1064 val = fseek(fh, 0, SEEK_SET); in add_rules() 1083 while (fgets(buff, LINE_MAX, fh) != NULL) { in add_rules() 1132 fclose(fh); in add_rules()
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | ipsec-secgw.c | 2681 struct rte_ipv6_fragment_ext *fh; in rx_callback() local 2684 fh = rte_ipv6_frag_get_ipv6_fragment_header(iph); in rx_callback() 2685 if (fh != NULL) { in rx_callback() 2687 mb->l3_len = (uintptr_t)fh - (uintptr_t)iph + in rx_callback() 2688 sizeof(*fh); in rx_callback() 2692 mb, tm, iph, fh); in rx_callback() 2695 mb->l3_len = mb->l3_len - sizeof(*fh); in rx_callback()
|
| /dpdk/app/test-acl/ |
| H A D | main.c | 346 #define dump_verbose(lvl, fh, fmt, args...) do { \ argument 348 fprintf(fh, fmt, ##args); \
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_flow_hw.c | 1161 struct rte_flow_hw *fh = (struct rte_flow_hw *)flow; in flow_hw_async_flow_destroy() local 1172 job->flow = fh; in flow_hw_async_flow_destroy() 1174 ret = mlx5dr_rule_destroy(&fh->rule, &rule_attr); in flow_hw_async_flow_destroy()
|
| /dpdk/app/test-pmd/ |
| H A D | config.c | 6217 FILE *fh = fopen(file_path, "wb"); in save_file() local 6219 if (fh == NULL) { in save_file() 6224 if (fwrite(buf, 1, size, fh) != size) { in save_file() 6225 fclose(fh); in save_file() 6230 fclose(fh); in save_file()
|