Lines Matching refs:eth_dev

17 static int  eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params);
18 static int eth_ionic_dev_uninit(struct rte_eth_dev *eth_dev);
19 static int ionic_dev_info_get(struct rte_eth_dev *eth_dev,
28 static int ionic_flow_ctrl_get(struct rte_eth_dev *eth_dev,
30 static int ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev,
32 static int ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask);
33 static int ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev,
35 static int ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev,
37 static int ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev,
39 static int ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev,
41 static int ionic_dev_stats_get(struct rte_eth_dev *eth_dev,
43 static int ionic_dev_stats_reset(struct rte_eth_dev *eth_dev);
54 static int ionic_dev_fw_version_get(struct rte_eth_dev *eth_dev,
237 ionic_dev_fw_version_get(struct rte_eth_dev *eth_dev, in ionic_dev_fw_version_get() argument
240 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_fw_version_get()
260 ionic_dev_set_link_up(struct rte_eth_dev *eth_dev) in ionic_dev_set_link_up() argument
262 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_up()
271 ionic_dev_link_update(lif->eth_dev, 0); in ionic_dev_set_link_up()
280 ionic_dev_set_link_down(struct rte_eth_dev *eth_dev) in ionic_dev_set_link_down() argument
282 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_down()
288 ionic_dev_link_update(lif->eth_dev, 0); in ionic_dev_set_link_down()
294 ionic_dev_link_update(struct rte_eth_dev *eth_dev, in ionic_dev_link_update() argument
297 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_link_update()
355 return rte_eth_linkstatus_set(eth_dev, &link); in ionic_dev_link_update()
380 ionic_dev_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) in ionic_dev_mtu_set() argument
382 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_mtu_set()
399 ionic_dev_info_get(struct rte_eth_dev *eth_dev, in ionic_dev_info_get() argument
402 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_info_get()
422 eth_dev->data->dev_conf.rxmode.max_lro_pkt_size; in ionic_dev_info_get()
494 ionic_flow_ctrl_get(struct rte_eth_dev *eth_dev, in ionic_flow_ctrl_get() argument
497 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_get()
515 ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev, in ionic_flow_ctrl_set() argument
518 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_set()
550 ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) in ionic_vlan_offload_set() argument
552 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_vlan_offload_set()
562 ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev, in ionic_dev_rss_reta_update() argument
566 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_update()
603 ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev, in ionic_dev_rss_reta_query() argument
607 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_query()
642 ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev, in ionic_dev_rss_hash_conf_get() argument
645 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_conf_get()
680 ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev, in ionic_dev_rss_hash_update() argument
683 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_update()
724 ionic_dev_stats_get(struct rte_eth_dev *eth_dev, in ionic_dev_stats_get() argument
727 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_get()
735 ionic_dev_stats_reset(struct rte_eth_dev *eth_dev) in ionic_dev_stats_reset() argument
737 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_reset()
747 ionic_dev_xstats_get_names(__rte_unused struct rte_eth_dev *eth_dev, in ionic_dev_xstats_get_names() argument
765 ionic_dev_xstats_get_names_by_id(struct rte_eth_dev *eth_dev, in ionic_dev_xstats_get_names_by_id() argument
784 ionic_dev_xstats_get_names_by_id(eth_dev, NULL, xstats_names_copy, in ionic_dev_xstats_get_names_by_id()
800 ionic_dev_xstats_get(struct rte_eth_dev *eth_dev, struct rte_eth_xstat *xstats, in ionic_dev_xstats_get() argument
803 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get()
822 ionic_dev_xstats_get_by_id(struct rte_eth_dev *eth_dev, const uint64_t *ids, in ionic_dev_xstats_get_by_id() argument
825 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get_by_id()
844 ionic_dev_xstats_get_by_id(eth_dev, NULL, values_copy, in ionic_dev_xstats_get_by_id()
860 ionic_dev_xstats_reset(struct rte_eth_dev *eth_dev) in ionic_dev_xstats_reset() argument
862 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_reset()
870 ionic_dev_configure(struct rte_eth_dev *eth_dev) in ionic_dev_configure() argument
872 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_configure()
903 ionic_dev_start(struct rte_eth_dev *eth_dev) in ionic_dev_start() argument
905 struct rte_eth_conf *dev_conf = &eth_dev->data->dev_conf; in ionic_dev_start()
906 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_start()
938 lif->frame_size = eth_dev->data->mtu + IONIC_ETH_OVERHEAD; in ionic_dev_start()
940 err = ionic_lif_change_mtu(lif, eth_dev->data->mtu); in ionic_dev_start()
973 eth_dev->rx_pkt_burst = &ionic_recv_pkts_sg; in ionic_dev_start()
975 eth_dev->rx_pkt_burst = &ionic_recv_pkts; in ionic_dev_start()
978 eth_dev->tx_pkt_burst = &ionic_xmit_pkts_sg; in ionic_dev_start()
980 eth_dev->tx_pkt_burst = &ionic_xmit_pkts; in ionic_dev_start()
982 eth_dev->tx_pkt_prepare = &ionic_prep_pkts; in ionic_dev_start()
984 ionic_dev_link_update(eth_dev, 0); in ionic_dev_start()
993 ionic_dev_stop(struct rte_eth_dev *eth_dev) in ionic_dev_stop() argument
995 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stop()
1008 ionic_dev_close(struct rte_eth_dev *eth_dev) in ionic_dev_close() argument
1010 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_close()
1017 IONIC_PRINT(NOTICE, "Removing device %s", eth_dev->device->name); in ionic_dev_close()
1037 eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params) in eth_ionic_dev_init() argument
1039 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_init()
1045 eth_dev->dev_ops = &ionic_eth_dev_ops; in eth_ionic_dev_init()
1046 eth_dev->rx_descriptor_status = ionic_dev_rx_descriptor_status; in eth_ionic_dev_init()
1047 eth_dev->tx_descriptor_status = ionic_dev_tx_descriptor_status; in eth_ionic_dev_init()
1054 (*adapter->intf->copy_bus_info)(adapter, eth_dev); in eth_ionic_dev_init()
1055 eth_dev->data->dev_flags |= RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS; in eth_ionic_dev_init()
1057 lif->eth_dev = eth_dev; in eth_ionic_dev_init()
1065 eth_dev->data->mac_addrs = rte_calloc("ionic", in eth_ionic_dev_init()
1069 if (eth_dev->data->mac_addrs == NULL) { in eth_ionic_dev_init()
1092 &eth_dev->data->mac_addrs[0]); in eth_ionic_dev_init()
1094 IONIC_PRINT(DEBUG, "Port %u initialized", eth_dev->data->port_id); in eth_ionic_dev_init()
1105 eth_ionic_dev_uninit(struct rte_eth_dev *eth_dev) in eth_ionic_dev_uninit() argument
1112 if (eth_dev->state != RTE_ETH_DEV_UNUSED) in eth_ionic_dev_uninit()
1113 ionic_dev_close(eth_dev); in eth_ionic_dev_uninit()
1115 eth_dev->dev_ops = NULL; in eth_ionic_dev_uninit()
1116 eth_dev->rx_pkt_burst = NULL; in eth_ionic_dev_uninit()
1117 eth_dev->tx_pkt_burst = NULL; in eth_ionic_dev_uninit()
1118 eth_dev->tx_pkt_prepare = NULL; in eth_ionic_dev_uninit()
1272 struct rte_eth_dev *eth_dev; in eth_ionic_dev_remove() local
1278 eth_dev = rte_eth_dev_allocated(name); in eth_ionic_dev_remove()
1279 if (eth_dev) in eth_ionic_dev_remove()
1280 ret = rte_eth_dev_destroy(eth_dev, eth_ionic_dev_uninit); in eth_ionic_dev_remove()