| /dpdk/lib/ethdev/ |
| H A D | rte_tm.c | 19 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 D | rte_ethdev.c | 336 port_id++; in rte_eth_find_next() 351 port_id = rte_eth_find_next(port_id + 1)) 356 port_id = rte_eth_find_next(port_id); in rte_eth_find_next_of() 359 port_id = rte_eth_find_next(port_id + 1); in rte_eth_find_next_of() 400 port_id = rte_eth_find_next(port_id); in rte_eth_find_next_owned_by() 403 port_id = rte_eth_find_next(port_id + 1); in rte_eth_find_next_owned_by() 517 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) { in rte_eth_dev_owner_delete() 668 port_id = dev->data->port_id; in eth_dev_validate_rx_queue() 676 port_id = dev->data->port_id; in eth_dev_validate_rx_queue() 692 port_id = dev->data->port_id; in eth_dev_validate_tx_queue() [all …]
|
| H A D | rte_mtr.c | 20 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 73 rte_mtr_meter_profile_add(uint16_t port_id, in rte_mtr_meter_profile_add() argument 130 rte_mtr_create(uint16_t port_id, in rte_mtr_create() argument 143 rte_mtr_destroy(uint16_t port_id, in rte_mtr_destroy() argument 154 rte_mtr_meter_enable(uint16_t port_id, in rte_mtr_meter_enable() argument 165 rte_mtr_meter_disable(uint16_t port_id, in rte_mtr_meter_disable() argument 212 rte_mtr_stats_update(uint16_t port_id, in rte_mtr_stats_update() argument [all …]
|
| H A D | rte_ethdev.h | 1814 uint16_t port_id; member 2243 port_id = rte_eth_find_next_of(port_id + 1, parent)) 2272 port_id = rte_eth_find_next_sibling(port_id + 1, ref_port_id)) 5584 port_id, queue_id); in rte_eth_rx_burst() 5598 queue_id, port_id); in rte_eth_rx_burst() 5650 port_id, queue_id); in rte_eth_rx_queue_count() 5719 port_id, queue_id); in rte_eth_rx_descriptor_status() 5789 port_id, queue_id); in rte_eth_tx_descriptor_status() 5907 port_id, queue_id); in rte_eth_tx_burst() 5921 queue_id, port_id); in rte_eth_tx_burst() [all …]
|
| H A D | rte_flow.c | 1410 port_id); in rte_flow_info_get() 1443 port_id); in rte_flow_configure() 1449 port_id); in rte_flow_configure() 1486 port_id); in rte_flow_pattern_template_create() 1495 port_id); in rte_flow_pattern_template_create() 1504 port_id); in rte_flow_pattern_template_create() 1563 port_id); in rte_flow_actions_template_create() 1572 port_id); in rte_flow_actions_template_create() 1581 port_id); in rte_flow_actions_template_create() 1590 port_id); in rte_flow_actions_template_create() [all …]
|
| H A D | rte_tm.h | 1274 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 …]
|
| /dpdk/examples/ethtool/lib/ |
| H A D | rte_ethtool.c | 47 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 …]
|
| H A D | rte_ethtool.h | 67 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 …]
|
| /dpdk/drivers/net/ipn3ke/ |
| H A D | ipn3ke_representor.c | 103 dev_info->switch_info.port_id = rpst->port_id; in ipn3ke_rpst_dev_infos_get() 604 port_id, in ipn3ke_rpst_10g_nic_side_tx_stats_reset() 610 port_id, in ipn3ke_rpst_10g_nic_side_tx_stats_reset() 629 port_id, in ipn3ke_rpst_10g_nic_side_rx_stats_reset() 635 port_id, in ipn3ke_rpst_10g_nic_side_rx_stats_reset() 700 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers() 739 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers() 762 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers() 768 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers() 776 port_id, in ipn3ke_rpst_read_25g_lineside_stats_registers() [all …]
|
| /dpdk/examples/kni/ |
| H A D | main.c | 213 uint16_t port_id; in kni_ingress() local 222 port_id = p->port_id; in kni_ingress() 260 port_id = p->port_id; in kni_egress() 444 kni_port_params_array[port_id]->port_id = port_id; in parse_config() 821 port_id); in kni_change_mtu_() 831 port_id); in kni_change_mtu_() 927 port_id); in kni_config_mac_address() 941 if (port_id >= RTE_MAX_ETHPORTS || !params[port_id]) in kni_alloc() 944 params[port_id]->nb_kni = params[port_id]->nb_lcore_k ? in kni_alloc() 989 ops.port_id = port_id; in kni_alloc() [all …]
|
| /dpdk/app/test-pmd/ |
| H A D | config.c | 340 ret = rte_eth_stats_get(port_id, &ports[port_id].stats); in nic_stats_clear() 433 ret = rte_eth_stats_get(port_id, &ports[port_id].stats); in nic_xstats_clear() 928 port_id); in port_eeprom_display() 995 port_id); in port_module_eeprom_display() 1654 port_id); in action_alloc() 3188 port_id); in port_flow_aged() 5465 port_id); in tx_vlan_set() 5492 port_id); in tx_qinq_set() 5740 port_id); in get_fdir_info() 6108 port_id); in mcast_addr_remove() [all …]
|
| H A D | testpmd.h | 872 void nic_stats_clear(portid_t port_id); 874 void nic_xstats_clear(portid_t port_id); 960 int port_flow_create(portid_t port_id, 969 int port_flow_flush(portid_t port_id); 1010 void tx_vlan_reset(portid_t port_id); 1057 int port_is_stopped(portid_t port_id); 1058 int port_is_started(portid_t port_id); 1061 void fdir_get_infos(portid_t port_id); 1090 void show_gro(portid_t port_id); 1106 void show_macs(portid_t port_id); [all …]
|
| H A D | cmdline_mtr.c | 227 uint16_t port_id = res->port_id; in cmd_show_port_meter_cap_parsed() local 363 uint16_t port_id = res->port_id; in cmd_add_port_meter_profile_srtcm_parsed() local 476 uint16_t port_id = res->port_id; in cmd_add_port_meter_profile_trtcm_parsed() local 596 uint16_t port_id = res->port_id; in cmd_add_port_meter_profile_trtcm_rfc4115_parsed() local 680 uint16_t port_id = res->port_id; in cmd_del_port_meter_profile_parsed() local 780 uint16_t port_id = res->port_id; in cmd_create_port_meter_parsed() local 871 uint16_t port_id = res->port_id; in cmd_enable_port_meter_parsed() local 932 uint16_t port_id = res->port_id; in cmd_disable_port_meter_parsed() local 997 uint16_t port_id = res->port_id; in cmd_del_port_meter_policy_parsed() local 1058 uint16_t port_id = res->port_id; in cmd_del_port_meter_parsed() local [all …]
|
| H A D | cmdline_tm.c | 233 portid_t port_id = res->port_id; in cmd_show_port_tm_cap_parsed() local 386 portid_t port_id = res->port_id; in cmd_show_port_tm_level_cap_parsed() local 536 portid_t port_id = res->port_id; in cmd_show_port_tm_node_cap_parsed() local 666 portid_t port_id = res->port_id; in cmd_show_port_tm_node_stats_parsed() local 779 portid_t port_id = res->port_id; in cmd_show_port_tm_node_type_parsed() local 898 portid_t port_id = res->port_id; in cmd_add_port_tm_node_shaper_profile_parsed() local 994 portid_t port_id = res->port_id; in cmd_del_port_tm_node_shaper_profile_parsed() local 1080 portid_t port_id = res->port_id; in cmd_add_port_tm_node_shared_shaper_parsed() local 1175 portid_t port_id = res->port_id; in cmd_del_port_tm_node_shared_shaper_parsed() local 1331 portid_t port_id = res->port_id; in cmd_add_port_tm_node_wred_profile_parsed() local [all …]
|
| /dpdk/examples/l2fwd-event/ |
| H A D | l2fwd_common.c | 21 uint16_t port_id; in l2fwd_event_init_ports() local 31 RTE_ETH_FOREACH_DEV(port_id) { in l2fwd_event_init_ports() 51 port_id, strerror(-ret)); in l2fwd_event_init_ports() 58 port_id, in l2fwd_event_init_ports() 70 ret, port_id); in l2fwd_event_init_ports() 77 ret, port_id); in l2fwd_event_init_ports() 79 rte_eth_macaddr_get(port_id, &rsrc->eth_addr[port_id]); in l2fwd_event_init_ports() 92 ret, port_id); in l2fwd_event_init_ports() 101 rte_eth_dev_socket_id(port_id), in l2fwd_event_init_ports() 105 ret, port_id); in l2fwd_event_init_ports() [all …]
|
| H A D | l2fwd_poll.c | 36 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() 73 port_id = in l2fwd_poll_main_loop() 90 port_id = qconf->rx_port_list[i]; in l2fwd_poll_main_loop() 112 uint16_t port_id; in l2fwd_poll_lcore_config() local 115 RTE_ETH_FOREACH_DEV(port_id) { in l2fwd_poll_lcore_config() 145 uint16_t port_id; in l2fwd_poll_init_tx_buffers() local 148 RTE_ETH_FOREACH_DEV(port_id) { in l2fwd_poll_init_tx_buffers() 155 port_id); in l2fwd_poll_init_tx_buffers() 161 poll_rsrc->tx_buffer[port_id], in l2fwd_poll_init_tx_buffers() [all …]
|
| H A D | main.c | 224 uint16_t port_id; in l2fwd_event_parse_args() local 229 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) in l2fwd_event_parse_args() 400 uint16_t port_id; in check_all_ports_link_status() local 463 uint32_t port_id; in print_stats() local 477 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) { in print_stats() 485 port_id, in print_stats() 649 last_port = port_id; in main() 705 (1 << port_id)) == 0) in main() 711 port_id); in main() 740 ret, port_id); in main() [all …]
|
| /dpdk/examples/flow_filtering/ |
| H A D | main.c | 33 static uint16_t port_id; variable 93 rte_flow_flush(port_id, &error); in main_loop() 94 ret = rte_eth_dev_stop(port_id); in main_loop() 98 rte_eth_dev_close(port_id); in main_loop() 157 port_id, strerror(-ret)); in init_port() 166 ret, port_id); in init_port() 182 ret, port_id); in init_port() 196 ret, port_id); in init_port() 214 ret, port_id); in init_port() 254 port_id = 0; in main() [all …]
|
| /dpdk/app/test/ |
| H A D | virtual_pmd.h | 22 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 D | test_link_bonding_rssconf.c | 50 uint16_t port_id; member 129 port_id); in configure_ethdev() 137 rte_eth_dev_socket_id(port_id), NULL, in configure_ethdev() 200 port->port_id); in bond_slaves() 311 port->port_id), "Cannot add slave"); in slave_remove_and_add() 366 port->port_id); in test_propagate() 410 port->port_id); in test_propagate() 514 int port_id; in test_setup() local 533 port_id = rte_eth_dev_count_avail(); in test_setup() 540 port->port_id = port_id; in test_setup() [all …]
|
| /dpdk/examples/l3fwd/ |
| H A D | l3fwd_event.c | 52 uint16_t port_id; in l3fwd_eth_dev_port_setup() local 57 RTE_ETH_FOREACH_DEV(port_id) { in l3fwd_eth_dev_port_setup() 87 port_id, in l3fwd_eth_dev_port_setup() 97 ret, port_id); in l3fwd_eth_dev_port_setup() 104 "port=%d\n", ret, port_id); in l3fwd_eth_dev_port_setup() 106 rte_eth_macaddr_get(port_id, &ports_eth_addr[port_id]); in l3fwd_eth_dev_port_setup() 134 ret = init_mem(port_id, nb_mbuf); in l3fwd_eth_dev_port_setup() 154 ret, port_id, eth_qid); in l3fwd_eth_dev_port_setup() 164 "port=%d\n", ret, port_id); in l3fwd_eth_dev_port_setup() 197 int port_id; in l3fwd_get_free_event_port() local [all …]
|
| /dpdk/examples/ip_pipeline/ |
| H A D | link.c | 68 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 …]
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_port_db.c | 124 uint32_t port_id = eth_dev->data->port_id; in ulp_port_db_dev_port_intf_update() local 144 port_db->dev_port_list[port_id] = ifindex; in ulp_port_db_dev_port_intf_update() 178 bnxt_pmd_get_phy_port_id(port_id); in ulp_port_db_dev_port_intf_update() 219 uint32_t port_id, in ulp_port_db_dev_port_to_ulp_index() argument 230 if (!port_db->dev_port_list[port_id]) in ulp_port_db_dev_port_to_ulp_index() 233 *ifindex = port_db->dev_port_list[port_id]; in ulp_port_db_dev_port_to_ulp_index() 573 ifindex = port_db->dev_port_list[port_id]; in ulp_port_db_port_func_id_get() 596 uint32_t port_id) in ulp_port_db_func_if_info_get() argument 625 uint32_t port_id, uint8_t **mac_addr) in ulp_port_db_parent_mac_addr_get() argument 671 uint32_t port_id, uint8_t **vnic) in ulp_port_db_parent_vnic_get() argument [all …]
|
| H A D | ulp_def_rules.c | 148 port_id = rte_cpu_to_be_16(port_id); in ulp_set_vlan_in_act_prop() 154 &port_id, sizeof(port_id)); in ulp_set_vlan_in_act_prop() 171 port_id); in ulp_set_mark_in_act_prop() 181 uint16_t port_id; in ulp_df_dev_port_handler() local 321 mapper_params.port_id = eth_dev->data->port_id; in ulp_default_flow_create() 455 port_id = bp->eth_dev->data->port_id; in bnxt_ulp_destroy_df_rules() 467 for (port_id = 0; port_id < RTE_MAX_ETHPORTS; port_id++) { in bnxt_ulp_destroy_df_rules() 482 uint16_t port_id = bp->eth_dev->data->port_id; in bnxt_create_port_app_df_rule() local 487 .value = {(port_id >> 8) & 0xff, port_id & 0xff} in bnxt_create_port_app_df_rule() 515 port_id = bp->eth_dev->data->port_id; in bnxt_ulp_create_df_rules() [all …]
|
| /dpdk/drivers/event/dsw/ |
| H A D | dsw_xstats.c | 40 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 …]
|