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_flow_ctrl_get(struct rte_eth_dev *eth_dev,
33 static int ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev,
35 static int ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask);
36 static int ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev,
38 static int ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev,
40 static int ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev,
42 static int ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev,
44 static int ionic_dev_stats_get(struct rte_eth_dev *eth_dev,
46 static int ionic_dev_stats_reset(struct rte_eth_dev *eth_dev);
57 static int ionic_dev_fw_version_get(struct rte_eth_dev *eth_dev,
213 ionic_dev_fw_version_get(struct rte_eth_dev *eth_dev, in ionic_dev_fw_version_get() argument
216 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()
247 ionic_dev_link_update(lif->eth_dev, 0); in ionic_dev_set_link_up()
256 ionic_dev_set_link_down(struct rte_eth_dev *eth_dev) in ionic_dev_set_link_down() argument
258 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_down()
264 ionic_dev_link_update(lif->eth_dev, 0); in ionic_dev_set_link_down()
270 ionic_dev_link_update(struct rte_eth_dev *eth_dev, in ionic_dev_link_update() argument
273 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_link_update()
318 return rte_eth_linkstatus_set(eth_dev, &link); in ionic_dev_link_update()
343 ionic_dev_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) in ionic_dev_mtu_set() argument
345 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_mtu_set()
363 ionic_dev_info_get(struct rte_eth_dev *eth_dev, in ionic_dev_info_get() argument
366 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_info_get()
454 ionic_flow_ctrl_get(struct rte_eth_dev *eth_dev, in ionic_flow_ctrl_get() argument
457 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_get()
475 ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev, in ionic_flow_ctrl_set() argument
478 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_set()
510 ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) in ionic_vlan_offload_set() argument
512 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_vlan_offload_set()
522 ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev, in ionic_dev_rss_reta_update() argument
526 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_update()
563 ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev, in ionic_dev_rss_reta_query() argument
567 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_query()
601 ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev, in ionic_dev_rss_hash_conf_get() argument
604 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_conf_get()
639 ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev, in ionic_dev_rss_hash_update() argument
642 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_update()
683 ionic_dev_stats_get(struct rte_eth_dev *eth_dev, in ionic_dev_stats_get() argument
686 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_get()
694 ionic_dev_stats_reset(struct rte_eth_dev *eth_dev) in ionic_dev_stats_reset() argument
696 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_reset()
706 ionic_dev_xstats_get_names(__rte_unused struct rte_eth_dev *eth_dev, in ionic_dev_xstats_get_names() argument
724 ionic_dev_xstats_get_names_by_id(struct rte_eth_dev *eth_dev, in ionic_dev_xstats_get_names_by_id() argument
743 ionic_dev_xstats_get_names_by_id(eth_dev, NULL, xstats_names_copy, in ionic_dev_xstats_get_names_by_id()
759 ionic_dev_xstats_get(struct rte_eth_dev *eth_dev, struct rte_eth_xstat *xstats, in ionic_dev_xstats_get() argument
762 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get()
781 ionic_dev_xstats_get_by_id(struct rte_eth_dev *eth_dev, const uint64_t *ids, in ionic_dev_xstats_get_by_id() argument
784 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get_by_id()
803 ionic_dev_xstats_get_by_id(eth_dev, NULL, values_copy, in ionic_dev_xstats_get_by_id()
819 ionic_dev_xstats_reset(struct rte_eth_dev *eth_dev) in ionic_dev_xstats_reset() argument
821 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_reset()
829 ionic_dev_configure(struct rte_eth_dev *eth_dev) in ionic_dev_configure() argument
831 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_configure()
864 ionic_dev_start(struct rte_eth_dev *eth_dev) in ionic_dev_start() argument
866 struct rte_eth_conf *dev_conf = ð_dev->data->dev_conf; in ionic_dev_start()
867 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_start()
917 ionic_dev_link_update(eth_dev, 0); in ionic_dev_start()
926 ionic_dev_stop(struct rte_eth_dev *eth_dev) in ionic_dev_stop() argument
928 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stop()
943 ionic_dev_close(struct rte_eth_dev *eth_dev) in ionic_dev_close() argument
945 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_close()
956 IONIC_PRINT(NOTICE, "Removing device %s", eth_dev->device->name); in ionic_dev_close()
959 rte_eth_dev_destroy(eth_dev, eth_ionic_dev_uninit); in ionic_dev_close()
970 eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params) in eth_ionic_dev_init() argument
972 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_ionic_dev_init()
973 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_init()
979 eth_dev->dev_ops = &ionic_eth_dev_ops; in eth_ionic_dev_init()
980 eth_dev->rx_pkt_burst = &ionic_recv_pkts; in eth_ionic_dev_init()
981 eth_dev->tx_pkt_burst = &ionic_xmit_pkts; in eth_ionic_dev_init()
982 eth_dev->tx_pkt_prepare = &ionic_prep_pkts; in eth_ionic_dev_init()
988 rte_eth_copy_pci_info(eth_dev, pci_dev); in eth_ionic_dev_init()
989 eth_dev->data->dev_flags |= RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS; in eth_ionic_dev_init()
991 lif->eth_dev = eth_dev; in eth_ionic_dev_init()
999 eth_dev->data->mac_addrs = rte_zmalloc("ionic", in eth_ionic_dev_init()
1002 if (eth_dev->data->mac_addrs == NULL) { in eth_ionic_dev_init()
1025 ð_dev->data->mac_addrs[0]); in eth_ionic_dev_init()
1027 IONIC_PRINT(DEBUG, "Port %u initialized", eth_dev->data->port_id); in eth_ionic_dev_init()
1038 eth_ionic_dev_uninit(struct rte_eth_dev *eth_dev) in eth_ionic_dev_uninit() argument
1040 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_uninit()
1258 struct rte_eth_dev *eth_dev; in eth_ionic_pci_remove() local
1263 eth_dev = rte_eth_dev_allocated(name); in eth_ionic_pci_remove()
1264 if (eth_dev) in eth_ionic_pci_remove()
1265 ionic_dev_close(eth_dev); in eth_ionic_pci_remove()