| /dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe.h | 91 void cxgbe_get_speed_caps(struct port_info *pi, u32 *speed_caps); 92 int cxgbe_set_link_status(struct port_info *pi, bool status); 94 int cxgbe_down(struct port_info *pi); 96 void cxgbe_stats_get(struct port_info *pi, struct port_stats *stats); 97 void cxgbevf_stats_get(struct port_info *pi, struct port_stats *stats); 98 void cxgbe_stats_reset(struct port_info *pi); 101 int cxgbe_link_start(struct port_info *pi); 108 int cxgbe_setup_rss(struct port_info *pi); 109 void cxgbe_enable_rx_queues(struct port_info *pi);
|
| H A D | mps_tcam.h | 49 int cxgbe_mpstcam_alloc(struct port_info *pi, const u8 *mac, const u8 *mask); 50 int cxgbe_mpstcam_remove(struct port_info *pi, u16 idx); 51 int cxgbe_mpstcam_modify(struct port_info *pi, int idx, const u8 *addr); 52 int cxgbe_mpstcam_rawf_enable(struct port_info *pi); 53 int cxgbe_mpstcam_rawf_disable(struct port_info *pi);
|
| H A D | cxgbe_ethdev.c | 116 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_info_get() 249 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_set_link_up() 278 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_set_link_down() 553 struct port_info *pi = (struct port_info *) in cxgbe_dev_tx_queue_release() 682 struct port_info *pi = (struct port_info *) in cxgbe_dev_rx_queue_release() 894 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_xstats() 979 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_xstats_get_by_id() 1015 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_xstats_get_names_by_id() 1153 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_rss_hash_update() 1183 struct port_info *pi = dev->data->dev_private; in cxgbe_dev_rss_hash_conf_get() [all …]
|
| H A D | mps_tcam.c | 62 int cxgbe_mpstcam_alloc(struct port_info *pi, const u8 *eth_addr, in cxgbe_mpstcam_alloc() 111 int cxgbe_mpstcam_modify(struct port_info *pi, int idx, const u8 *addr) in cxgbe_mpstcam_modify() 177 int cxgbe_mpstcam_remove(struct port_info *pi, u16 idx) in cxgbe_mpstcam_remove() 210 int cxgbe_mpstcam_rawf_enable(struct port_info *pi) in cxgbe_mpstcam_rawf_enable() 241 int cxgbe_mpstcam_rawf_disable(struct port_info *pi) in cxgbe_mpstcam_rawf_disable()
|
| H A D | cxgbevf_ethdev.c | 39 struct port_info *pi = eth_dev->data->dev_private; in cxgbevf_dev_stats_get() 104 struct port_info *pi = eth_dev->data->dev_private; in eth_cxgbevf_dev_init() 193 return rte_eth_dev_pci_generic_probe(pci_dev, sizeof(struct port_info), in eth_cxgbevf_pci_probe()
|
| H A D | cxgbe_main.c | 201 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() 644 void cxgbe_stats_reset(struct port_info *pi) in cxgbe_stats_reset() 684 struct port_info *pi = adap2pinfo(adap, i); in cxgbe_init_rss() 713 const struct port_info *pi = adap2pinfo(adap, i); in cxgbe_print_port_info() 1616 struct port_info *pi = adap2pinfo(adap, port_id); in t4_os_link_changed() 1655 int cxgbe_link_start(struct port_info *pi) in cxgbe_link_start() 1802 int cxgbe_setup_rss(struct port_info *pi) in cxgbe_setup_rss() 1841 void cxgbe_enable_rx_queues(struct port_info *pi) in cxgbe_enable_rx_queues() 2009 int cxgbe_down(struct port_info *pi) in cxgbe_down() [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()
|
| /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 > RTE_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()
|
| /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()
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_dcf_parent.c | 288 ret = ice_aq_query_port_ets(parent_hw->port_info, in ice_dcf_query_port_ets() 315 hw->port_info = (struct ice_port_info *) in ice_dcf_init_parent_hw() 316 ice_malloc(hw, sizeof(*hw->port_info)); in ice_dcf_init_parent_hw() 317 if (!hw->port_info) in ice_dcf_init_parent_hw() 321 hw->port_info->hw = hw; in ice_dcf_init_parent_hw() 336 status = ice_aq_get_phy_caps(hw->port_info, false, in ice_dcf_init_parent_hw() 343 status = ice_aq_get_link_info(hw->port_info, true, NULL, NULL); in ice_dcf_init_parent_hw() 366 ice_free(hw, hw->port_info); in ice_dcf_init_parent_hw() 367 hw->port_info = NULL; in ice_dcf_init_parent_hw() 380 ice_free(hw, hw->port_info); in ice_dcf_uninit_parent_hw() [all …]
|
| H A D | ice_ethdev.c | 1643 hw->port_info->mac.perm_addr, in ice_setup_vsi() 2505 rte_free(hw->port_info); in ice_dev_close() 2506 hw->port_info = NULL; in ice_dev_close() 3954 if (!hw || !hw->port_info) in ice_force_phys_link_state() 3957 pi = hw->port_info; in ice_force_phys_link_state() 4227 vsi->info.sw_id = hw->port_info->sw_id; in ice_vsi_config_vlan_filter() 5258 GLPRT_GORCL(hw->port_info->lport), in ice_read_stats_registers() 5262 GLPRT_UPRCL(hw->port_info->lport), in ice_read_stats_registers() 5266 GLPRT_MPRCL(hw->port_info->lport), in ice_read_stats_registers() 5775 lport = hw->port_info->lport; in ice_timesync_read_tx_timestamp() [all …]
|
| /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()
|
| /dpdk/drivers/net/cxgbe/base/ |
| H A D | adapter.h | 32 struct port_info { struct 315 struct port_info *port[MAX_NPORTS];/* ports belonging to this adapter */ 383 static inline struct port_info *ethdev2pinfo(const struct rte_eth_dev *dev) in ethdev2pinfo() 395 static inline struct port_info *adap2pinfo(const struct adapter *adap, int idx) in adap2pinfo() 671 struct port_info *pi = adap2pinfo(adapter, port_idx); in t4_os_set_hw_addr() 822 void t4_sge_eth_clear_queues(struct port_info *pi); 823 void t4_sge_eth_release_queues(struct port_info *pi); 828 int cxgbe_write_rss(const struct port_info *pi, const u16 *queues); 829 int cxgbe_write_rss_conf(const struct port_info *pi, uint64_t flags);
|
| H A D | common.h | 320 int t4_link_l1cfg_core(struct port_info *pi, u32 caps, u8 sleep_ok); 321 static inline int t4_link_l1cfg(struct port_info *pi, u32 caps) in t4_link_l1cfg() 326 static inline int t4_link_l1cfg_ns(struct port_info *pi, u32 caps) in t4_link_l1cfg_ns() 331 int t4_set_link_speed(struct port_info *pi, u32 speed, u32 *new_caps); 332 int t4_set_link_pause(struct port_info *pi, u8 autoneg, u8 pause_tx, 334 int t4_set_link_fec(struct port_info *pi, u8 fec_rs, u8 fec_baser, 491 void t4_init_link_config(struct port_info *pi, u32 pcaps, u32 acaps,
|
| H A D | t4_hw.c | 2803 int t4_link_l1cfg_core(struct port_info *pi, u32 caps, u8 sleep_ok) in t4_link_l1cfg_core() 4333 static void t4_set_link_autoneg_speed(struct port_info *pi, u32 *new_caps) in t4_set_link_autoneg_speed() 4344 int t4_set_link_speed(struct port_info *pi, u32 speed, u32 *new_caps) in t4_set_link_speed() 4361 int t4_set_link_pause(struct port_info *pi, u8 autoneg, u8 pause_tx, in t4_set_link_pause() 4411 int t4_set_link_fec(struct port_info *pi, u8 fec_rs, u8 fec_baser, in t4_set_link_fec() 4488 static void t4_handle_get_port_info(struct port_info *pi, const __be64 *rpl) in t4_handle_get_port_info() 4597 struct port_info *pi = NULL; in t4_handle_fw_rpl() 4616 struct port_info *pi = adap2pinfo(adap, idx); in t4_reset_link_config() 4636 void t4_init_link_config(struct port_info *pi, u32 pcaps, u32 acaps, in t4_init_link_config() 5302 struct port_info *p = adap2pinfo(adap, i); in t4_init_rss_mode() [all …]
|
| /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;
|
| /dpdk/examples/pipeline/ |
| H A D | obj.c | 184 struct rte_eth_dev_info port_info; in link_create() local 214 if (rte_eth_dev_info_get(port_id, &port_info) != 0) in link_create() 223 if ((port_info.reta_size == 0) || in link_create() 224 (port_info.reta_size > RTE_ETH_RSS_RETA_SIZE_512)) in link_create() 232 if (rss->queue_id[i] >= port_info.max_rx_queues) in link_create() 245 port_info.flow_type_rss_offloads; in link_create() 300 status = rss_setup(port_id, port_info.reta_size, rss); in link_create()
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_main.c | 456 if (idev->port_info) in ionic_port_init() 459 idev->port_info_sz = RTE_ALIGN(sizeof(*idev->port_info), in ionic_port_init() 472 idev->port_info = idev->port_info_z->addr; in ionic_port_init() 480 idev->port_info->config.state = IONIC_PORT_ADMIN_STATE_UP; in ionic_port_init() 495 if (!idev->port_info) in ionic_port_reset() 505 idev->port_info = NULL; in ionic_port_reset()
|
| /dpdk/drivers/event/octeontx/ |
| H A D | ssovf_worker.h | 99 ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_info, in ssovf_octeontx_wqe_to_pkt() argument 136 mbuf->port = rte_octeontx_pchan_map[port_info >> 4][port_info & 0xF]; in ssovf_octeontx_wqe_to_pkt()
|
| /dpdk/examples/multi_process/client_server_mp/mp_client/ |
| H A D | client.c | 161 configure_output_ports(const struct port_info *ports) in configure_output_ports() 208 struct port_info *ports; in main()
|
| /dpdk/examples/multi_process/client_server_mp/shared/ |
| H A D | common.h | 30 struct port_info { struct
|
| /dpdk/drivers/net/ice/base/ |
| H A D | ice_vlan_mode.c | 333 status = ice_aq_set_port_params(hw->port_info, 0, false, false, true, in ice_set_dvm() 360 status = ice_aq_set_port_params(hw->port_info, 0, false, false, false, NULL); in ice_set_svm()
|
| H A D | ice_common.c | 298 ice_memcpy(hw->port_info->mac.lan_addr, in ice_aq_manage_mac_read() 301 ice_memcpy(hw->port_info->mac.perm_addr, in ice_aq_manage_mac_read() 950 hw->port_info = (struct ice_port_info *) in ice_init_hw() 951 ice_malloc(hw, sizeof(*hw->port_info)); in ice_init_hw() 952 if (!hw->port_info) { in ice_init_hw() 958 hw->port_info->hw = hw; in ice_init_hw() 1049 ice_free(hw, hw->port_info); in ice_init_hw() 1050 hw->port_info = NULL; in ice_init_hw() 1075 if (hw->port_info) { in ice_deinit_hw() 1076 ice_free(hw, hw->port_info); in ice_deinit_hw() [all …]
|
| /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()
|