| /dpdk/examples/link_status_interrupt/ |
| H A D | main.c | 114 uint16_t portid; in print_stats() local 129 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in print_stats() 143 portid, in print_stats() 229 portid); in lsi_main_loop() 479 uint16_t portid; in check_all_ports_link_status() local 488 for (portid = 0; portid < port_num; portid++) { in check_all_ports_link_status() 566 for (portid = 0; portid < nb_ports; portid++) { in main() 577 portid_last = portid; in main() 591 for (portid = 0; portid < nb_ports; portid++) { in main() 615 for (portid = 0; portid < nb_ports; portid++) { in main() [all …]
|
| /dpdk/examples/l2fwd/ |
| H A D | main.c | 123 unsigned portid; in print_stats() local 137 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in print_stats() 145 portid, in print_stats() 234 portid); in l2fwd_main_loop() 581 uint16_t portid; in check_all_ports_link_status() local 701 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) in main() 764 portid, l2fwd_dst_ports[portid]); in main() 858 portid); in main() 868 portid); in main() 874 portid); in main() [all …]
|
| /dpdk/examples/l2fwd-keepalive/ |
| H A D | main.c | 123 uint16_t portid; in print_stats() local 137 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in print_stats() 145 portid, in print_stats() 222 portid); in l2fwd_main_loop() 449 uint16_t portid; in check_all_ports_link_status() local 574 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) in main() 658 ret, portid); in main() 665 ret, portid); in main() 705 portid); in main() 715 portid); in main() [all …]
|
| /dpdk/examples/l2fwd-jobstats/ |
| H A D | main.c | 300 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in show_stats_cb() 308 portid, in show_stats_cb() 443 uint16_t portid; in l2fwd_flush_job() local 501 portid); in l2fwd_main_loop() 697 uint16_t portid; in check_all_ports_link_status() local 794 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) in main() 886 ret, portid); in main() 919 ret, portid); in main() 928 portid); in main() 938 portid); in main() [all …]
|
| /dpdk/examples/l3fwd/ |
| H A D | main.c | 300 uint16_t portid; in check_port_config() local 527 uint16_t portid; in parse_eth_dest() local 549 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in parse_eth_dest() 1015 portid); in init_mem() 1036 uint16_t portid; in check_all_ports_link_status() local 1235 portid, in l3fwd_poll_resource_setup() 1245 ret, portid); in l3fwd_poll_resource_setup() 1254 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in l3fwd_poll_resource_setup() 1361 ret, portid); in l3fwd_poll_resource_setup() 1476 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main() [all …]
|
| H A D | l3fwd_lpm_neon.h | 56 uint16_t portid, in processx4_step2() argument 67 portid); in processx4_step2() 73 dst.u32[0], portid); in processx4_step2() 75 dst.u32[1], portid); in processx4_step2() 77 dst.u32[2], portid); in processx4_step2() 79 dst.u32[3], portid); in processx4_step2() 89 uint16_t portid, struct lcore_conf *qconf) in l3fwd_lpm_send_packets() argument 112 processx4_step2(qconf, dip, ipv4_flag, portid, in l3fwd_lpm_send_packets() 147 portid); in l3fwd_lpm_send_packets() 152 portid); in l3fwd_lpm_send_packets() [all …]
|
| H A D | l3fwd_lpm_sse.h | 53 uint16_t portid, in processx4_step2() argument 67 portid); in processx4_step2() 73 dprt[0] = lpm_get_dst_port_with_ipv4(qconf, pkt[0], dst.u32[0], portid); in processx4_step2() 74 dprt[1] = lpm_get_dst_port_with_ipv4(qconf, pkt[1], dst.u32[1], portid); in processx4_step2() 75 dprt[2] = lpm_get_dst_port_with_ipv4(qconf, pkt[2], dst.u32[2], portid); in processx4_step2() 76 dprt[3] = lpm_get_dst_port_with_ipv4(qconf, pkt[3], dst.u32[3], portid); in processx4_step2() 86 uint16_t portid, struct lcore_conf *qconf) in l3fwd_lpm_send_packets() argument 100 ipv4_flag[j / FWDSTEP], portid, &pkts_burst[j], &dst_port[j]); in l3fwd_lpm_send_packets() 105 dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); in l3fwd_lpm_send_packets() 109 dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); in l3fwd_lpm_send_packets() [all …]
|
| H A D | l3fwd_lpm_altivec.h | 59 uint8_t portid, in processx4_step2() argument 77 (uint32_t *)&dst, portid); in processx4_step2() 84 dst.u32[0], portid); in processx4_step2() 86 dst.u32[1], portid); in processx4_step2() 88 dst.u32[2], portid); in processx4_step2() 90 dst.u32[3], portid); in processx4_step2() 100 uint8_t portid, struct lcore_conf *qconf) in l3fwd_lpm_send_packets() argument 115 portid, &pkts_burst[j], &dst_port[j]); in l3fwd_lpm_send_packets() 120 dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); in l3fwd_lpm_send_packets() 124 dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); in l3fwd_lpm_send_packets() [all …]
|
| H A D | l3fwd_lpm.c | 47 uint16_t portid, in lpm_get_ipv4_dst_port() argument 56 return portid; in lpm_get_ipv4_dst_port() 62 uint16_t portid, in lpm_get_ipv6_dst_port() argument 71 return portid; in lpm_get_ipv6_dst_port() 76 uint16_t portid) in lpm_get_dst_port() argument 98 return portid; in lpm_get_dst_port() 130 return portid; in lpm_get_dst_port_with_ipv4() 151 uint16_t portid; in lpm_main_loop() local 195 portid); in lpm_main_loop() 216 portid, qconf); in lpm_main_loop() [all …]
|
| H A D | l3fwd_lpm.h | 9 l3fwd_lpm_simple_forward(struct rte_mbuf *m, uint16_t portid, in l3fwd_lpm_simple_forward() argument 30 dst_port = lpm_get_ipv4_dst_port(ipv4_hdr, portid, in l3fwd_lpm_simple_forward() 35 dst_port = portid; in l3fwd_lpm_simple_forward() 57 dst_port = lpm_get_ipv6_dst_port(ipv6_hdr, portid, in l3fwd_lpm_simple_forward() 62 dst_port = portid; in l3fwd_lpm_simple_forward() 80 uint16_t portid, struct lcore_conf *qconf) in l3fwd_lpm_no_opt_send_packets() argument 92 l3fwd_lpm_simple_forward(pkts_burst[j], portid, qconf); in l3fwd_lpm_no_opt_send_packets() 97 l3fwd_lpm_simple_forward(pkts_burst[j], portid, qconf); in l3fwd_lpm_no_opt_send_packets()
|
| H A D | l3fwd_em.h | 9 l3fwd_em_handle_ipv4(struct rte_mbuf *m, uint16_t portid, in l3fwd_em_handle_ipv4() argument 26 dst_port = em_get_ipv4_dst_port(ipv4_hdr, portid, in l3fwd_em_handle_ipv4() 31 dst_port = portid; in l3fwd_em_handle_ipv4() 49 l3fwd_em_handle_ipv6(struct rte_mbuf *m, uint16_t portid, in l3fwd_em_handle_ipv6() argument 59 dst_port = em_get_ipv6_dst_port(ipv6_hdr, portid, in l3fwd_em_handle_ipv6() 64 dst_port = portid; in l3fwd_em_handle_ipv6() 77 l3fwd_em_simple_forward(struct rte_mbuf *m, uint16_t portid, in l3fwd_em_simple_forward() argument 90 dst_port = l3fwd_em_handle_ipv4(m, portid, eth_hdr, qconf); in l3fwd_em_simple_forward() 126 uint16_t portid, struct lcore_conf *qconf) in l3fwd_em_no_opt_send_packets() argument 141 l3fwd_em_simple_forward(pkts_burst[j], portid, qconf); in l3fwd_em_no_opt_send_packets() [all …]
|
| /dpdk/examples/l3fwd-graph/ |
| H A D | main.c | 188 uint16_t portid; in check_port_config() local 374 uint16_t portid; in parse_eth_dest() local 393 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in parse_eth_dest() 576 uint16_t portid; in check_all_ports_link_status() local 777 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main() 780 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in main() 852 ret, portid); in main() 860 ret, portid); in main() 862 rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main() 914 ret, portid); in main() [all …]
|
| /dpdk/app/test/ |
| H A D | test_pmd_perf.c | 123 uint16_t portid; in check_all_ports_link_status() local 133 for (portid = 0; portid < port_num; portid++) { in check_all_ports_link_status() 480 portid = conf->portlist[i]; in main_loop() 513 portid = conf->portlist[i]; in main_loop() 594 next[portid] += nb_rx; in poll_burst() 595 num[portid] -= nb_rx; in poll_burst() 679 uint16_t portid; in test_pmd_perf() local 736 ret, portid); in test_pmd_perf() 738 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in test_pmd_perf() 742 ret, portid); in test_pmd_perf() [all …]
|
| H A D | test_bitratestats.c | 22 static uint16_t portid; variable 89 ret = rte_stats_bitrate_calc(NULL, portid); in test_stats_bitrate_calc_invalid_bitrate_data() 144 ret = rte_stats_bitrate_calc(bitrate_data, portid); in test_stats_bitrate_calc() 163 ret = test_dev_start(portid, mp); in test_bit_packet_forward() 166 portid, mp, ret); in test_bit_packet_forward() 170 ret = test_packet_forward(pbuf, portid, QUEUE_ID); in test_bit_packet_forward() 174 rte_eth_dev_stop(portid); in test_bit_packet_forward() 183 test_ring_setup(&ring, &portid); in test_bit_ring_setup() 184 printf("port in ring setup : %d\n", portid); in test_bit_ring_setup()
|
| /dpdk/examples/ip_fragmentation/ |
| H A D | main.c | 133 uint16_t portid; member 394 uint16_t portid; in main_loop() local 412 portid = qconf->rx_queue_list[i].portid; in main_loop() 414 portid); in main_loop() 431 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main_loop() 436 portid); in main_loop() 448 portid = qconf->rx_queue_list[i].portid; in main_loop() 595 uint16_t portid; in check_all_ports_link_status() local 940 rxq->portid = portid; in main() 970 ret, portid); in main() [all …]
|
| /dpdk/examples/ipv4_multicast/ |
| H A D | main.c | 381 uint16_t portid; in send_timeout_burst() local 388 for (portid = 0; portid < MAX_PORTS; portid++) { in send_timeout_burst() 402 uint16_t portid; in main_loop() local 590 uint16_t portid; in check_all_ports_link_status() local 655 uint16_t portid; in main() local 747 ret, portid); in main() 754 ret, portid); in main() 756 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main() 760 ret, portid); in main() 777 ret, portid); in main() [all …]
|
| /dpdk/examples/l3fwd-power/ |
| H A D | main.c | 900 uint16_t portid; in event_register() local 930 uint16_t portid; in main_intr_loop() local 1096 uint16_t portid; in main_telemetry_loop() local 1216 uint16_t portid; in main_empty_poll_loop() local 1321 uint16_t portid; in main_legacy_loop() local 1547 unsigned portid; in check_port_config() local 1554 portid); in check_port_config() 1559 portid); in check_port_config() 2658 portid, in main() 2681 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main() [all …]
|
| /dpdk/examples/ip_reassembly/ |
| H A D | main.c | 137 uint16_t portid; member 432 uint16_t portid; in main_loop() local 450 portid = qconf->rx_queue_list[i].portid; in main_loop() 452 portid); in main_loop() 469 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main_loop() 482 portid = qconf->rx_queue_list[i].portid; in main_loop() 709 uint16_t portid; in check_all_ports_link_status() local 1007 uint16_t portid; in main() local 1076 rxq->portid = portid; in main() 1108 portid, in main() [all …]
|
| /dpdk/examples/qos_sched/ |
| H A D | init.c | 106 portid, strerror(-ret)); in app_init_port() 115 ret, portid); in app_init_port() 123 ret, portid); in app_init_port() 135 ret, portid); in app_init_port() 145 ret, portid, 0); in app_init_port() 148 ret = rte_eth_dev_start(portid); in app_init_port() 152 ret, portid); in app_init_port() 161 ret, portid, rte_strerror(-ret)); in app_init_port() 170 rte_strerror(-ret), portid); in app_init_port() 173 app_inited_port_mask |= 1u << portid; in app_init_port() [all …]
|
| /dpdk/app/test-pmd/ |
| H A D | util.c | 337 add_tx_md_callback(portid_t portid) in add_tx_md_callback() argument 351 if (!ports[portid].tx_set_md_cb[queue]) in add_tx_md_callback() 352 ports[portid].tx_set_md_cb[queue] = in add_tx_md_callback() 353 rte_eth_add_tx_callback(portid, queue, in add_tx_md_callback() 358 remove_tx_md_callback(portid_t portid) in remove_tx_md_callback() argument 372 if (ports[portid].tx_set_md_cb[queue]) { in remove_tx_md_callback() 374 ports[portid].tx_set_md_cb[queue]); in remove_tx_md_callback() 393 add_tx_dynf_callback(portid_t portid) in add_tx_dynf_callback() argument 408 ports[portid].tx_set_dynf_cb[queue] = in add_tx_dynf_callback() 414 remove_tx_dynf_callback(portid_t portid) in remove_tx_dynf_callback() argument [all …]
|
| /dpdk/examples/dma/ |
| H A D | dmafwd.c | 746 uint16_t portid; in check_link_status() local 760 portid, ret); in check_link_status() 910 ret, portid); in port_init() 912 rte_eth_macaddr_get(portid, &dma_ports_eth_addr[portid]); in port_init() 924 ret, portid, i); in port_init() 936 ret, portid); in port_init() 945 portid); in port_init() 955 portid); in port_init() 962 ret, portid); in port_init() 970 portid, in port_init() [all …]
|
| /dpdk/examples/vm_power_manager/ |
| H A D | main.c | 250 RTE_ETH_FOREACH_DEV(portid) { in check_all_ports_link_status() 253 if ((port_mask & (1 << portid)) == 0) in check_all_ports_link_status() 261 portid, rte_strerror(-ret)); in check_all_ports_link_status() 268 printf("Port %d %s\n", portid, in check_all_ports_link_status() 334 uint16_t portid; in main() local 370 RTE_ETH_FOREACH_DEV(portid) { in main() 382 eth.addr_bytes[4] = portid + 0xf0; in main() 387 portid); in main() 400 portid, w, ð); in main() 405 portid, w, ð); in main() [all …]
|
| /dpdk/examples/ptpclient/ |
| H A D | ptpclient.c | 128 uint16_t portid; member 420 rte_lcore_id(), ptp_data->portid, in parse_fup() 586 ptp_data.portid = portid; in parse_ptp_frames() 615 uint16_t portid; in lcore_main() local 626 for (portid = 0; portid < ptp_enabled_port_nb; portid++) { in lcore_main() 628 portid = ptp_enabled_ports[portid]; in lcore_main() 636 parse_ptp_frames(portid, m); in lcore_main() 746 uint16_t portid; in main() local 778 RTE_ETH_FOREACH_DEV(portid) { in main() 780 if (port_init(portid, mbuf_pool) == 0) { in main() [all …]
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | ipsec-secgw.c | 1127 uint32_t portid; in drain_tx_buffers() local 1129 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in drain_tx_buffers() 1234 uint16_t portid; in ipsec_poll_mode_worker() local 1330 uint16_t portid; in check_flow_params() local 1352 uint16_t portid; in check_poll_mode_params() local 1971 uint16_t portid; in check_all_ports_link_status() local 2347 portid, in port_init() 2844 uint16_t portid; in check_event_mode_params() local 3404 sa_check_offloads(portid, &req_rx_offloads[portid], in main() 3406 port_init(portid, req_rx_offloads[portid], in main() [all …]
|
| /dpdk/examples/l3fwd-acl/ |
| H A D | main.c | 1435 uint16_t portid; in main_loop() local 1559 unsigned portid; in check_port_config() local 1731 unsigned long portid; in parse_eth_dest() local 1907 uint16_t portid; in check_all_ports_link_status() local 2022 uint16_t portid; in main() local 2100 portid, in main() 2110 ret, portid); in main() 2117 ret, portid); in main() 2119 ret = rte_eth_macaddr_get(portid, &port_l2hdr[portid].src_addr); in main() 2123 ret, portid); in main() [all …]
|