Home
last modified time | relevance | path

Searched refs:portid (Results 1 – 25 of 112) sorted by relevance

12345

/f-stack/dpdk/examples/link_status_interrupt/
H A Dmain.c112 uint16_t portid; in print_stats() local
127 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in print_stats()
141 portid, in print_stats()
225 portid); in lsi_main_loop()
471 uint16_t portid; in check_all_ports_link_status() local
480 for (portid = 0; portid < port_num; portid++) { in check_all_ports_link_status()
560 for (portid = 0; portid < nb_ports; portid++) { in main()
571 portid_last = portid; in main()
584 for (portid = 0; portid < nb_ports; portid++) { in main()
608 for (portid = 0; portid < nb_ports; portid++) { in main()
[all …]
/f-stack/dpdk/examples/l2fwd/
H A Dmain.c120 unsigned portid; in print_stats() local
134 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in print_stats()
142 portid, in print_stats()
229 portid); in l2fwd_main_loop()
567 uint16_t portid; in check_all_ports_link_status() local
684 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) in main()
746 portid, l2fwd_dst_ports[portid]); in main()
834 portid); in main()
844 portid); in main()
850 portid); in main()
[all …]
/f-stack/dpdk/examples/l2fwd-keepalive/
H A Dmain.c124 uint16_t portid; in print_stats() local
138 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in print_stats()
146 portid, in print_stats()
223 portid); in l2fwd_main_loop()
449 uint16_t portid; in check_all_ports_link_status() local
575 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) in main()
659 ret, portid); in main()
666 ret, portid); in main()
706 portid); in main()
716 portid); in main()
[all …]
/f-stack/dpdk/examples/l2fwd-jobstats/
H A Dmain.c299 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in show_stats_cb()
307 portid, in show_stats_cb()
434 uint16_t portid; in l2fwd_flush_job() local
491 portid); in l2fwd_main_loop()
685 uint16_t portid; in check_all_ports_link_status() local
781 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) in main()
870 ret, portid); in main()
901 ret, portid); in main()
909 portid); in main()
919 portid); in main()
[all …]
/f-stack/dpdk/examples/l3fwd/
H A Dmain.c211 uint16_t portid; in check_port_config() local
421 uint16_t portid; in parse_eth_dest() local
443 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in parse_eth_dest()
806 uint16_t portid; in check_all_ports_link_status() local
960 portid, in l3fwd_poll_resource_setup()
970 ret, portid); in l3fwd_poll_resource_setup()
979 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in l3fwd_poll_resource_setup()
1086 ret, portid); in l3fwd_poll_resource_setup()
1201 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main()
1204 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in main()
[all …]
H A Dl3fwd_lpm.c79 uint16_t portid, in lpm_get_ipv4_dst_port() argument
88 return portid; in lpm_get_ipv4_dst_port()
93 uint16_t portid, in lpm_get_ipv6_dst_port() argument
102 return portid; in lpm_get_ipv6_dst_port()
107 uint16_t portid) in lpm_get_dst_port() argument
129 return portid; in lpm_get_dst_port()
161 return portid; in lpm_get_dst_port_with_ipv4()
182 uint16_t portid; in lpm_main_loop() local
225 portid); in lpm_main_loop()
246 portid, qconf); in lpm_main_loop()
[all …]
H A Dl3fwd_lpm_neon.h56 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 Dl3fwd_lpm_sse.h53 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 Dl3fwd_em.h9 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 …]
H A Dl3fwd_lpm_altivec.h59 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 Dl3fwd_lpm.h9 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 Dl3fwd_em_sequential.h25 uint16_t portid) in em_get_dst_port() argument
42 next_hop = em_get_ipv4_dst_port(ipv4_hdr, portid, in em_get_dst_port()
47 next_hop = portid; in em_get_dst_port()
57 next_hop = em_get_ipv6_dst_port(ipv6_hdr, portid, in em_get_dst_port()
62 next_hop = portid; in em_get_dst_port()
68 return portid; in em_get_dst_port()
77 uint16_t portid, struct lcore_conf *qconf) in l3fwd_em_send_packets() argument
93 dst_port[j] = em_get_dst_port(qconf, pkts_burst[j], portid); in l3fwd_em_send_packets()
/f-stack/dpdk/examples/l3fwd-graph/
H A Dmain.c187 uint16_t portid; in check_port_config() local
375 uint16_t portid; in parse_eth_dest() local
394 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in parse_eth_dest()
597 uint16_t portid; in check_all_ports_link_status() local
761 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main()
764 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in main()
829 ret, portid); in main()
837 ret, portid); in main()
839 rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main()
891 ret, portid); in main()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_pmd_perf.c125 uint16_t portid; in check_all_ports_link_status() local
135 for (portid = 0; portid < port_num; portid++) { in check_all_ports_link_status()
477 portid = conf->portlist[i]; in main_loop()
501 portid = conf->portlist[i]; in main_loop()
583 next[portid] += nb_rx; in poll_burst()
584 num[portid] -= nb_rx; in poll_burst()
667 uint16_t portid; in test_pmd_perf() local
722 ret, portid); in test_pmd_perf()
724 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in test_pmd_perf()
728 ret, portid); in test_pmd_perf()
[all …]
H A Dsample_packet_forward.c20 test_ring_setup(struct rte_ring **ring, uint16_t *portid) in test_ring_setup() argument
29 *portid = rte_eth_from_rings("net_ringa", ring, NUM_QUEUES, in test_ring_setup()
98 test_packet_forward(struct rte_mbuf **pbuf, uint16_t portid, uint16_t queue_id) in test_packet_forward() argument
101 if (rte_eth_tx_burst(portid, queue_id, pbuf, NUM_PACKETS) in test_packet_forward()
104 " port %d\n", __func__, __LINE__, portid); in test_packet_forward()
107 if (rte_eth_rx_burst(portid, queue_id, pbuf, NUM_PACKETS) in test_packet_forward()
110 " port %d\n", __func__, __LINE__, portid); in test_packet_forward()
/f-stack/dpdk/examples/ip_fragmentation/
H A Dmain.c134 uint16_t portid; member
391 uint16_t portid; in main_loop() local
409 portid = qconf->rx_queue_list[i].portid; in main_loop()
411 portid); in main_loop()
428 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main_loop()
433 portid); in main_loop()
445 portid = qconf->rx_queue_list[i].portid; in main_loop()
592 uint16_t portid; in check_all_ports_link_status() local
937 rxq->portid = portid; in main()
968 ret, portid); in main()
[all …]
/f-stack/dpdk/examples/ipv4_multicast/
H A Dmain.c364 uint16_t portid; in send_timeout_burst() local
371 for (portid = 0; portid < MAX_PORTS; portid++) { in send_timeout_burst()
385 uint16_t portid; in main_loop() local
571 uint16_t portid; in check_all_ports_link_status() local
636 uint16_t portid; in main() local
727 ret, portid); in main()
734 ret, portid); in main()
736 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main()
740 ret, portid); in main()
757 ret, portid); in main()
[all …]
/f-stack/dpdk/examples/l3fwd-power/
H A Dmain.c887 uint16_t portid; in event_register() local
917 uint16_t portid; in main_intr_loop() local
1082 uint16_t portid; in main_telemetry_loop() local
1202 uint16_t portid; in main_empty_poll_loop() local
1307 uint16_t portid; in main_legacy_loop() local
1533 unsigned portid; in check_port_config() local
1540 portid); in check_port_config()
1545 portid); in check_port_config()
2573 portid, in main()
2591 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main()
[all …]
/f-stack/dpdk/examples/ip_reassembly/
H A Dmain.c138 uint16_t portid; member
429 uint16_t portid; in main_loop() local
447 portid = qconf->rx_queue_list[i].portid; in main_loop()
449 portid); in main_loop()
466 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main_loop()
479 portid = qconf->rx_queue_list[i].portid; in main_loop()
708 uint16_t portid; in check_all_ports_link_status() local
1001 uint16_t portid; in main() local
1070 rxq->portid = portid; in main()
1102 portid, in main()
[all …]
/f-stack/dpdk/examples/performance-thread/l3fwd-thread/
H A Dmain.c1379 return portid; in get_dst_port()
2104 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in lthread_tx()
2108 send_burst(tx_conf, tx_conf->tx_mbufs[portid].len, portid); in lthread_tx()
2342 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in pthread_tx()
2345 send_burst(tx_conf, tx_conf->tx_mbufs[portid].len, portid); in pthread_tx()
2864 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in parse_eth_dest()
3513 for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) { in main()
3516 *(uint64_t *)(val_eth + portid) = dest_eth_addr[portid]; in main()
3586 portid, in main()
3604 ret = rte_eth_macaddr_get(portid, &ports_eth_addr[portid]); in main()
[all …]
/f-stack/dpdk/app/test-pmd/
H A Dutil.c274 add_tx_md_callback(portid_t portid) in add_tx_md_callback() argument
288 if (!ports[portid].tx_set_md_cb[queue]) in add_tx_md_callback()
289 ports[portid].tx_set_md_cb[queue] = in add_tx_md_callback()
290 rte_eth_add_tx_callback(portid, queue, in add_tx_md_callback()
295 remove_tx_md_callback(portid_t portid) in remove_tx_md_callback() argument
309 if (ports[portid].tx_set_md_cb[queue]) { in remove_tx_md_callback()
311 ports[portid].tx_set_md_cb[queue]); in remove_tx_md_callback()
330 add_tx_dynf_callback(portid_t portid) in add_tx_dynf_callback() argument
345 ports[portid].tx_set_dynf_cb[queue] = in add_tx_dynf_callback()
351 remove_tx_dynf_callback(portid_t portid) in remove_tx_dynf_callback() argument
[all …]
/f-stack/dpdk/examples/ioat/
H A Dioatfwd.c696 uint16_t portid; in check_link_status() local
710 portid, ret); in check_link_status()
848 ret, portid); in port_init()
850 rte_eth_macaddr_get(portid, &ioat_ports_eth_addr[portid]); in port_init()
862 ret, portid, i); in port_init()
874 ret, portid); in port_init()
883 portid); in port_init()
893 portid); in port_init()
900 ret, portid); in port_init()
905 portid, in port_init()
[all …]
/f-stack/dpdk/examples/qos_sched/
H A Dinit.c107 portid, strerror(-ret)); in app_init_port()
116 ret, portid); in app_init_port()
124 ret, portid); in app_init_port()
136 ret, portid); in app_init_port()
146 ret, portid, 0); in app_init_port()
149 ret = rte_eth_dev_start(portid); in app_init_port()
153 ret, portid); in app_init_port()
162 ret, portid, rte_strerror(-ret)); in app_init_port()
171 rte_strerror(-ret), portid); in app_init_port()
174 app_inited_port_mask |= 1u << portid; in app_init_port()
[all …]
/f-stack/dpdk/examples/vm_power_manager/
H A Dmain.c258 RTE_ETH_FOREACH_DEV(portid) { in check_all_ports_link_status()
261 if ((port_mask & (1 << portid)) == 0) in check_all_ports_link_status()
269 portid, rte_strerror(-ret)); in check_all_ports_link_status()
276 printf("Port %d %s\n", portid, in check_all_ports_link_status()
342 uint16_t portid; in main() local
378 RTE_ETH_FOREACH_DEV(portid) { in main()
390 eth.addr_bytes[4] = portid + 0xf0; in main()
395 portid); in main()
408 portid, w, &eth); in main()
413 portid, w, &eth); in main()
[all …]
/f-stack/dpdk/examples/ptpclient/
H A Dptpclient.c134 uint16_t portid; member
415 rte_lcore_id(), ptp_data->portid, in parse_fup()
574 ptp_data.portid = portid; in parse_ptp_frames()
602 uint16_t portid; in lcore_main() local
617 for (portid = 0; portid < ptp_enabled_port_nb; portid++) { in lcore_main()
619 portid = ptp_enabled_ports[portid]; in lcore_main()
626 parse_ptp_frames(portid, m); in lcore_main()
734 uint16_t portid; in main() local
762 RTE_ETH_FOREACH_DEV(portid) { in main()
764 if (port_init(portid, mbuf_pool) == 0) { in main()
[all …]

12345