Lines Matching refs:eth_dev
20 static int eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params);
21 static int eth_ionic_dev_uninit(struct rte_eth_dev *eth_dev);
22 static int ionic_dev_info_get(struct rte_eth_dev *eth_dev,
31 static int ionic_dev_link_update(struct rte_eth_dev *eth_dev,
33 static int ionic_flow_ctrl_get(struct rte_eth_dev *eth_dev,
35 static int ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev,
37 static int ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask);
38 static int ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev,
40 static int ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev,
42 static int ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev,
44 static int ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev,
46 static int ionic_dev_stats_get(struct rte_eth_dev *eth_dev,
48 static int ionic_dev_stats_reset(struct rte_eth_dev *eth_dev);
59 static int ionic_dev_fw_version_get(struct rte_eth_dev *eth_dev,
216 ionic_dev_fw_version_get(struct rte_eth_dev *eth_dev, in ionic_dev_fw_version_get() argument
219 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_fw_version_get()
236 ionic_dev_set_link_up(struct rte_eth_dev *eth_dev) in ionic_dev_set_link_up() argument
238 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_up()
260 ionic_dev_set_link_down(struct rte_eth_dev *eth_dev) in ionic_dev_set_link_down() argument
262 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_down()
281 ionic_dev_link_update(struct rte_eth_dev *eth_dev, in ionic_dev_link_update() argument
284 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_link_update()
325 return rte_eth_linkstatus_set(eth_dev, &link); in ionic_dev_link_update()
353 ionic_dev_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) in ionic_dev_mtu_set() argument
355 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_mtu_set()
372 if (eth_dev->data->dev_conf.rxmode.max_rx_pkt_len < max_frame_size) in ionic_dev_mtu_set()
383 ionic_dev_info_get(struct rte_eth_dev *eth_dev, in ionic_dev_info_get() argument
386 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_info_get()
467 ionic_flow_ctrl_get(struct rte_eth_dev *eth_dev, in ionic_flow_ctrl_get() argument
470 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_get()
487 ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev, in ionic_flow_ctrl_set() argument
490 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_set()
517 ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) in ionic_vlan_offload_set() argument
519 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_vlan_offload_set()
521 rxmode = ð_dev->data->dev_conf.rxmode; in ionic_vlan_offload_set()
526 for (i = 0; i < eth_dev->data->nb_rx_queues; i++) { in ionic_vlan_offload_set()
528 eth_dev->data->rx_queues[i]; in ionic_vlan_offload_set()
533 for (i = 0; i < eth_dev->data->nb_rx_queues; i++) { in ionic_vlan_offload_set()
535 eth_dev->data->rx_queues[i]; in ionic_vlan_offload_set()
555 ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev, in ionic_dev_rss_reta_update() argument
559 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_update()
595 ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev, in ionic_dev_rss_reta_query() argument
599 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_query()
632 ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev, in ionic_dev_rss_hash_conf_get() argument
635 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_conf_get()
670 ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev, in ionic_dev_rss_hash_update() argument
673 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_update()
714 ionic_dev_stats_get(struct rte_eth_dev *eth_dev, in ionic_dev_stats_get() argument
717 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_get()
725 ionic_dev_stats_reset(struct rte_eth_dev *eth_dev) in ionic_dev_stats_reset() argument
727 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_reset()
737 ionic_dev_xstats_get_names(__rte_unused struct rte_eth_dev *eth_dev, in ionic_dev_xstats_get_names() argument
755 ionic_dev_xstats_get_names_by_id(struct rte_eth_dev *eth_dev, in ionic_dev_xstats_get_names_by_id() argument
774 ionic_dev_xstats_get_names_by_id(eth_dev, xstats_names_copy, NULL, in ionic_dev_xstats_get_names_by_id()
790 ionic_dev_xstats_get(struct rte_eth_dev *eth_dev, struct rte_eth_xstat *xstats, in ionic_dev_xstats_get() argument
793 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get()
812 ionic_dev_xstats_get_by_id(struct rte_eth_dev *eth_dev, const uint64_t *ids, in ionic_dev_xstats_get_by_id() argument
815 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get_by_id()
834 ionic_dev_xstats_get_by_id(eth_dev, NULL, values_copy, in ionic_dev_xstats_get_by_id()
850 ionic_dev_xstats_reset(struct rte_eth_dev *eth_dev) in ionic_dev_xstats_reset() argument
852 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_reset()
860 ionic_dev_configure(struct rte_eth_dev *eth_dev) in ionic_dev_configure() argument
862 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_configure()
898 ionic_dev_start(struct rte_eth_dev *eth_dev) in ionic_dev_start() argument
900 struct rte_eth_conf *dev_conf = ð_dev->data->dev_conf; in ionic_dev_start()
901 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_start()
928 if (eth_dev->data->dev_conf.link_speeds & ETH_LINK_SPEED_FIXED) { in ionic_dev_start()
935 ionic_dev_link_update(eth_dev, 0); in ionic_dev_start()
944 ionic_dev_stop(struct rte_eth_dev *eth_dev) in ionic_dev_stop() argument
946 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stop()
962 ionic_dev_close(struct rte_eth_dev *eth_dev) in ionic_dev_close() argument
964 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_close()
977 err = eth_ionic_dev_uninit(eth_dev); in ionic_dev_close()
987 eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params) in eth_ionic_dev_init() argument
989 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_ionic_dev_init()
990 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_init()
996 eth_dev->dev_ops = &ionic_eth_dev_ops; in eth_ionic_dev_init()
997 eth_dev->rx_pkt_burst = &ionic_recv_pkts; in eth_ionic_dev_init()
998 eth_dev->tx_pkt_burst = &ionic_xmit_pkts; in eth_ionic_dev_init()
999 eth_dev->tx_pkt_prepare = &ionic_prep_pkts; in eth_ionic_dev_init()
1005 rte_eth_copy_pci_info(eth_dev, pci_dev); in eth_ionic_dev_init()
1006 eth_dev->data->dev_flags |= RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS; in eth_ionic_dev_init()
1009 lif->eth_dev = eth_dev; in eth_ionic_dev_init()
1017 eth_dev->data->mac_addrs = rte_zmalloc("ionic", in eth_ionic_dev_init()
1020 if (eth_dev->data->mac_addrs == NULL) { in eth_ionic_dev_init()
1043 ð_dev->data->mac_addrs[0]); in eth_ionic_dev_init()
1045 IONIC_PRINT(DEBUG, "Port %u initialized", eth_dev->data->port_id); in eth_ionic_dev_init()
1056 eth_ionic_dev_uninit(struct rte_eth_dev *eth_dev) in eth_ionic_dev_uninit() argument
1058 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_uninit()
1283 struct rte_eth_dev *eth_dev; in eth_ionic_pci_remove() local
1291 eth_dev = rte_eth_dev_allocated(name); in eth_ionic_pci_remove()
1292 if (eth_dev) { in eth_ionic_pci_remove()
1293 lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_pci_remove()
1302 rte_eth_dev_destroy(lif->eth_dev, eth_ionic_dev_uninit); in eth_ionic_pci_remove()