Lines Matching refs:lif

216 	struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev);  in ionic_dev_fw_version_get()  local
217 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_fw_version_get()
238 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_up() local
243 err = ionic_lif_start(lif); in ionic_dev_set_link_up()
247 ionic_dev_link_update(lif->eth_dev, 0); in ionic_dev_set_link_up()
258 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_set_link_down() local
262 ionic_lif_stop(lif); in ionic_dev_set_link_down()
264 ionic_dev_link_update(lif->eth_dev, 0); in ionic_dev_set_link_down()
273 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_link_update() local
274 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_link_update()
287 !(lif->state & IONIC_LIF_F_UP)) { in ionic_dev_link_update()
338 if (adapter->lif) in ionic_dev_interrupt_handler()
339 ionic_notifyq_handler(adapter->lif, -1); in ionic_dev_interrupt_handler()
345 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_mtu_set() local
355 err = ionic_lif_change_mtu(lif, mtu); in ionic_dev_mtu_set()
366 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_info_get() local
367 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_info_get()
369 union ionic_lif_config *cfg = &ident->lif.eth.config; in ionic_dev_info_get()
386 dev_info->reta_size = rte_le_to_cpu_16(ident->lif.eth.rss_ind_tbl_sz); in ionic_dev_info_get()
457 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_get() local
458 struct ionic_adapter *adapter = lif->adapter; in ionic_flow_ctrl_get()
478 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_flow_ctrl_set() local
479 struct ionic_adapter *adapter = lif->adapter; in ionic_flow_ctrl_set()
512 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_vlan_offload_set() local
514 ionic_lif_configure_vlan_offload(lif, mask); in ionic_vlan_offload_set()
516 ionic_lif_set_features(lif); in ionic_vlan_offload_set()
526 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_update() local
527 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_rss_reta_update()
530 uint16_t tbl_sz = rte_le_to_cpu_16(ident->lif.eth.rss_ind_tbl_sz); in ionic_dev_rss_reta_update()
534 if (!lif->rss_ind_tbl) { in ionic_dev_rss_reta_update()
554 lif->rss_ind_tbl[index] = reta_conf[i].reta[j]; in ionic_dev_rss_reta_update()
559 return ionic_lif_rss_config(lif, lif->rss_types, NULL, NULL); in ionic_dev_rss_reta_update()
567 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_reta_query() local
568 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_rss_reta_query()
571 uint16_t tbl_sz = rte_le_to_cpu_16(ident->lif.eth.rss_ind_tbl_sz); in ionic_dev_rss_reta_query()
583 if (!lif->rss_ind_tbl) { in ionic_dev_rss_reta_query()
592 &lif->rss_ind_tbl[i * RTE_ETH_RETA_GROUP_SIZE], in ionic_dev_rss_reta_query()
604 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_conf_get() local
609 if (!lif->rss_ind_tbl) { in ionic_dev_rss_hash_conf_get()
617 memcpy(rss_conf->rss_key, lif->rss_hash_key, in ionic_dev_rss_hash_conf_get()
620 if (lif->rss_types & IONIC_RSS_TYPE_IPV4) in ionic_dev_rss_hash_conf_get()
622 if (lif->rss_types & IONIC_RSS_TYPE_IPV4_TCP) in ionic_dev_rss_hash_conf_get()
624 if (lif->rss_types & IONIC_RSS_TYPE_IPV4_UDP) in ionic_dev_rss_hash_conf_get()
626 if (lif->rss_types & IONIC_RSS_TYPE_IPV6) in ionic_dev_rss_hash_conf_get()
628 if (lif->rss_types & IONIC_RSS_TYPE_IPV6_TCP) in ionic_dev_rss_hash_conf_get()
630 if (lif->rss_types & IONIC_RSS_TYPE_IPV6_UDP) in ionic_dev_rss_hash_conf_get()
642 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rss_hash_update() local
656 if (lif->rss_ind_tbl) in ionic_dev_rss_hash_update()
660 if (!lif->rss_ind_tbl) in ionic_dev_rss_hash_update()
676 ionic_lif_rss_config(lif, rss_types, key, NULL); in ionic_dev_rss_hash_update()
686 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_get() local
688 ionic_lif_get_stats(lif, stats); in ionic_dev_stats_get()
696 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stats_reset() local
700 ionic_lif_reset_stats(lif); in ionic_dev_stats_reset()
762 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get() local
769 ionic_lif_get_hw_stats(lif, &hw_stats); in ionic_dev_xstats_get()
784 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_get_by_id() local
793 ionic_lif_get_hw_stats(lif, &hw_stats); in ionic_dev_xstats_get_by_id()
821 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_xstats_reset() local
823 ionic_lif_reset_hw_stats(lif); in ionic_dev_xstats_reset()
831 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_configure() local
835 ionic_lif_configure(lif); in ionic_dev_configure()
837 ionic_lif_set_features(lif); in ionic_dev_configure()
867 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_start() local
868 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_start()
892 err = ionic_lif_start(lif); in ionic_dev_start()
928 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_stop() local
932 ionic_lif_stop(lif); in ionic_dev_stop()
945 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_close() local
946 struct ionic_adapter *adapter = lif->adapter; in ionic_dev_close()
952 ionic_lif_stop(lif); in ionic_dev_close()
954 ionic_lif_free_queues(lif); in ionic_dev_close()
973 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_init() local
991 lif->eth_dev = eth_dev; in eth_ionic_dev_init()
992 lif->adapter = adapter; in eth_ionic_dev_init()
993 adapter->lif = lif; in eth_ionic_dev_init()
1010 err = ionic_lif_alloc(lif); in eth_ionic_dev_init()
1017 err = ionic_lif_init(lif); in eth_ionic_dev_init()
1024 rte_ether_addr_copy((struct rte_ether_addr *)lif->mac_addr, in eth_ionic_dev_init()
1032 ionic_lif_free(lif); in eth_ionic_dev_init()
1040 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in eth_ionic_dev_uninit() local
1041 struct ionic_adapter *adapter = lif->adapter; in eth_ionic_dev_uninit()
1048 adapter->lif = NULL; in eth_ionic_dev_uninit()
1050 ionic_lif_deinit(lif); in eth_ionic_dev_uninit()
1051 ionic_lif_free(lif); in eth_ionic_dev_uninit()
1053 if (!(lif->state & IONIC_LIF_F_FW_RESET)) in eth_ionic_dev_uninit()
1054 ionic_lif_reset(lif); in eth_ionic_dev_uninit()
1222 rte_le_to_cpu_32(adapter->ident.lif.eth.max_ucast_filters); in eth_ionic_pci_probe()