Home
last modified time | relevance | path

Searched refs:port_id (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/f-stack/dpdk/lib/librte_ethdev/
H A Drte_tm.c19 if (!rte_eth_dev_is_valid_port(port_id)) { in rte_tm_ops_get()
42 #define RTE_TM_FUNC(port_id, func) \ argument
45 rte_tm_ops_get(port_id, error); \
67 rte_tm_ops_get(port_id, error); in rte_tm_get_number_of_leaf_nodes()
87 rte_tm_node_type_get(uint16_t port_id, in rte_tm_node_type_get() argument
214 int rte_tm_node_add(uint16_t port_id, in rte_tm_node_add() argument
230 int rte_tm_node_delete(uint16_t port_id, in rte_tm_node_delete() argument
240 int rte_tm_node_suspend(uint16_t port_id, in rte_tm_node_suspend() argument
250 int rte_tm_node_resume(uint16_t port_id, in rte_tm_node_resume() argument
388 int rte_tm_mark_ip_ecn(uint16_t port_id, in rte_tm_mark_ip_ecn() argument
[all …]
H A Drte_mtr.c20 if (!rte_eth_dev_is_valid_port(port_id)) { in rte_mtr_ops_get()
43 #define RTE_MTR_FUNC(port_id, func) \ argument
46 rte_mtr_ops_get(port_id, error); \
62 rte_mtr_capabilities_get(uint16_t port_id, in rte_mtr_capabilities_get() argument
96 rte_mtr_create(uint16_t port_id, in rte_mtr_create() argument
103 return RTE_MTR_FUNC(port_id, create)(dev, in rte_mtr_create()
109 rte_mtr_destroy(uint16_t port_id, in rte_mtr_destroy() argument
120 rte_mtr_meter_enable(uint16_t port_id, in rte_mtr_meter_enable() argument
131 rte_mtr_meter_disable(uint16_t port_id, in rte_mtr_meter_disable() argument
179 rte_mtr_stats_update(uint16_t port_id, in rte_mtr_stats_update() argument
[all …]
H A Drte_ethdev.c352 port_id = rte_eth_find_next(port_id + 1))
357 port_id = rte_eth_find_next(port_id); in rte_eth_find_next_of()
360 port_id = rte_eth_find_next(port_id + 1); in rte_eth_find_next_of()
507 eth_dev->data->port_id = port_id; in rte_eth_dev_allocate()
614 port_id = rte_eth_find_next(port_id); in rte_eth_find_next_owned_by()
617 port_id = rte_eth_find_next(port_id + 1); in rte_eth_find_next_owned_by()
719 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) in rte_eth_dev_owner_delete()
903 port_id = dev->data->port_id; in eth_dev_validate_rx_queue()
911 port_id = dev->data->port_id; in eth_dev_validate_rx_queue()
927 port_id = dev->data->port_id; in eth_dev_validate_tx_queue()
[all …]
H A Drte_ethdev.h1470 uint16_t port_id; member
1890 port_id < RTE_MAX_ETHPORTS; \
1891 port_id = rte_eth_find_next_of(port_id + 1, parent))
1923 port_id < RTE_MAX_ETHPORTS; \
1924 port_id = rte_eth_find_next_sibling(port_id + 1, ref_port_id))
2510 int rte_eth_dev_stop(uint16_t port_id);
3640 int rte_eth_led_on(uint16_t port_id);
4896 dev = &rte_eth_devices[port_id]; in rte_eth_rx_queue_count()
4977 dev = &rte_eth_devices[port_id]; in rte_eth_rx_descriptor_status()
5034 dev = &rte_eth_devices[port_id]; in rte_eth_tx_descriptor_status()
[all …]
H A Drte_tm.h1274 rte_tm_node_type_get(uint16_t port_id,
1293 rte_tm_capabilities_get(uint16_t port_id,
1361 rte_tm_wred_profile_add(uint16_t port_id,
1614 rte_tm_node_add(uint16_t port_id,
1648 rte_tm_node_delete(uint16_t port_id,
1673 rte_tm_node_suspend(uint16_t port_id,
1697 rte_tm_node_resume(uint16_t port_id,
2003 rte_tm_node_stats_read(uint16_t port_id,
2041 rte_tm_mark_vlan_dei(uint16_t port_id,
2092 rte_tm_mark_ip_ecn(uint16_t port_id,
[all …]
H A Drte_ethdev_trace.h24 RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t nb_rx_q,
26 rte_trace_point_emit_u16(port_id);
41 RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t rx_queue_id,
44 rte_trace_point_emit_u16(port_id);
61 rte_trace_point_emit_u16(port_id);
74 RTE_TRACE_POINT_ARGS(uint16_t port_id),
75 rte_trace_point_emit_u16(port_id);
80 RTE_TRACE_POINT_ARGS(uint16_t port_id, int ret),
81 rte_trace_point_emit_u16(port_id);
87 RTE_TRACE_POINT_ARGS(uint16_t port_id),
[all …]
/f-stack/dpdk/examples/ethtool/lib/
H A Drte_ethtool.h67 int rte_ethtool_get_regs_len(uint16_t port_id);
101 int rte_ethtool_get_link(uint16_t port_id);
115 int rte_ethtool_get_eeprom_len(uint16_t port_id);
187 int rte_ethtool_get_module_eeprom(uint16_t port_id,
207 int rte_ethtool_get_pauseparam(uint16_t port_id,
225 int rte_ethtool_set_pauseparam(uint16_t port_id,
239 int rte_ethtool_net_open(uint16_t port_id);
250 int rte_ethtool_net_stop(uint16_t port_id);
371 int rte_ethtool_net_set_rx_mode(uint16_t port_id);
389 int rte_ethtool_get_ringparam(uint16_t port_id,
[all …]
H A Drte_ethtool.c47 port_id, strerror(-ret)); in rte_ethtool_get_drvinfo()
89 rte_ethtool_get_regs_len(uint16_t port_id) in rte_ethtool_get_regs_len() argument
124 rte_ethtool_get_link(uint16_t port_id) in rte_ethtool_get_link() argument
130 ret = rte_eth_link_get(port_id, &link); in rte_ethtool_get_link()
298 rte_ethtool_net_open(uint16_t port_id) in rte_ethtool_net_open() argument
302 ret = rte_eth_dev_stop(port_id); in rte_ethtool_net_open()
306 return rte_eth_dev_start(port_id); in rte_ethtool_net_open()
310 rte_ethtool_net_stop(uint16_t port_id) in rte_ethtool_net_stop() argument
312 return rte_eth_dev_stop(port_id); in rte_ethtool_net_stop()
463 stat = rte_eth_dev_stop(port_id); in rte_ethtool_set_ringparam()
[all …]
/f-stack/dpdk/examples/l2fwd-event/
H A Dl2fwd_common.c22 uint16_t port_id; in l2fwd_event_init_ports() local
32 RTE_ETH_FOREACH_DEV(port_id) { in l2fwd_event_init_ports()
52 port_id, strerror(-ret)); in l2fwd_event_init_ports()
59 port_id, in l2fwd_event_init_ports()
70 ret, port_id); in l2fwd_event_init_ports()
76 ret, port_id); in l2fwd_event_init_ports()
78 rte_eth_macaddr_get(port_id, &rsrc->eth_addr[port_id]); in l2fwd_event_init_ports()
90 ret, port_id); in l2fwd_event_init_ports()
97 rte_eth_dev_socket_id(port_id), in l2fwd_event_init_ports()
101 ret, port_id); in l2fwd_event_init_ports()
[all …]
H A Dl2fwd_poll.c36 uint32_t i, j, port_id, nb_rx; in l2fwd_poll_main_loop() local
57 port_id = qconf->rx_port_list[i]; in l2fwd_poll_main_loop()
72 port_id = in l2fwd_poll_main_loop()
88 port_id = qconf->rx_port_list[i]; in l2fwd_poll_main_loop()
109 uint16_t port_id; in l2fwd_poll_lcore_config() local
112 RTE_ETH_FOREACH_DEV(port_id) { in l2fwd_poll_lcore_config()
142 uint16_t port_id; in l2fwd_poll_init_tx_buffers() local
145 RTE_ETH_FOREACH_DEV(port_id) { in l2fwd_poll_init_tx_buffers()
152 port_id); in l2fwd_poll_init_tx_buffers()
158 poll_rsrc->tx_buffer[port_id], in l2fwd_poll_init_tx_buffers()
[all …]
H A Dmain.c209 uint16_t port_id; in l2fwd_event_parse_args() local
214 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) in l2fwd_event_parse_args()
362 uint16_t port_id; in check_all_ports_link_status() local
425 uint32_t port_id; in print_stats() local
439 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) { in print_stats()
447 port_id, in print_stats()
610 last_port = port_id; in main()
654 (1 << port_id)) == 0) in main()
660 port_id); in main()
689 ret, port_id); in main()
[all …]
/f-stack/dpdk/drivers/net/ipn3ke/
H A Dipn3ke_representor.c103 dev_info->switch_info.port_id = rpst->port_id; in ipn3ke_rpst_dev_infos_get()
614 port_id, in ipn3ke_rpst_10g_nic_side_tx_stats_reset()
620 port_id, in ipn3ke_rpst_10g_nic_side_tx_stats_reset()
639 port_id, in ipn3ke_rpst_10g_nic_side_rx_stats_reset()
645 port_id, in ipn3ke_rpst_10g_nic_side_rx_stats_reset()
710 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers()
749 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers()
772 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers()
778 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers()
786 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers()
[all …]
/f-stack/lib/
H A Dff_dpdk_kni.c144 port_id, if_up ? "up" : "down"); in kni_config_network_interface()
147 rte_eth_dev_set_link_up(port_id) : in kni_config_network_interface()
148 rte_eth_dev_set_link_down(port_id); in kni_config_network_interface()
153 rte_eth_dev_stop(port_id); in kni_config_network_interface()
157 rte_eth_dev_stop(port_id); in kni_config_network_interface()
164 port_id, if_up ? "up" : "down"); in kni_config_network_interface()
487 if (kni_stat[port_id] == NULL) in ff_kni_alloc()
495 conf.group_id = port_id; in ff_kni_alloc()
512 rte_eth_macaddr_get(port_id, in ff_kni_alloc()
516 ops.port_id = port_id; in ff_kni_alloc()
[all …]
/f-stack/dpdk/app/test-pmd/
H A Dconfig.c300 ret = rte_eth_stats_get(port_id, &ports[port_id].stats); in nic_stats_clear()
391 ret = rte_eth_stats_get(port_id, &ports[port_id].stats); in nic_xstats_clear()
425 if (rx_queue_stats_mappings[i].port_id == port_id) { in nic_stats_mapping_display()
437 if (tx_queue_stats_mappings[i].port_id == port_id) { in nic_stats_mapping_display()
2554 port_id, in port_flow_isolate()
4472 port_id); in tx_vlan_set()
4498 port_id); in tx_qinq_set()
4548 if ((tx_queue_stats_mappings[i].port_id == port_id) && in set_qmap()
4564 if ((rx_queue_stats_mappings[i].port_id == port_id) && in set_qmap()
4758 port_id); in get_fdir_info()
[all …]
H A Dtestpmd.h333 portid_t port_id; member
790 void nic_stats_clear(portid_t port_id);
838 int port_flow_create(portid_t port_id,
847 int port_flow_flush(portid_t port_id);
885 void tx_vlan_reset(portid_t port_id);
932 int port_is_stopped(portid_t port_id);
933 int port_is_started(portid_t port_id);
936 void fdir_get_infos(portid_t port_id);
964 void show_gro(portid_t port_id);
975 void show_macs(portid_t port_id);
[all …]
H A Dcmdline_tm.c231 portid_t port_id = res->port_id; in cmd_show_port_tm_cap_parsed() local
384 portid_t port_id = res->port_id; in cmd_show_port_tm_level_cap_parsed() local
534 portid_t port_id = res->port_id; in cmd_show_port_tm_node_cap_parsed() local
664 portid_t port_id = res->port_id; in cmd_show_port_tm_node_stats_parsed() local
777 portid_t port_id = res->port_id; in cmd_show_port_tm_node_type_parsed() local
896 portid_t port_id = res->port_id; in cmd_add_port_tm_node_shaper_profile_parsed() local
992 portid_t port_id = res->port_id; in cmd_del_port_tm_node_shaper_profile_parsed() local
1078 portid_t port_id = res->port_id; in cmd_add_port_tm_node_shared_shaper_parsed() local
1173 portid_t port_id = res->port_id; in cmd_del_port_tm_node_shared_shaper_parsed() local
1329 portid_t port_id = res->port_id; in cmd_add_port_tm_node_wred_profile_parsed() local
[all …]
H A Dcmdline_mtr.c265 uint16_t port_id = res->port_id; in cmd_show_port_meter_cap_parsed() local
388 uint16_t port_id = res->port_id; in cmd_add_port_meter_profile_srtcm_parsed() local
494 uint16_t port_id = res->port_id; in cmd_add_port_meter_profile_trtcm_parsed() local
606 uint16_t port_id = res->port_id; in cmd_add_port_meter_profile_trtcm_rfc4115_parsed() local
688 uint16_t port_id = res->port_id; in cmd_del_port_meter_profile_parsed() local
784 uint16_t port_id = res->port_id; in cmd_create_port_meter_parsed() local
881 uint16_t port_id = res->port_id; in cmd_enable_port_meter_parsed() local
942 uint16_t port_id = res->port_id; in cmd_disable_port_meter_parsed() local
1003 uint16_t port_id = res->port_id; in cmd_del_port_meter_parsed() local
1076 uint16_t port_id = res->port_id; in cmd_set_port_meter_profile_parsed() local
[all …]
/f-stack/dpdk/examples/kni/
H A Dmain.c214 uint16_t port_id; in kni_ingress() local
223 port_id = p->port_id; in kni_ingress()
261 port_id = p->port_id; in kni_egress()
445 kni_port_params_array[port_id]->port_id = port_id; in parse_config()
829 port_id); in kni_change_mtu_()
839 port_id); in kni_change_mtu_()
935 port_id); in kni_config_mac_address()
949 if (port_id >= RTE_MAX_ETHPORTS || !params[port_id]) in kni_alloc()
952 params[port_id]->nb_kni = params[port_id]->nb_lcore_k ? in kni_alloc()
997 ops.port_id = port_id; in kni_alloc()
[all …]
/f-stack/dpdk/examples/l3fwd/
H A Dl3fwd_event.c54 uint16_t port_id; in l3fwd_eth_dev_port_setup() local
59 RTE_ETH_FOREACH_DEV(port_id) { in l3fwd_eth_dev_port_setup()
89 port_id, in l3fwd_eth_dev_port_setup()
99 ret, port_id); in l3fwd_eth_dev_port_setup()
106 "port=%d\n", ret, port_id); in l3fwd_eth_dev_port_setup()
108 rte_eth_macaddr_get(port_id, &ports_eth_addr[port_id]); in l3fwd_eth_dev_port_setup()
136 ret = init_mem(port_id, nb_mbuf); in l3fwd_eth_dev_port_setup()
156 ret, port_id, eth_qid); in l3fwd_eth_dev_port_setup()
166 "port=%d\n", ret, port_id); in l3fwd_eth_dev_port_setup()
199 int port_id; in l3fwd_get_free_event_port() local
[all …]
/f-stack/dpdk/examples/flow_filtering/
H A Dmain.c34 static uint16_t port_id; variable
91 rte_flow_flush(port_id, &error); in main_loop()
92 ret = rte_eth_dev_stop(port_id); in main_loop()
96 rte_eth_dev_close(port_id); in main_loop()
152 port_id, strerror(-ret)); in init_port()
161 ret, port_id); in init_port()
174 ret, port_id); in init_port()
188 ret, port_id); in init_port()
202 ret, port_id); in init_port()
238 port_id = 0; in main()
[all …]
/f-stack/dpdk/app/test/
H A Dvirtual_pmd.h22 virtual_ethdev_set_link_status(uint16_t port_id, uint8_t link_status);
25 virtual_ethdev_simulate_link_status_interrupt(uint16_t port_id,
29 virtual_ethdev_add_mbufs_to_rx_queue(uint16_t port_id,
33 virtual_ethdev_get_mbufs_from_tx_queue(uint16_t port_id,
40 virtual_ethdev_start_fn_set_success(uint16_t port_id, uint8_t success);
43 virtual_ethdev_stop_fn_set_success(uint16_t port_id, uint8_t success);
46 virtual_ethdev_configure_fn_set_success(uint16_t port_id, uint8_t success);
49 virtual_ethdev_rx_queue_setup_fn_set_success(uint16_t port_id,
53 virtual_ethdev_tx_queue_setup_fn_set_success(uint16_t port_id,
60 virtual_ethdev_rx_burst_fn_set_success(uint16_t port_id, uint8_t success);
[all …]
H A Dtest_link_bonding_rssconf.c50 uint16_t port_id; member
131 port_id); in configure_ethdev()
135 rte_eth_dev_socket_id(port_id), NULL, in configure_ethdev()
198 port->port_id); in bond_slaves()
309 port->port_id), "Cannot add slave"); in slave_remove_and_add()
364 port->port_id); in test_propagate()
408 port->port_id); in test_propagate()
512 int port_id; in test_setup() local
531 port_id = rte_eth_dev_count_avail(); in test_setup()
538 port->port_id = port_id; in test_setup()
[all …]
/f-stack/dpdk/drivers/common/octeontx2/
H A Dotx2_sec_idev.c35 otx2_sec_idev_cfg_init(int port_id) in otx2_sec_idev_cfg_init() argument
40 cfg = &sec_cfg[port_id]; in otx2_sec_idev_cfg_init()
58 if (qp == NULL || port_id >= OTX2_MAX_INLINE_PORTS) in otx2_sec_idev_tx_cpt_qp_add()
61 cfg = &sec_cfg[port_id]; in otx2_sec_idev_tx_cpt_qp_add()
86 uint16_t port_id; in otx2_sec_idev_tx_cpt_qp_remove() local
92 for (port_id = 0; port_id < OTX2_MAX_INLINE_PORTS; port_id++) { in otx2_sec_idev_tx_cpt_qp_remove()
93 cfg = &sec_cfg[port_id]; in otx2_sec_idev_tx_cpt_qp_remove()
132 cfg = &sec_cfg[port_id]; in otx2_sec_idev_tx_cpt_qp_get()
166 uint16_t port_id; in otx2_sec_idev_tx_cpt_qp_put() local
172 for (port_id = 0; port_id < OTX2_MAX_INLINE_PORTS; port_id++) { in otx2_sec_idev_tx_cpt_qp_put()
[all …]
/f-stack/dpdk/examples/ip_pipeline/
H A Dlink.c68 rss_setup(uint16_t port_id, in rss_setup() argument
109 uint16_t port_id; in link_create() local
121 port_id = params->port_id; in link_create()
124 &port_id); in link_create()
171 port_id, in link_create()
188 port_id, in link_create()
202 port_id, in link_create()
221 rte_eth_dev_stop(port_id); in link_create()
229 rte_eth_dev_stop(port_id); in link_create()
236 rte_eth_dev_stop(port_id); in link_create()
[all …]
/f-stack/dpdk/drivers/event/dsw/
H A Ddsw_xstats.c40 uint8_t port_id, uint8_t queue_id);
61 uint8_t port_id, \
64 return dsw->ports[port_id]._variable; \
75 return dsw->ports[port_id].queue_enqueued[queue_id]; in DSW_GEN_PORT_ACCESS_FN()
105 dsw->ports[port_id].total_busy_cycles; in dsw_xstats_port_get_event_proc_latency()
107 dsw->ports[port_id].dequeued; in dsw_xstats_port_get_event_proc_latency()
116 return dsw->ports[port_id].total_busy_cycles; in dsw_xstats_port_get_busy_cycles()
201 dsw_port_xstats[stat_idx].name_fmt, port_id, in dsw_xstats_port_foreach()
207 dsw_port_xstats[stat_idx].name_fmt, port_id); in dsw_xstats_port_foreach()
360 uint16_t port_id; in dsw_xstats_get_by_name() local
[all …]

12345678910>>...22