Home
last modified time | relevance | path

Searched refs:port_info (Results 1 – 25 of 40) sorted by relevance

12

/f-stack/dpdk/drivers/net/cxgbe/
H A Dcxgbe.h88 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 Dcxgbe_ethdev.c117 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 Dmps_tcam.h48 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 Dcxgbevf_ethdev.c39 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 Dmps_tcam.c61 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 Dcxgbe_main.c202 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 Dcxgbevf_main.c63 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 Drte_eth_softnic_link.c57 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 Dlink.c102 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 Dice_dcf_parent.c183 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 Dice_ethdev.c1677 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 Dopae_ifpga_hw_api.c94 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 Dopae_ifpga_hw_api.h258 struct fpga_port_info *port_info);
/f-stack/dpdk/examples/multi_process/client_server_mp/mp_server/
H A Dinit.h34 extern struct port_info *ports;
39 extern struct port_info *ports;
H A Dinit.c55 struct port_info *ports;
/f-stack/dpdk/examples/pipeline/
H A Dobj.c167 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 Dadapter.h32 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 Dionic_main.c382 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 Dssovf_worker.h93 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 Dcommon.h30 struct port_info { struct
/f-stack/dpdk/examples/multi_process/client_server_mp/mp_client/
H A Dclient.c162 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 Drte_eth_szedata2.c66 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 Dice_common.c126 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 Dhinic_pmd_hwdev.c1327 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 Dhinic_pmd_niccfg.c605 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()

12