Lines Matching refs:port_id
1470 uint16_t port_id; member
1698 #define RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, retval) do { \ argument
1699 if (!rte_eth_dev_is_valid_port(port_id)) { \
1700 RTE_ETHDEV_LOG(ERR, "Invalid port_id=%u\n", port_id); \
1705 #define RTE_ETH_VALID_PORTID_OR_RET(port_id) do { \ argument
1706 if (!rte_eth_dev_is_valid_port(port_id)) { \
1707 RTE_ETHDEV_LOG(ERR, "Invalid port_id=%u\n", port_id); \
1747 typedef uint16_t (*rte_rx_callback_fn)(uint16_t port_id, uint16_t queue,
1771 typedef uint16_t (*rte_tx_callback_fn)(uint16_t port_id, uint16_t queue,
1834 uint64_t rte_eth_find_next_owned_by(uint16_t port_id,
1853 uint16_t rte_eth_find_next(uint16_t port_id);
1888 #define RTE_ETH_FOREACH_DEV_OF(port_id, parent) \ argument
1889 for (port_id = rte_eth_find_next_of(0, parent); \
1890 port_id < RTE_MAX_ETHPORTS; \
1891 port_id = rte_eth_find_next_of(port_id + 1, parent))
1921 #define RTE_ETH_FOREACH_DEV_SIBLING(port_id, ref_port_id) \ argument
1922 for (port_id = rte_eth_find_next_sibling(0, ref_port_id); \
1923 port_id < RTE_MAX_ETHPORTS; \
1924 port_id = rte_eth_find_next_sibling(port_id + 1, ref_port_id))
1956 int rte_eth_dev_owner_set(const uint16_t port_id,
1973 int rte_eth_dev_owner_unset(const uint16_t port_id,
2004 int rte_eth_dev_owner_get(const uint16_t port_id,
2101 int rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_queue,
2117 rte_eth_dev_is_removed(uint16_t port_id);
2181 int rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id,
2215 (uint16_t port_id, uint16_t rx_queue_id, uint16_t nb_rx_desc,
2266 int rte_eth_tx_queue_setup(uint16_t port_id, uint16_t tx_queue_id,
2297 (uint16_t port_id, uint16_t tx_queue_id, uint16_t nb_tx_desc,
2327 int rte_eth_hairpin_get_peer_ports(uint16_t port_id, uint16_t *peer_ports,
2392 int rte_eth_dev_socket_id(uint16_t port_id);
2403 int rte_eth_dev_is_valid_port(uint16_t port_id);
2422 int rte_eth_dev_rx_queue_start(uint16_t port_id, uint16_t rx_queue_id);
2440 int rte_eth_dev_rx_queue_stop(uint16_t port_id, uint16_t rx_queue_id);
2459 int rte_eth_dev_tx_queue_start(uint16_t port_id, uint16_t tx_queue_id);
2477 int rte_eth_dev_tx_queue_stop(uint16_t port_id, uint16_t tx_queue_id);
2498 int rte_eth_dev_start(uint16_t port_id);
2510 int rte_eth_dev_stop(uint16_t port_id);
2524 int rte_eth_dev_set_link_up(uint16_t port_id);
2535 int rte_eth_dev_set_link_down(uint16_t port_id);
2547 int rte_eth_dev_close(uint16_t port_id);
2586 int rte_eth_dev_reset(uint16_t port_id);
2599 int rte_eth_promiscuous_enable(uint16_t port_id);
2612 int rte_eth_promiscuous_disable(uint16_t port_id);
2624 int rte_eth_promiscuous_get(uint16_t port_id);
2637 int rte_eth_allmulticast_enable(uint16_t port_id);
2650 int rte_eth_allmulticast_disable(uint16_t port_id);
2662 int rte_eth_allmulticast_get(uint16_t port_id);
2680 int rte_eth_link_get(uint16_t port_id, struct rte_eth_link *link);
2695 int rte_eth_link_get_nowait(uint16_t port_id, struct rte_eth_link *link);
2752 int rte_eth_stats_get(uint16_t port_id, struct rte_eth_stats *stats);
2765 int rte_eth_stats_reset(uint16_t port_id);
2796 int rte_eth_xstats_get_names(uint16_t port_id,
2829 int rte_eth_xstats_get(uint16_t port_id, struct rte_eth_xstat *xstats,
2855 rte_eth_xstats_get_names_by_id(uint16_t port_id,
2882 int rte_eth_xstats_get_by_id(uint16_t port_id, const uint64_t *ids,
2903 int rte_eth_xstats_get_id_by_name(uint16_t port_id, const char *xstat_name,
2918 int rte_eth_xstats_reset(uint16_t port_id);
2938 int rte_eth_dev_set_tx_queue_stats_mapping(uint16_t port_id,
2959 int rte_eth_dev_set_rx_queue_stats_mapping(uint16_t port_id,
2975 int rte_eth_macaddr_get(uint16_t port_id, struct rte_ether_addr *mac_addr);
3019 int rte_eth_dev_info_get(uint16_t port_id, struct rte_eth_dev_info *dev_info);
3040 int rte_eth_dev_fw_version_get(uint16_t port_id,
3081 int rte_eth_dev_get_supported_ptypes(uint16_t port_id, uint32_t ptype_mask,
3117 int rte_eth_dev_set_ptypes(uint16_t port_id, uint32_t ptype_mask,
3131 int rte_eth_dev_get_mtu(uint16_t port_id, uint16_t *mtu);
3150 int rte_eth_dev_set_mtu(uint16_t port_id, uint16_t mtu);
3171 int rte_eth_dev_vlan_filter(uint16_t port_id, uint16_t vlan_id, int on);
3191 int rte_eth_dev_set_vlan_strip_on_queue(uint16_t port_id, uint16_t rx_queue_id,
3210 int rte_eth_dev_set_vlan_ether_type(uint16_t port_id,
3231 int rte_eth_dev_set_vlan_offload(uint16_t port_id, int offload_mask);
3246 int rte_eth_dev_get_vlan_offload(uint16_t port_id);
3262 int rte_eth_dev_set_vlan_pvid(uint16_t port_id, uint16_t pvid, int on);
3409 rte_eth_tx_done_cleanup(uint16_t port_id, uint16_t queue_id, uint32_t free_cnt);
3471 typedef int (*rte_eth_dev_cb_fn)(uint16_t port_id,
3492 int rte_eth_dev_callback_register(uint16_t port_id,
3514 int rte_eth_dev_callback_unregister(uint16_t port_id,
3539 int rte_eth_dev_rx_intr_enable(uint16_t port_id, uint16_t queue_id);
3561 int rte_eth_dev_rx_intr_disable(uint16_t port_id, uint16_t queue_id);
3580 int rte_eth_dev_rx_intr_ctl(uint16_t port_id, int epfd, int op, void *data);
3603 int rte_eth_dev_rx_intr_ctl_q(uint16_t port_id, uint16_t queue_id,
3625 rte_eth_dev_rx_intr_ctl_q_get_fd(uint16_t port_id, uint16_t queue_id);
3640 int rte_eth_led_on(uint16_t port_id);
3655 int rte_eth_led_off(uint16_t port_id);
3686 int rte_eth_fec_get_capability(uint16_t port_id,
3714 int rte_eth_fec_get(uint16_t port_id, uint32_t *fec_capa);
3737 int rte_eth_fec_set(uint16_t port_id, uint32_t fec_capa);
3752 int rte_eth_dev_flow_ctrl_get(uint16_t port_id,
3769 int rte_eth_dev_flow_ctrl_set(uint16_t port_id,
3787 int rte_eth_dev_priority_flow_ctrl_set(uint16_t port_id,
3808 int rte_eth_dev_mac_addr_add(uint16_t port_id, struct rte_ether_addr *mac_addr,
3824 int rte_eth_dev_mac_addr_remove(uint16_t port_id,
3840 int rte_eth_dev_default_mac_addr_set(uint16_t port_id,
3860 int rte_eth_dev_rss_reta_update(uint16_t port_id,
3882 int rte_eth_dev_rss_reta_query(uint16_t port_id,
3905 int rte_eth_dev_uc_hash_table_set(uint16_t port_id, struct rte_ether_addr *addr,
3926 int rte_eth_dev_uc_all_hash_table_set(uint16_t port_id, uint8_t on);
3950 int rte_eth_mirror_rule_set(uint16_t port_id,
3969 int rte_eth_mirror_rule_reset(uint16_t port_id,
3988 int rte_eth_set_queue_rate_limit(uint16_t port_id, uint16_t queue_idx,
4005 int rte_eth_dev_rss_hash_update(uint16_t port_id,
4023 rte_eth_dev_rss_hash_conf_get(uint16_t port_id,
4045 rte_eth_dev_udp_tunnel_port_add(uint16_t port_id,
4068 rte_eth_dev_udp_tunnel_port_delete(uint16_t port_id,
4084 int rte_eth_dev_get_dcb_info(uint16_t port_id,
4115 rte_eth_add_rx_callback(uint16_t port_id, uint16_t queue_id,
4145 rte_eth_add_first_rx_callback(uint16_t port_id, uint16_t queue_id,
4174 rte_eth_add_tx_callback(uint16_t port_id, uint16_t queue_id,
4210 int rte_eth_remove_rx_callback(uint16_t port_id, uint16_t queue_id,
4246 int rte_eth_remove_tx_callback(uint16_t port_id, uint16_t queue_id,
4268 int rte_eth_rx_queue_info_get(uint16_t port_id, uint16_t queue_id,
4290 int rte_eth_tx_queue_info_get(uint16_t port_id, uint16_t queue_id,
4312 int rte_eth_rx_burst_mode_get(uint16_t port_id, uint16_t queue_id,
4334 int rte_eth_tx_burst_mode_get(uint16_t port_id, uint16_t queue_id,
4354 int rte_eth_dev_get_reg_info(uint16_t port_id, struct rte_dev_reg_info *info);
4368 int rte_eth_dev_get_eeprom_length(uint16_t port_id);
4385 int rte_eth_dev_get_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info);
4402 int rte_eth_dev_set_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info);
4423 rte_eth_dev_get_module_info(uint16_t port_id,
4446 rte_eth_dev_get_module_eeprom(uint16_t port_id,
4467 int rte_eth_dev_set_mc_addr_list(uint16_t port_id,
4483 int rte_eth_timesync_enable(uint16_t port_id);
4497 int rte_eth_timesync_disable(uint16_t port_id);
4517 int rte_eth_timesync_read_rx_timestamp(uint16_t port_id,
4535 int rte_eth_timesync_read_tx_timestamp(uint16_t port_id,
4555 int rte_eth_timesync_adjust_time(uint16_t port_id, int64_t delta);
4571 int rte_eth_timesync_read_time(uint16_t port_id, struct timespec *time);
4591 int rte_eth_timesync_write_time(uint16_t port_id, const struct timespec *time);
4639 rte_eth_read_clock(uint16_t port_id, uint64_t *clock);
4657 rte_eth_dev_get_port_by_name(const char *name, uint16_t *port_id);
4675 rte_eth_dev_get_name_by_port(uint16_t port_id, char *name);
4693 int rte_eth_dev_adjust_nb_rx_tx_desc(uint16_t port_id,
4712 rte_eth_dev_pool_ops_supported(uint16_t port_id, const char *pool);
4724 rte_eth_dev_get_sec_ctx(uint16_t port_id);
4741 int rte_eth_dev_hairpin_capability_get(uint16_t port_id,
4834 rte_eth_rx_burst(uint16_t port_id, uint16_t queue_id, in rte_eth_rx_burst() argument
4837 struct rte_eth_dev *dev = &rte_eth_devices[port_id]; in rte_eth_rx_burst()
4841 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, 0); in rte_eth_rx_burst()
4866 nb_rx = cb->fn.rx(port_id, queue_id, rx_pkts, nb_rx, in rte_eth_rx_burst()
4873 rte_ethdev_trace_rx_burst(port_id, queue_id, (void **)rx_pkts, nb_rx); in rte_eth_rx_burst()
4891 rte_eth_rx_queue_count(uint16_t port_id, uint16_t queue_id) in rte_eth_rx_queue_count() argument
4895 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); in rte_eth_rx_queue_count()
4896 dev = &rte_eth_devices[port_id]; in rte_eth_rx_queue_count()
4922 rte_eth_rx_descriptor_done(uint16_t port_id, uint16_t queue_id, uint16_t offset) in rte_eth_rx_descriptor_done() argument
4924 struct rte_eth_dev *dev = &rte_eth_devices[port_id]; in rte_eth_rx_descriptor_done()
4925 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); in rte_eth_rx_descriptor_done()
4968 rte_eth_rx_descriptor_status(uint16_t port_id, uint16_t queue_id, in rte_eth_rx_descriptor_status() argument
4975 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); in rte_eth_rx_descriptor_status()
4977 dev = &rte_eth_devices[port_id]; in rte_eth_rx_descriptor_status()
5025 static inline int rte_eth_tx_descriptor_status(uint16_t port_id, in rte_eth_tx_descriptor_status() argument
5032 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); in rte_eth_tx_descriptor_status()
5034 dev = &rte_eth_devices[port_id]; in rte_eth_tx_descriptor_status()
5112 rte_eth_tx_burst(uint16_t port_id, uint16_t queue_id, in rte_eth_tx_burst() argument
5115 struct rte_eth_dev *dev = &rte_eth_devices[port_id]; in rte_eth_tx_burst()
5118 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, 0); in rte_eth_tx_burst()
5141 nb_pkts = cb->fn.tx(port_id, queue_id, tx_pkts, nb_pkts, in rte_eth_tx_burst()
5148 rte_ethdev_trace_tx_burst(port_id, queue_id, (void **)tx_pkts, in rte_eth_tx_burst()
5210 rte_eth_tx_prepare(uint16_t port_id, uint16_t queue_id, in rte_eth_tx_prepare() argument
5216 if (!rte_eth_dev_is_valid_port(port_id)) { in rte_eth_tx_prepare()
5217 RTE_ETHDEV_LOG(ERR, "Invalid TX port_id=%u\n", port_id); in rte_eth_tx_prepare()
5223 dev = &rte_eth_devices[port_id]; in rte_eth_tx_prepare()
5252 rte_eth_tx_prepare(__rte_unused uint16_t port_id, in rte_eth_tx_prepare() argument
5284 rte_eth_tx_buffer_flush(uint16_t port_id, uint16_t queue_id, in rte_eth_tx_buffer_flush() argument
5293 sent = rte_eth_tx_burst(port_id, queue_id, buffer->pkts, to_send); in rte_eth_tx_buffer_flush()
5337 rte_eth_tx_buffer(uint16_t port_id, uint16_t queue_id, in rte_eth_tx_buffer() argument
5344 return rte_eth_tx_buffer_flush(port_id, queue_id, buffer); in rte_eth_tx_buffer()