Lines Matching defs:vsi

348 	struct i40e_vsi *vsi = np->vsi;  in i40e_tx_timeout()  local
425 struct rtnl_link_stats64 *i40e_get_vsi_stats_struct(struct i40e_vsi *vsi) in i40e_get_vsi_stats_struct()
463 struct i40e_vsi *vsi = np->vsi; in i40e_get_netdev_stats_struct() local
520 void i40e_vsi_reset_stats(struct i40e_vsi *vsi) in i40e_vsi_reset_stats()
581 static u32 i40e_compute_pci_to_hw_id(struct i40e_vsi *vsi, struct i40e_hw *hw) in i40e_compute_pci_to_hw_id()
698 i40e_stats_update_rx_discards(struct i40e_vsi *vsi, struct i40e_hw *hw, in i40e_stats_update_rx_discards()
720 void i40e_update_eth_stats(struct i40e_vsi *vsi) in i40e_update_eth_stats()
871 static void i40e_update_vsi_stats(struct i40e_vsi *vsi) in i40e_update_vsi_stats()
1243 void i40e_update_stats(struct i40e_vsi *vsi) in i40e_update_stats()
1259 int i40e_count_filters(struct i40e_vsi *vsi) in i40e_count_filters()
1284 static struct i40e_mac_filter *i40e_find_filter(struct i40e_vsi *vsi, in i40e_find_filter()
1310 struct i40e_mac_filter *i40e_find_mac(struct i40e_vsi *vsi, const u8 *macaddr) in i40e_find_mac()
1332 bool i40e_is_vsi_in_vlan(struct i40e_vsi *vsi) in i40e_is_vsi_in_vlan()
1390 static int i40e_correct_mac_vlan_filters(struct i40e_vsi *vsi, in i40e_correct_mac_vlan_filters()
1487 static s16 i40e_get_vf_new_vlan(struct i40e_vsi *vsi, in i40e_get_vf_new_vlan()
1537 static int i40e_correct_vf_mac_vlan_filters(struct i40e_vsi *vsi, in i40e_correct_vf_mac_vlan_filters()
1591 static void i40e_rm_default_mac_filter(struct i40e_vsi *vsi, u8 *macaddr) in i40e_rm_default_mac_filter()
1627 struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi, in i40e_add_filter()
1689 void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f) in __i40e_del_filter()
1722 void i40e_del_filter(struct i40e_vsi *vsi, const u8 *macaddr, s16 vlan) in i40e_del_filter()
1745 struct i40e_mac_filter *i40e_add_mac_filter(struct i40e_vsi *vsi, in i40e_add_mac_filter()
1781 int i40e_del_mac_filter(struct i40e_vsi *vsi, const u8 *macaddr) in i40e_del_mac_filter()
1812 struct i40e_vsi *vsi = np->vsi; in i40e_set_mac() local
1867 static int i40e_config_rss_aq(struct i40e_vsi *vsi, const u8 *seed, in i40e_config_rss_aq()
1905 static int i40e_vsi_config_rss(struct i40e_vsi *vsi) in i40e_vsi_config_rss()
1947 static int i40e_vsi_setup_queue_map_mqprio(struct i40e_vsi *vsi, in i40e_vsi_setup_queue_map_mqprio()
2035 static void i40e_vsi_setup_queue_map(struct i40e_vsi *vsi, in i40e_vsi_setup_queue_map()
2194 struct i40e_vsi *vsi = np->vsi; in i40e_addr_sync() local
2213 struct i40e_vsi *vsi = np->vsi; in i40e_addr_unsync() local
2235 struct i40e_vsi *vsi = np->vsi; in i40e_set_rx_mode() local
2259 static void i40e_undo_del_filter_entries(struct i40e_vsi *vsi, in i40e_undo_del_filter_entries()
2282 static void i40e_undo_add_filter_entries(struct i40e_vsi *vsi, in i40e_undo_add_filter_entries()
2369 void i40e_aqc_del_filters(struct i40e_vsi *vsi, const char *vsi_name, in i40e_aqc_del_filters()
2403 void i40e_aqc_add_filters(struct i40e_vsi *vsi, const char *vsi_name, in i40e_aqc_add_filters()
2450 i40e_aqc_broadcast_filter(struct i40e_vsi *vsi, const char *vsi_name, in i40e_aqc_broadcast_filter()
2493 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_set_promiscuous() local
2557 int i40e_sync_vsi_filters(struct i40e_vsi *vsi) in i40e_sync_vsi_filters()
2930 static u16 i40e_calculate_vsi_rx_buf_len(struct i40e_vsi *vsi) in i40e_calculate_vsi_rx_buf_len()
2943 static int i40e_max_vsi_frame_size(struct i40e_vsi *vsi, in i40e_max_vsi_frame_size()
2967 struct i40e_vsi *vsi = np->vsi; in i40e_change_mtu() local
3013 void i40e_vlan_stripping_enable(struct i40e_vsi *vsi) in i40e_vlan_stripping_enable()
3047 void i40e_vlan_stripping_disable(struct i40e_vsi *vsi) in i40e_vlan_stripping_disable()
3091 int i40e_add_vlan_all_mac(struct i40e_vsi *vsi, s16 vid) in i40e_add_vlan_all_mac()
3130 int i40e_vsi_add_vlan(struct i40e_vsi *vsi, u16 vid) in i40e_vsi_add_vlan()
3175 void i40e_rm_vlan_all_mac(struct i40e_vsi *vsi, s16 vid) in i40e_rm_vlan_all_mac()
3192 void i40e_vsi_kill_vlan(struct i40e_vsi *vsi, u16 vid) in i40e_vsi_kill_vlan()
3219 struct i40e_vsi *vsi = np->vsi; in i40e_vlan_rx_add_vid() local
3242 struct i40e_vsi *vsi = np->vsi; in i40e_vlan_rx_add_vid_up() local
3261 struct i40e_vsi *vsi = np->vsi; in i40e_vlan_rx_kill_vid() local
3278 static void i40e_restore_vlan(struct i40e_vsi *vsi) in i40e_restore_vlan()
3300 int i40e_vsi_add_pvid(struct i40e_vsi *vsi, u16 vid) in i40e_vsi_add_pvid()
3332 void i40e_vsi_remove_pvid(struct i40e_vsi *vsi) in i40e_vsi_remove_pvid()
3349 static int i40e_vsi_setup_tx_resources(struct i40e_vsi *vsi) in i40e_vsi_setup_tx_resources()
3371 static void i40e_vsi_free_tx_resources(struct i40e_vsi *vsi) in i40e_vsi_free_tx_resources()
3398 static int i40e_vsi_setup_rx_resources(struct i40e_vsi *vsi) in i40e_vsi_setup_rx_resources()
3413 static void i40e_vsi_free_rx_resources(struct i40e_vsi *vsi) in i40e_vsi_free_rx_resources()
3476 struct i40e_vsi *vsi = ring->vsi; in i40e_configure_tx_ring() local
3600 struct i40e_vsi *vsi = ring->vsi; in i40e_configure_rx_ring() local
3745 static int i40e_vsi_configure_tx(struct i40e_vsi *vsi) in i40e_vsi_configure_tx()
3768 static int i40e_vsi_configure_rx(struct i40e_vsi *vsi) in i40e_vsi_configure_rx()
3795 static void i40e_vsi_config_dcb_rings(struct i40e_vsi *vsi) in i40e_vsi_config_dcb_rings()
3831 static void i40e_set_vsi_rx_mode(struct i40e_vsi *vsi) in i40e_set_vsi_rx_mode()
3862 static void i40e_fdir_filter_restore(struct i40e_vsi *vsi) in i40e_fdir_filter_restore()
3884 static int i40e_vsi_configure(struct i40e_vsi *vsi) in i40e_vsi_configure()
3902 static void i40e_vsi_configure_msix(struct i40e_vsi *vsi) in i40e_vsi_configure_msix()
4032 static void i40e_configure_msi_and_legacy(struct i40e_vsi *vsi) in i40e_configure_msi_and_legacy()
4152 static int i40e_vsi_request_irq_msix(struct i40e_vsi *vsi, char *basename) in i40e_vsi_request_irq_msix()
4226 static void i40e_vsi_disable_irq(struct i40e_vsi *vsi) in i40e_vsi_disable_irq()
4272 static int i40e_vsi_enable_irq(struct i40e_vsi *vsi) in i40e_vsi_enable_irq()
4342 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_intr() local
4456 struct i40e_vsi *vsi = tx_ring->vsi; in i40e_clean_fdir_tx_irq() local
4540 struct i40e_vsi *vsi; in i40e_fdir_clean_ring() local
4557 static void i40e_map_vector_to_qp(struct i40e_vsi *vsi, int v_idx, int qp_idx) in i40e_map_vector_to_qp()
4593 static void i40e_vsi_map_rings_to_vectors(struct i40e_vsi *vsi) in i40e_vsi_map_rings_to_vectors()
4634 static int i40e_vsi_request_irq(struct i40e_vsi *vsi, char *basename) in i40e_vsi_request_irq()
4665 struct i40e_vsi *vsi = np->vsi; in i40e_netpoll() local
4788 static int i40e_vsi_enable_tx(struct i40e_vsi *vsi) in i40e_vsi_enable_tx()
4907 static int i40e_vsi_enable_rx(struct i40e_vsi *vsi) in i40e_vsi_enable_rx()
4930 int i40e_vsi_start_rings(struct i40e_vsi *vsi) in i40e_vsi_start_rings()
4949 void i40e_vsi_stop_rings(struct i40e_vsi *vsi) in i40e_vsi_stop_rings()
4989 void i40e_vsi_stop_rings_no_wait(struct i40e_vsi *vsi) in i40e_vsi_stop_rings_no_wait()
5005 static void i40e_vsi_free_irq(struct i40e_vsi *vsi) in i40e_vsi_free_irq()
5129 static void i40e_free_q_vector(struct i40e_vsi *vsi, int v_idx) in i40e_free_q_vector()
5160 static void i40e_vsi_free_q_vectors(struct i40e_vsi *vsi) in i40e_vsi_free_q_vectors()
5215 static void i40e_napi_enable_all(struct i40e_vsi *vsi) in i40e_napi_enable_all()
5234 static void i40e_napi_disable_all(struct i40e_vsi *vsi) in i40e_napi_disable_all()
5253 static void i40e_vsi_close(struct i40e_vsi *vsi) in i40e_vsi_close()
5271 static void i40e_quiesce_vsi(struct i40e_vsi *vsi) in i40e_quiesce_vsi()
5287 static void i40e_unquiesce_vsi(struct i40e_vsi *vsi) in i40e_unquiesce_vsi()
5332 int i40e_vsi_wait_queues_disabled(struct i40e_vsi *vsi) in i40e_vsi_wait_queues_disabled()
5498 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_mqprio_get_enabled_tc() local
5578 static int i40e_vsi_get_bw_info(struct i40e_vsi *vsi) in i40e_vsi_get_bw_info()
5640 static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc, in i40e_vsi_configure_bw_alloc()
5684 static void i40e_vsi_config_netdev_tc(struct i40e_vsi *vsi, u8 enabled_tc) in i40e_vsi_config_netdev_tc()
5739 static void i40e_vsi_update_queue_map(struct i40e_vsi *vsi, in i40e_vsi_update_queue_map()
5758 int i40e_update_adq_vsi_queues(struct i40e_vsi *vsi, int vsi_offset) in i40e_update_adq_vsi_queues()
5818 static int i40e_vsi_config_tc(struct i40e_vsi *vsi, u8 enabled_tc) in i40e_vsi_config_tc()
5946 static int i40e_get_link_speed(struct i40e_vsi *vsi) in i40e_get_link_speed()
5973 static u64 i40e_bw_bytes_to_mbits(struct i40e_vsi *vsi, u64 max_tx_rate) in i40e_bw_bytes_to_mbits()
5994 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate) in i40e_set_bw_limit()
6033 static void i40e_remove_queue_channels(struct i40e_vsi *vsi) in i40e_remove_queue_channels()
6122 static int i40e_get_max_queues_for_channel(struct i40e_vsi *vsi) in i40e_get_max_queues_for_channel()
6149 struct i40e_vsi *vsi, bool *reconfig_rss) in i40e_validate_num_queues()
6198 static int i40e_vsi_reconfig_rss(struct i40e_vsi *vsi, u16 rss_size) in i40e_vsi_reconfig_rss()
6359 static int i40e_channel_config_bw(struct i40e_vsi *vsi, struct i40e_channel *ch, in i40e_channel_config_bw()
6396 struct i40e_vsi *vsi, in i40e_channel_config_tx_ring()
6450 struct i40e_vsi *vsi, in i40e_setup_hw_channel()
6500 static bool i40e_setup_channel(struct i40e_pf *pf, struct i40e_vsi *vsi, in i40e_setup_channel()
6535 static int i40e_validate_and_set_switch_mode(struct i40e_vsi *vsi) in i40e_validate_and_set_switch_mode()
6593 int i40e_create_queue_channel(struct i40e_vsi *vsi, in i40e_create_queue_channel()
6696 static int i40e_configure_queue_channels(struct i40e_vsi *vsi) in i40e_configure_queue_channels()
7271 void i40e_print_link_message(struct i40e_vsi *vsi, bool isup) in i40e_print_link_message()
7408 static int i40e_up_complete(struct i40e_vsi *vsi) in i40e_up_complete()
7458 static void i40e_vsi_reinit_locked(struct i40e_vsi *vsi) in i40e_vsi_reinit_locked()
7578 int i40e_up(struct i40e_vsi *vsi) in i40e_up()
7598 void i40e_down(struct i40e_vsi *vsi) in i40e_down()
7636 static int i40e_validate_mqprio_qopt(struct i40e_vsi *vsi, in i40e_validate_mqprio_qopt()
7683 static void i40e_vsi_set_default_tc_config(struct i40e_vsi *vsi) in i40e_vsi_set_default_tc_config()
7766 static void i40e_reset_ch_rings(struct i40e_vsi *vsi, struct i40e_channel *ch) in i40e_reset_ch_rings()
7789 static void i40e_free_macvlan_channels(struct i40e_vsi *vsi) in i40e_free_macvlan_channels()
7834 static int i40e_fwd_ring_up(struct i40e_vsi *vsi, struct net_device *vdev, in i40e_fwd_ring_up()
7909 static int i40e_setup_macvlans(struct i40e_vsi *vsi, u16 macvlan_cnt, u16 qcnt, in i40e_setup_macvlans()
8014 struct i40e_vsi *vsi = np->vsi; in i40e_fwd_add() local
8120 static void i40e_del_all_macvlans(struct i40e_vsi *vsi) in i40e_del_all_macvlans()
8159 struct i40e_vsi *vsi = np->vsi; in i40e_fwd_del() local
8200 struct i40e_vsi *vsi = np->vsi; in i40e_setup_tc() local
8394 int i40e_add_del_cloud_filter(struct i40e_vsi *vsi, in i40e_add_del_cloud_filter()
8463 int i40e_add_del_cloud_filter_big_buf(struct i40e_vsi *vsi, in i40e_add_del_cloud_filter_big_buf()
8571 static int i40e_parse_cls_flower(struct i40e_vsi *vsi, in i40e_parse_cls_flower()
8778 static int i40e_handle_tclass(struct i40e_vsi *vsi, u32 tc, in i40e_handle_tclass()
8812 static int i40e_configure_clsflower(struct i40e_vsi *vsi, in i40e_configure_clsflower()
8893 static struct i40e_cloud_filter *i40e_find_cloud_filter(struct i40e_vsi *vsi, in i40e_find_cloud_filter()
8912 static int i40e_delete_clsflower(struct i40e_vsi *vsi, in i40e_delete_clsflower()
8958 struct i40e_vsi *vsi = np->vsi; in i40e_setup_tc_cls_flower() local
9024 struct i40e_vsi *vsi = np->vsi; in i40e_open() local
9062 static int i40e_netif_set_realnum_tx_rx_queues(struct i40e_vsi *vsi) in i40e_netif_set_realnum_tx_rx_queues()
9085 int i40e_vsi_open(struct i40e_vsi *vsi) in i40e_vsi_open()
9267 struct i40e_vsi *vsi = np->vsi; in i40e_close() local
9349 struct i40e_vsi *vsi = pf->vsi[v]; in i40e_do_reset() local
9362 struct i40e_vsi *vsi = pf->vsi[v]; in i40e_do_reset() local
9883 static void i40e_vsi_link_event(struct i40e_vsi *vsi, bool link_up) in i40e_vsi_link_event()
9944 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_link_event() local
10314 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_enable_pf_switch_lb() local
10350 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_disable_pf_switch_lb() local
10458 struct i40e_vsi *vsi = pf->vsi[v]; in i40e_reconstitute_veb() local
10574 struct i40e_vsi *vsi; in i40e_fdir_sb_setup() local
10618 struct i40e_vsi *vsi; in i40e_fdir_teardown() local
10634 static int i40e_rebuild_cloud_filters(struct i40e_vsi *vsi, u16 seid) in i40e_rebuild_cloud_filters()
10671 static int i40e_rebuild_channels(struct i40e_vsi *vsi) in i40e_rebuild_channels()
10730 static void i40e_clean_xps_state(struct i40e_vsi *vsi) in i40e_clean_xps_state()
10878 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_rebuild() local
11380 static int i40e_set_num_rings_in_vsi(struct i40e_vsi *vsi) in i40e_set_num_rings_in_vsi()
11451 static int i40e_vsi_alloc_arrays(struct i40e_vsi *vsi, bool alloc_qvectors) in i40e_vsi_alloc_arrays()
11497 struct i40e_vsi *vsi; in i40e_vsi_mem_alloc() local
11585 static void i40e_vsi_free_arrays(struct i40e_vsi *vsi, bool free_qvectors) in i40e_vsi_free_arrays()
11603 static void i40e_clear_rss_config_user(struct i40e_vsi *vsi) in i40e_clear_rss_config_user()
11619 static int i40e_vsi_clear(struct i40e_vsi *vsi) in i40e_vsi_clear()
11670 static void i40e_vsi_clear_rings(struct i40e_vsi *vsi) in i40e_vsi_clear_rings()
11689 static int i40e_alloc_rings(struct i40e_vsi *vsi) in i40e_alloc_rings()
12012 static int i40e_vsi_alloc_q_vector(struct i40e_vsi *vsi, int v_idx) in i40e_vsi_alloc_q_vector()
12041 static int i40e_vsi_alloc_q_vectors(struct i40e_vsi *vsi) in i40e_vsi_alloc_q_vectors()
12268 static int i40e_get_rss_aq(struct i40e_vsi *vsi, const u8 *seed, in i40e_get_rss_aq()
12314 static int i40e_config_rss_reg(struct i40e_vsi *vsi, const u8 *seed, in i40e_config_rss_reg()
12368 static int i40e_get_rss_reg(struct i40e_vsi *vsi, u8 *seed, in i40e_get_rss_reg()
12402 int i40e_config_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size) in i40e_config_rss()
12421 int i40e_get_rss(struct i40e_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size) in i40e_get_rss()
12453 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_pf_config_rss() local
12525 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi]; in i40e_reconfig_rss_queues() local
12993 static void i40e_clear_rss_lut(struct i40e_vsi *vsi) in i40e_clear_rss_lut()
13016 static int i40e_set_loopback(struct i40e_vsi *vsi, bool ena) in i40e_set_loopback()
13044 struct i40e_vsi *vsi = np->vsi; in i40e_set_features() local
13212 struct i40e_vsi *vsi = np->vsi; in i40e_ndo_bridge_setlink() local
13289 struct i40e_vsi *vsi = np->vsi; in i40e_ndo_bridge_getlink() local
13375 static int i40e_xdp_setup(struct i40e_vsi *vsi, struct bpf_prog *prog, in i40e_xdp_setup()
13444 static int i40e_enter_busy_conf(struct i40e_vsi *vsi) in i40e_enter_busy_conf()
13463 static void i40e_exit_busy_conf(struct i40e_vsi *vsi) in i40e_exit_busy_conf()
13475 static void i40e_queue_pair_reset_stats(struct i40e_vsi *vsi, int queue_pair) in i40e_queue_pair_reset_stats()
13492 static void i40e_queue_pair_clean_rings(struct i40e_vsi *vsi, int queue_pair) in i40e_queue_pair_clean_rings()
13511 static void i40e_queue_pair_toggle_napi(struct i40e_vsi *vsi, int queue_pair, in i40e_queue_pair_toggle_napi()
13537 static int i40e_queue_pair_toggle_rings(struct i40e_vsi *vsi, int queue_pair, in i40e_queue_pair_toggle_rings()
13588 static void i40e_queue_pair_enable_irq(struct i40e_vsi *vsi, int queue_pair) in i40e_queue_pair_enable_irq()
13608 static void i40e_queue_pair_disable_irq(struct i40e_vsi *vsi, int queue_pair) in i40e_queue_pair_disable_irq()
13642 int i40e_queue_pair_disable(struct i40e_vsi *vsi, int queue_pair) in i40e_queue_pair_disable()
13667 int i40e_queue_pair_enable(struct i40e_vsi *vsi, int queue_pair) in i40e_queue_pair_enable()
13703 struct i40e_vsi *vsi = np->vsi; in i40e_xdp() local
13764 static int i40e_config_netdev(struct i40e_vsi *vsi) in i40e_config_netdev()
13936 static void i40e_vsi_delete(struct i40e_vsi *vsi) in i40e_vsi_delete()
13951 int i40e_is_vsi_uplink_mode_veb(struct i40e_vsi *vsi) in i40e_is_vsi_uplink_mode_veb()
13986 static int i40e_add_vsi(struct i40e_vsi *vsi) in i40e_add_vsi()
14232 int i40e_vsi_release(struct i40e_vsi *vsi) in i40e_vsi_release()
14333 static int i40e_vsi_setup_vectors(struct i40e_vsi *vsi) in i40e_vsi_setup_vectors()
14389 static struct i40e_vsi *i40e_vsi_reinit_setup(struct i40e_vsi *vsi) in i40e_vsi_reinit_setup()
14471 struct i40e_vsi *vsi = NULL; in i40e_vsi_setup() local
14813 struct i40e_vsi *vsi = NULL; in i40e_veb_release() local
14856 static int i40e_add_veb(struct i40e_veb *veb, struct i40e_vsi *vsi) in i40e_add_veb()
15183 struct i40e_vsi *vsi = NULL; in i40e_setup_pf_switch() local
15584 struct i40e_vsi *vsi; in i40e_init_recovery_mode() local
16343 struct i40e_vsi *vsi = pf->vsi[0]; in i40e_remove() local