Lines Matching defs:rte_eth_dev
51 struct __rte_cache_aligned rte_eth_dev {
197 * The pool of *rte_eth_dev* structures. The size of the pool
200 extern struct rte_eth_dev rte_eth_devices[];
207 * generic structure of type *eth_dev_ops* supplied in the *rte_eth_dev*
212 typedef int (*eth_dev_configure_t)(struct rte_eth_dev *dev);
215 typedef int (*eth_dev_start_t)(struct rte_eth_dev *dev);
218 typedef int (*eth_dev_stop_t)(struct rte_eth_dev *dev);
221 typedef int (*eth_dev_set_link_up_t)(struct rte_eth_dev *dev);
224 typedef int (*eth_dev_set_link_down_t)(struct rte_eth_dev *dev);
227 typedef int (*eth_dev_close_t)(struct rte_eth_dev *dev);
230 typedef int (*eth_dev_reset_t)(struct rte_eth_dev *dev);
233 typedef int (*eth_is_removed_t)(struct rte_eth_dev *dev);
258 typedef int (*eth_promiscuous_enable_t)(struct rte_eth_dev *dev);
283 typedef int (*eth_promiscuous_disable_t)(struct rte_eth_dev *dev);
308 typedef int (*eth_allmulticast_enable_t)(struct rte_eth_dev *dev);
333 typedef int (*eth_allmulticast_disable_t)(struct rte_eth_dev *dev);
339 typedef int (*eth_link_update_t)(struct rte_eth_dev *dev,
361 typedef int (*eth_speed_lanes_get_t)(struct rte_eth_dev *dev, uint32_t *speed_lanes);
388 typedef int (*eth_speed_lanes_set_t)(struct rte_eth_dev *dev, uint32_t speed_lanes);
425 typedef int (*eth_speed_lanes_get_capability_t)(struct rte_eth_dev *dev,
430 typedef int (*eth_stats_get_t)(struct rte_eth_dev *dev,
452 typedef int (*eth_stats_reset_t)(struct rte_eth_dev *dev);
455 typedef int (*eth_xstats_get_t)(struct rte_eth_dev *dev,
476 typedef int (*eth_xstats_get_by_id_t)(struct rte_eth_dev *dev,
500 typedef int (*eth_xstats_reset_t)(struct rte_eth_dev *dev);
503 typedef int (*eth_xstats_get_names_t)(struct rte_eth_dev *dev,
524 typedef int (*eth_xstats_get_names_by_id_t)(struct rte_eth_dev *dev,
532 typedef int (*eth_queue_stats_mapping_set_t)(struct rte_eth_dev *dev,
538 typedef int (*eth_dev_infos_get_t)(struct rte_eth_dev *dev,
555 typedef const uint32_t *(*eth_dev_supported_ptypes_get_t)(struct rte_eth_dev *dev,
570 typedef int (*eth_dev_ptypes_set_t)(struct rte_eth_dev *dev,
574 typedef int (*eth_queue_start_t)(struct rte_eth_dev *dev,
578 typedef int (*eth_queue_stop_t)(struct rte_eth_dev *dev,
582 typedef int (*eth_rx_queue_setup_t)(struct rte_eth_dev *dev,
590 typedef int (*eth_tx_queue_setup_t)(struct rte_eth_dev *dev,
597 typedef int (*eth_rx_enable_intr_t)(struct rte_eth_dev *dev,
601 typedef int (*eth_rx_disable_intr_t)(struct rte_eth_dev *dev,
605 typedef void (*eth_queue_release_t)(struct rte_eth_dev *dev,
609 typedef int (*eth_fw_version_get_t)(struct rte_eth_dev *dev,
615 typedef void (*eth_rxq_info_get_t)(struct rte_eth_dev *dev,
618 typedef void (*eth_txq_info_get_t)(struct rte_eth_dev *dev,
621 typedef void (*eth_recycle_rxq_info_get_t)(struct rte_eth_dev *dev,
625 typedef int (*eth_burst_mode_get_t)(struct rte_eth_dev *dev,
629 typedef int (*mtu_set_t)(struct rte_eth_dev *dev, uint16_t mtu);
632 typedef int (*vlan_filter_set_t)(struct rte_eth_dev *dev,
637 typedef int (*vlan_tpid_set_t)(struct rte_eth_dev *dev,
641 typedef int (*vlan_offload_set_t)(struct rte_eth_dev *dev, int mask);
644 typedef int (*vlan_pvid_set_t)(struct rte_eth_dev *dev,
649 typedef void (*vlan_strip_queue_set_t)(struct rte_eth_dev *dev,
654 typedef int (*flow_ctrl_get_t)(struct rte_eth_dev *dev,
658 typedef int (*flow_ctrl_set_t)(struct rte_eth_dev *dev,
662 typedef int (*priority_flow_ctrl_set_t)(struct rte_eth_dev *dev,
666 typedef int (*priority_flow_ctrl_queue_info_get_t)(struct rte_eth_dev *dev,
669 typedef int (*priority_flow_ctrl_queue_config_t)(struct rte_eth_dev *dev,
673 typedef int (*reta_update_t)(struct rte_eth_dev *dev,
678 typedef int (*reta_query_t)(struct rte_eth_dev *dev,
683 typedef int (*rss_hash_update_t)(struct rte_eth_dev *dev,
687 typedef int (*rss_hash_conf_get_t)(struct rte_eth_dev *dev,
691 typedef int (*eth_dev_led_on_t)(struct rte_eth_dev *dev);
694 typedef int (*eth_dev_led_off_t)(struct rte_eth_dev *dev);
697 typedef void (*eth_mac_addr_remove_t)(struct rte_eth_dev *dev, uint32_t index);
700 typedef int (*eth_mac_addr_add_t)(struct rte_eth_dev *dev,
706 typedef int (*eth_mac_addr_set_t)(struct rte_eth_dev *dev,
710 typedef int (*eth_uc_hash_table_set_t)(struct rte_eth_dev *dev,
715 typedef int (*eth_uc_all_hash_table_set_t)(struct rte_eth_dev *dev,
719 typedef int (*eth_set_queue_rate_limit_t)(struct rte_eth_dev *dev,
724 typedef int (*eth_udp_tunnel_port_add_t)(struct rte_eth_dev *dev,
728 typedef int (*eth_udp_tunnel_port_del_t)(struct rte_eth_dev *dev,
732 typedef int (*eth_set_mc_addr_list_t)(struct rte_eth_dev *dev,
737 typedef int (*eth_timesync_enable_t)(struct rte_eth_dev *dev);
740 typedef int (*eth_timesync_disable_t)(struct rte_eth_dev *dev);
743 typedef int (*eth_timesync_read_rx_timestamp_t)(struct rte_eth_dev *dev,
748 typedef int (*eth_timesync_read_tx_timestamp_t)(struct rte_eth_dev *dev,
752 typedef int (*eth_timesync_adjust_time)(struct rte_eth_dev *dev, int64_t);
755 typedef int (*eth_timesync_adjust_freq)(struct rte_eth_dev *dev, int64_t);
758 typedef int (*eth_timesync_read_time)(struct rte_eth_dev *dev,
762 typedef int (*eth_timesync_write_time)(struct rte_eth_dev *dev,
766 typedef int (*eth_read_clock)(struct rte_eth_dev *dev,
770 typedef int (*eth_get_reg_t)(struct rte_eth_dev *dev,
774 typedef int (*eth_get_eeprom_length_t)(struct rte_eth_dev *dev);
777 typedef int (*eth_get_eeprom_t)(struct rte_eth_dev *dev,
781 typedef int (*eth_set_eeprom_t)(struct rte_eth_dev *dev,
785 typedef int (*eth_get_module_info_t)(struct rte_eth_dev *dev,
789 typedef int (*eth_get_module_eeprom_t)(struct rte_eth_dev *dev,
800 typedef int (*eth_flow_ops_get_t)(struct rte_eth_dev *dev,
804 typedef int (*eth_tm_ops_get_t)(struct rte_eth_dev *dev, void *ops);
807 typedef int (*eth_mtr_ops_get_t)(struct rte_eth_dev *dev, void *ops);
810 typedef int (*eth_get_dcb_info)(struct rte_eth_dev *dev,
814 typedef int (*eth_pool_ops_supported_t)(struct rte_eth_dev *dev,
834 typedef int (*eth_hairpin_cap_get_t)(struct rte_eth_dev *dev,
863 (struct rte_eth_dev *dev, uint16_t rx_queue_id,
893 (struct rte_eth_dev *dev, uint16_t tx_queue_id,
925 typedef int (*eth_fec_get_capability_t)(struct rte_eth_dev *dev,
950 typedef int (*eth_fec_get_t)(struct rte_eth_dev *dev,
976 typedef int (*eth_fec_set_t)(struct rte_eth_dev *dev, uint32_t fec_capa);
1005 typedef int (*hairpin_get_peer_ports_t)(struct rte_eth_dev *dev,
1030 typedef int (*eth_hairpin_bind_t)(struct rte_eth_dev *dev,
1054 typedef int (*eth_hairpin_unbind_t)(struct rte_eth_dev *dev,
1059 (struct rte_eth_dev *dev, uint16_t peer_queue,
1065 (struct rte_eth_dev *dev, uint16_t cur_queue,
1070 (struct rte_eth_dev *dev, uint16_t cur_queue, uint32_t direction);
1113 typedef int (*eth_representor_info_get_t)(struct rte_eth_dev *dev,
1129 typedef int (*eth_rx_metadata_negotiate_t)(struct rte_eth_dev *dev,
1145 typedef int (*eth_ip_reassembly_capability_get_t)(struct rte_eth_dev *dev,
1161 typedef int (*eth_ip_reassembly_conf_get_t)(struct rte_eth_dev *dev,
1177 typedef int (*eth_ip_reassembly_conf_set_t)(struct rte_eth_dev *dev,
1190 typedef const uint32_t *(*eth_buffer_split_supported_hdr_ptypes_get_t)(struct rte_eth_dev *dev,
1210 typedef int (*eth_dev_priv_dump_t)(struct rte_eth_dev *dev, FILE *file);
1219 typedef int (*eth_rx_queue_avail_thresh_set_t)(struct rte_eth_dev *dev,
1228 typedef int (*eth_rx_queue_avail_thresh_query_t)(struct rte_eth_dev *dev,
1233 typedef int (*eth_cman_info_get_t)(struct rte_eth_dev *dev,
1237 typedef int (*eth_cman_config_init_t)(struct rte_eth_dev *dev,
1241 typedef int (*eth_cman_config_set_t)(struct rte_eth_dev *dev,
1245 typedef int (*eth_cman_config_get_t)(struct rte_eth_dev *dev,
1268 typedef int (*eth_rx_descriptor_dump_t)(const struct rte_eth_dev *dev,
1292 typedef int (*eth_tx_descriptor_dump_t)(const struct rte_eth_dev *dev,
1309 typedef int (*eth_count_aggr_ports_t)(struct rte_eth_dev *dev);
1325 typedef int (*eth_map_aggr_tx_affinity_t)(struct rte_eth_dev *dev, uint16_t tx_queue_id,
1367 typedef uint64_t (*eth_get_restore_flags_t)(struct rte_eth_dev *dev,
1633 int rte_eth_dev_is_rx_hairpin_queue(struct rte_eth_dev *dev, uint16_t queue_id);
1648 int rte_eth_dev_is_tx_hairpin_queue(struct rte_eth_dev *dev, uint16_t queue_id);
1660 struct rte_eth_dev *rte_eth_dev_allocated(const char *name);
1672 struct rte_eth_dev *rte_eth_dev_allocate(const char *name);
1686 struct rte_eth_dev *rte_eth_dev_attach_secondary(const char *name);
1705 int rte_eth_dev_release_port(struct rte_eth_dev *eth_dev);
1713 * Pointer to struct rte_eth_dev.
1719 void rte_eth_dev_internal_reset(struct rte_eth_dev *dev);
1727 * Pointer to struct rte_eth_dev.
1739 int rte_eth_dev_callback_process(struct rte_eth_dev *dev,
1755 void rte_eth_dev_probing_finish(struct rte_eth_dev *dev);
1764 * The *eth_dev* pointer is the address of the *rte_eth_dev* structure
1778 rte_eth_dma_zone_reserve(const struct rte_eth_dev *eth_dev, const char *name,
1786 * The *eth_dev* pointer is the address of the *rte_eth_dev* structure
1796 rte_eth_dma_zone_free(const struct rte_eth_dev *eth_dev, const char *name,
1806 * Pointer to struct rte_eth_dev.
1815 rte_eth_linkstatus_set(struct rte_eth_dev *dev,
1832 * Pointer to struct rte_eth_dev.
1837 rte_eth_linkstatus_get(const struct rte_eth_dev *dev,
1956 * Pointer to struct rte_eth_dev.
1963 rte_eth_dev_is_repr(const struct rte_eth_dev *dev)
1987 typedef int (*ethdev_init_t)(struct rte_eth_dev *ethdev, void *init_params);
1988 typedef int (*ethdev_bus_specific_init)(struct rte_eth_dev *ethdev,
2020 typedef int (*ethdev_uninit_t)(struct rte_eth_dev *ethdev);
2036 rte_eth_dev_destroy(struct rte_eth_dev *ethdev, ethdev_uninit_t ethdev_uninit);
2094 * Get rte_eth_dev from device name. The device name should be specified
2103 * - rte_eth_dev if successful
2107 struct rte_eth_dev*
2293 rte_eth_get_restore_flags(struct rte_eth_dev *dev,