| /f-stack/dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe.h | 88 void cxgbe_get_speed_caps(struct port_info *pi, u32 *speed_caps); 89 int cxgbe_set_link_status(struct port_info *pi, bool status); 91 int cxgbe_down(struct port_info *pi); 93 void cxgbe_stats_get(struct port_info *pi, struct port_stats *stats); 94 void cxgbevf_stats_get(struct port_info *pi, struct port_stats *stats); 95 void cxgbe_stats_reset(struct port_info *pi); 98 int cxgbe_link_start(struct port_info *pi); 105 int cxgbe_setup_rss(struct port_info *pi); 106 void cxgbe_enable_rx_queues(struct port_info *pi);
|
| H A D | cxgbe_ethdev.c | 117 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_info_get() 233 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_set_link_up() 262 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_set_link_down() 559 struct port_info *pi = (struct port_info *) in cxgbe_dev_tx_queue_release() 696 struct port_info *pi = (struct port_info *) in cxgbe_dev_rx_queue_release() 856 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_rss_hash_update() 886 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_rss_hash_conf_get() 937 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_rss_reta_update() 974 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_rss_reta_query() 1058 struct port_info *pi = dev->data->dev_private; in cxgbe_get_eeprom() [all …]
|
| H A D | mps_tcam.h | 48 int cxgbe_mpstcam_alloc(struct port_info *pi, const u8 *mac, const u8 *mask); 49 int cxgbe_mpstcam_remove(struct port_info *pi, u16 idx); 50 int cxgbe_mpstcam_modify(struct port_info *pi, int idx, const u8 *addr);
|
| H A D | cxgbevf_ethdev.c | 39 struct port_info *pi = eth_dev->data->dev_private; in cxgbevf_dev_stats_get() 109 struct port_info *pi = eth_dev->data->dev_private; in eth_cxgbevf_dev_init() 198 return rte_eth_dev_pci_generic_probe(pci_dev, sizeof(struct port_info), in eth_cxgbevf_pci_probe()
|
| H A D | mps_tcam.c | 61 int cxgbe_mpstcam_alloc(struct port_info *pi, const u8 *eth_addr, in cxgbe_mpstcam_alloc() 110 int cxgbe_mpstcam_modify(struct port_info *pi, int idx, const u8 *addr) in cxgbe_mpstcam_modify() 176 int cxgbe_mpstcam_remove(struct port_info *pi, u16 idx) in cxgbe_mpstcam_remove()
|
| H A D | cxgbe_main.c | 202 struct port_info *pi = adap2pinfo(adapter, i); in cxgbe_setup_sge_ctrl_txq() 600 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_cfg_queues() 645 void cxgbe_stats_reset(struct port_info *pi) in cxgbe_stats_reset() 685 struct port_info *pi = adap2pinfo(adap, i); in cxgbe_init_rss() 714 const struct port_info *pi = adap2pinfo(adap, i); in cxgbe_print_port_info() 1611 int cxgbe_link_start(struct port_info *pi) in cxgbe_link_start() 1761 int cxgbe_setup_rss(struct port_info *pi) in cxgbe_setup_rss() 1800 void cxgbe_enable_rx_queues(struct port_info *pi) in cxgbe_enable_rx_queues() 1962 int cxgbe_down(struct port_info *pi) in cxgbe_down() 2025 struct port_info *pi; in cxgbe_probe() [all …]
|
| H A D | cxgbevf_main.c | 63 void cxgbevf_stats_get(struct port_info *pi, struct port_stats *stats) in cxgbevf_stats_get() 175 struct port_info *pi; in cxgbevf_probe() 235 rte_zmalloc_socket(name, sizeof(struct port_info), in cxgbevf_probe()
|
| /f-stack/dpdk/drivers/net/softnic/ |
| H A D | rte_eth_softnic_link.c | 57 struct rte_eth_dev_info port_info; in softnic_link_create() local 82 ret = rte_eth_dev_info_get(port_id, &port_info); in softnic_link_create() 94 link->n_rxq = port_info.nb_rx_queues; in softnic_link_create() 95 link->n_txq = port_info.nb_tx_queues; in softnic_link_create()
|
| /f-stack/dpdk/examples/ip_pipeline/ |
| H A D | link.c | 102 struct rte_eth_dev_info port_info; in link_create() local 132 if (rte_eth_dev_info_get(port_id, &port_info) != 0) in link_create() 141 if ((port_info.reta_size == 0) || in link_create() 142 (port_info.reta_size > ETH_RSS_RETA_SIZE_512)) in link_create() 150 if (rss->queue_id[i] >= port_info.max_rx_queues) in link_create() 163 port_info.flow_type_rss_offloads; in link_create() 218 status = rss_setup(port_id, port_info.reta_size, rss); in link_create()
|
| /f-stack/dpdk/drivers/net/ice/ |
| H A D | ice_dcf_parent.c | 183 hw->port_info = (struct ice_port_info *) in ice_dcf_init_parent_hw() 184 ice_malloc(hw, sizeof(*hw->port_info)); in ice_dcf_init_parent_hw() 185 if (!hw->port_info) in ice_dcf_init_parent_hw() 189 hw->port_info->hw = hw; in ice_dcf_init_parent_hw() 204 status = ice_aq_get_phy_caps(hw->port_info, false, in ice_dcf_init_parent_hw() 211 status = ice_aq_get_link_info(hw->port_info, false, NULL, NULL); in ice_dcf_init_parent_hw() 234 ice_free(hw, hw->port_info); in ice_dcf_init_parent_hw() 235 hw->port_info = NULL; in ice_dcf_init_parent_hw() 247 ice_free(hw, hw->port_info); in ice_dcf_uninit_parent_hw() 248 hw->port_info = NULL; in ice_dcf_uninit_parent_hw()
|
| H A D | ice_ethdev.c | 1677 hw->port_info->mac.perm_addr, in ice_setup_vsi() 2270 rte_free(hw->port_info); in ice_dev_init() 2412 rte_free(hw->port_info); in ice_dev_close() 2413 hw->port_info = NULL; in ice_dev_close() 3833 if (!hw || !hw->port_info) in ice_force_phys_link_state() 3836 pi = hw->port_info; in ice_force_phys_link_state() 4048 vsi->info.sw_id = hw->port_info->sw_id; in ice_vsi_config_vlan_filter() 4826 GLPRT_GORCL(hw->port_info->lport), in ice_read_stats_registers() 4830 GLPRT_UPRCL(hw->port_info->lport), in ice_read_stats_registers() 4834 GLPRT_MPRCL(hw->port_info->lport), in ice_read_stats_registers() [all …]
|
| /f-stack/dpdk/drivers/raw/ifpga/base/ |
| H A D | opae_ifpga_hw_api.c | 94 struct fpga_port_info *port_info) in opae_bridge_ifpga_get_info() argument 98 if (!br || !br->data || !port_info) in opae_bridge_ifpga_get_info() 104 port_info->capability = port->capability; in opae_bridge_ifpga_get_info() 105 port_info->num_uafu_irqs = port->num_uafu_irqs; in opae_bridge_ifpga_get_info()
|
| H A D | opae_ifpga_hw_api.h | 258 struct fpga_port_info *port_info);
|
| /f-stack/dpdk/examples/multi_process/client_server_mp/mp_server/ |
| H A D | init.h | 34 extern struct port_info *ports; 39 extern struct port_info *ports;
|
| H A D | init.c | 55 struct port_info *ports;
|
| /f-stack/dpdk/examples/pipeline/ |
| H A D | obj.c | 167 struct rte_eth_dev_info port_info; in link_create() local 197 if (rte_eth_dev_info_get(port_id, &port_info) != 0) in link_create() 206 if ((port_info.reta_size == 0) || in link_create() 207 (port_info.reta_size > ETH_RSS_RETA_SIZE_512)) in link_create() 215 if (rss->queue_id[i] >= port_info.max_rx_queues) in link_create() 228 port_info.flow_type_rss_offloads; in link_create() 283 status = rss_setup(port_id, port_info.reta_size, rss); in link_create()
|
| /f-stack/dpdk/drivers/net/cxgbe/base/ |
| H A D | adapter.h | 32 struct port_info { struct 325 struct port_info *port[MAX_NPORTS];/* ports belonging to this adapter */ 393 static inline struct port_info *ethdev2pinfo(const struct rte_eth_dev *dev) in ethdev2pinfo() 405 static inline struct port_info *adap2pinfo(const struct adapter *adap, int idx) in adap2pinfo() 681 struct port_info *pi = adap2pinfo(adapter, port_idx); in t4_os_set_hw_addr() 832 void t4_sge_eth_clear_queues(struct port_info *pi); 833 void t4_sge_eth_release_queues(struct port_info *pi); 838 int cxgbe_write_rss(const struct port_info *pi, const u16 *queues); 839 int cxgbe_write_rss_conf(const struct port_info *pi, uint64_t flags);
|
| /f-stack/dpdk/drivers/net/ionic/ |
| H A D | ionic_main.c | 382 if (idev->port_info) in ionic_port_init() 385 idev->port_info_sz = RTE_ALIGN(sizeof(*idev->port_info), PAGE_SIZE); in ionic_port_init() 398 idev->port_info = idev->port_info_z->addr; in ionic_port_init() 429 if (!idev->port_info) in ionic_port_reset() 439 idev->port_info = NULL; in ionic_port_reset()
|
| /f-stack/dpdk/drivers/event/octeontx/ |
| H A D | ssovf_worker.h | 93 ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_info, in ssovf_octeontx_wqe_to_pkt() argument 130 mbuf->port = rte_octeontx_pchan_map[port_info >> 4][port_info & 0xF]; in ssovf_octeontx_wqe_to_pkt()
|
| /f-stack/dpdk/examples/multi_process/client_server_mp/shared/ |
| H A D | common.h | 30 struct port_info { struct
|
| /f-stack/dpdk/examples/multi_process/client_server_mp/mp_client/ |
| H A D | client.c | 162 configure_output_ports(const struct port_info *ports) in configure_output_ports() 209 struct port_info *ports; in main()
|
| /f-stack/dpdk/drivers/net/szedata2/ |
| H A D | rte_eth_szedata2.c | 66 struct port_info { struct 1488 rte_szedata2_eth_dev_init(struct rte_eth_dev *dev, struct port_info *pi) in rte_szedata2_eth_dev_init() 1618 struct port_info *pi, unsigned int max_ports) in get_port_info() 1630 memset(pi, 0, max_ports * sizeof(struct port_info)); in get_port_info() 1828 struct port_info port_info[SZEDATA2_MAX_PORTS]; in szedata2_eth_pci_probe() local 1837 ret = get_port_info(pci_dev, &port_count, port_info, in szedata2_eth_pci_probe() 1856 port_info[i].numa_node, i); in szedata2_eth_pci_probe() 1865 ret = rte_szedata2_eth_dev_init(eth_devs[i], &port_info[i]); in szedata2_eth_pci_probe()
|
| /f-stack/dpdk/drivers/net/ice/base/ |
| H A D | ice_common.c | 126 ice_memcpy(hw->port_info->mac.lan_addr, in ice_aq_manage_mac_read() 129 ice_memcpy(hw->port_info->mac.perm_addr, in ice_aq_manage_mac_read() 745 hw->port_info = (struct ice_port_info *) in ice_init_hw() 746 ice_malloc(hw, sizeof(*hw->port_info)); in ice_init_hw() 747 if (!hw->port_info) { in ice_init_hw() 753 hw->port_info->hw = hw; in ice_init_hw() 840 ice_free(hw, hw->port_info); in ice_init_hw() 841 hw->port_info = NULL; in ice_init_hw() 866 if (hw->port_info) { in ice_deinit_hw() 867 ice_free(hw, hw->port_info); in ice_deinit_hw() [all …]
|
| /f-stack/dpdk/drivers/net/hinic/base/ |
| H A D | hinic_pmd_hwdev.c | 1327 struct nic_port_info port_info; in hinic_link_event_process() local 1339 memset(&port_info, 0, sizeof(port_info)); in hinic_link_event_process() 1340 rc = hinic_get_port_info(hwdev, &port_info); in hinic_link_event_process() 1346 link.link_speed = port_speed[port_info.speed % in hinic_link_event_process() 1348 link.link_duplex = port_info.duplex; in hinic_link_event_process() 1349 link.link_autoneg = port_info.autoneg_state; in hinic_link_event_process()
|
| H A D | hinic_pmd_niccfg.c | 605 int hinic_get_port_info(void *hwdev, struct nic_port_info *port_info) in hinic_get_port_info() argument 611 if (!hwdev || !port_info) { in hinic_get_port_info() 630 port_info->autoneg_cap = port_msg.autoneg_cap; in hinic_get_port_info() 631 port_info->autoneg_state = port_msg.autoneg_state; in hinic_get_port_info() 632 port_info->duplex = port_msg.duplex; in hinic_get_port_info() 633 port_info->port_type = port_msg.port_type; in hinic_get_port_info() 634 port_info->speed = port_msg.speed; in hinic_get_port_info()
|