Lines Matching refs:uplink_vsi
22 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_env() local
23 struct net_device *netdev = uplink_vsi->netdev; in ice_eswitch_setup_env()
27 if (if_running && !test_and_set_bit(ICE_VSI_DOWN, uplink_vsi->state)) in ice_eswitch_setup_env()
28 if (ice_down(uplink_vsi)) in ice_eswitch_setup_env()
31 ice_remove_vsi_fltr(&pf->hw, uplink_vsi->idx); in ice_eswitch_setup_env()
38 if (ice_vsi_add_vlan_zero(uplink_vsi)) in ice_eswitch_setup_env()
41 if (ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, true, in ice_eswitch_setup_env()
45 if (ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, true, in ice_eswitch_setup_env()
49 vlan_ops = ice_get_compat_vsi_vlan_ops(uplink_vsi); in ice_eswitch_setup_env()
50 if (vlan_ops->dis_rx_filtering(uplink_vsi)) in ice_eswitch_setup_env()
53 if (ice_vsi_update_security(uplink_vsi, ice_vsi_ctx_set_allow_override)) in ice_eswitch_setup_env()
56 if (ice_vsi_update_local_lb(uplink_vsi, true)) in ice_eswitch_setup_env()
59 if (if_running && ice_up(uplink_vsi)) in ice_eswitch_setup_env()
65 ice_vsi_update_local_lb(uplink_vsi, false); in ice_eswitch_setup_env()
67 ice_vsi_update_security(uplink_vsi, ice_vsi_ctx_clear_allow_override); in ice_eswitch_setup_env()
69 vlan_ops->ena_rx_filtering(uplink_vsi); in ice_eswitch_setup_env()
71 ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, false, in ice_eswitch_setup_env()
74 ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, false, in ice_eswitch_setup_env()
77 ice_vsi_del_vlan_zero(uplink_vsi); in ice_eswitch_setup_env()
79 ice_fltr_add_mac_and_broadcast(uplink_vsi, in ice_eswitch_setup_env()
80 uplink_vsi->port_info->mac.perm_addr, in ice_eswitch_setup_env()
83 ice_up(uplink_vsi); in ice_eswitch_setup_env()
116 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_repr() local
125 netif_keep_dst(uplink_vsi->netdev); in ice_eswitch_setup_repr()
129 dst->u.port_info.lower_dev = uplink_vsi->netdev; in ice_eswitch_setup_repr()
273 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_release_env() local
276 vlan_ops = ice_get_compat_vsi_vlan_ops(uplink_vsi); in ice_eswitch_release_env()
278 ice_vsi_update_local_lb(uplink_vsi, false); in ice_eswitch_release_env()
279 ice_vsi_update_security(uplink_vsi, ice_vsi_ctx_clear_allow_override); in ice_eswitch_release_env()
280 vlan_ops->ena_rx_filtering(uplink_vsi); in ice_eswitch_release_env()
281 ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, false, in ice_eswitch_release_env()
283 ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, false, in ice_eswitch_release_env()
285 ice_fltr_add_mac_and_broadcast(uplink_vsi, in ice_eswitch_release_env()
286 uplink_vsi->port_info->mac.perm_addr, in ice_eswitch_release_env()
296 struct ice_vsi *uplink_vsi; in ice_eswitch_enable_switchdev() local
298 uplink_vsi = ice_get_main_vsi(pf); in ice_eswitch_enable_switchdev()
299 if (!uplink_vsi) in ice_eswitch_enable_switchdev()
302 if (netif_is_any_bridge_port(uplink_vsi->netdev)) { in ice_eswitch_enable_switchdev()
308 pf->eswitch.uplink_vsi = uplink_vsi; in ice_eswitch_enable_switchdev()