Lines Matching refs:vp_oper
1844 struct mlx4_vport_oper_state *vp_oper; in mlx4_master_immediate_activate_vlan_qos() local
1851 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_master_immediate_activate_vlan_qos()
1854 if (vp_oper->state.default_vlan == vp_admin->default_vlan && in mlx4_master_immediate_activate_vlan_qos()
1855 vp_oper->state.default_qos == vp_admin->default_qos && in mlx4_master_immediate_activate_vlan_qos()
1856 vp_oper->state.vlan_proto == vp_admin->vlan_proto && in mlx4_master_immediate_activate_vlan_qos()
1857 vp_oper->state.link_state == vp_admin->link_state && in mlx4_master_immediate_activate_vlan_qos()
1858 vp_oper->state.qos_vport == vp_admin->qos_vport) in mlx4_master_immediate_activate_vlan_qos()
1866 vp_oper->state.link_state = vp_admin->link_state; in mlx4_master_immediate_activate_vlan_qos()
1880 if (vp_oper->state.default_vlan != vp_admin->default_vlan) { in mlx4_master_immediate_activate_vlan_qos()
1903 work->orig_vlan_id = vp_oper->state.default_vlan; in mlx4_master_immediate_activate_vlan_qos()
1904 work->orig_vlan_ix = vp_oper->vlan_idx; in mlx4_master_immediate_activate_vlan_qos()
1907 if (vp_oper->state.default_qos != vp_admin->default_qos) in mlx4_master_immediate_activate_vlan_qos()
1911 vp_oper->vlan_idx = admin_vlan_ix; in mlx4_master_immediate_activate_vlan_qos()
1913 vp_oper->state.default_vlan = vp_admin->default_vlan; in mlx4_master_immediate_activate_vlan_qos()
1914 vp_oper->state.default_qos = vp_admin->default_qos; in mlx4_master_immediate_activate_vlan_qos()
1915 vp_oper->state.vlan_proto = vp_admin->vlan_proto; in mlx4_master_immediate_activate_vlan_qos()
1916 vp_oper->state.link_state = vp_admin->link_state; in mlx4_master_immediate_activate_vlan_qos()
1917 vp_oper->state.qos_vport = vp_admin->qos_vport; in mlx4_master_immediate_activate_vlan_qos()
1925 work->qos = vp_oper->state.default_qos; in mlx4_master_immediate_activate_vlan_qos()
1926 work->qos_vport = vp_oper->state.qos_vport; in mlx4_master_immediate_activate_vlan_qos()
1927 work->vlan_id = vp_oper->state.default_vlan; in mlx4_master_immediate_activate_vlan_qos()
1928 work->vlan_ix = vp_oper->vlan_idx; in mlx4_master_immediate_activate_vlan_qos()
1929 work->vlan_proto = vp_oper->state.vlan_proto; in mlx4_master_immediate_activate_vlan_qos()
1999 struct mlx4_vport_oper_state *vp_oper; in mlx4_master_activate_admin_state() local
2009 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_master_activate_admin_state()
2013 vp_oper->state.vlan_proto = vp_admin->vlan_proto; in mlx4_master_activate_admin_state()
2014 vp_oper->state.default_vlan = vp_admin->default_vlan; in mlx4_master_activate_admin_state()
2015 vp_oper->state.default_qos = vp_admin->default_qos; in mlx4_master_activate_admin_state()
2017 vp_oper->state.link_state = vp_admin->link_state; in mlx4_master_activate_admin_state()
2018 vp_oper->state.mac = vp_admin->mac; in mlx4_master_activate_admin_state()
2019 vp_oper->state.spoofchk = vp_admin->spoofchk; in mlx4_master_activate_admin_state()
2020 vp_oper->state.tx_rate = vp_admin->tx_rate; in mlx4_master_activate_admin_state()
2021 vp_oper->state.qos_vport = vp_admin->qos_vport; in mlx4_master_activate_admin_state()
2022 vp_oper->state.guid = vp_admin->guid; in mlx4_master_activate_admin_state()
2026 vp_admin->default_vlan, &(vp_oper->vlan_idx)); in mlx4_master_activate_admin_state()
2028 vp_oper->vlan_idx = NO_INDX; in mlx4_master_activate_admin_state()
2029 vp_oper->state.default_vlan = MLX4_VGT; in mlx4_master_activate_admin_state()
2030 vp_oper->state.vlan_proto = htons(ETH_P_8021Q); in mlx4_master_activate_admin_state()
2037 (int)(vp_oper->state.default_vlan), in mlx4_master_activate_admin_state()
2038 vp_oper->vlan_idx, slave, port); in mlx4_master_activate_admin_state()
2041 vp_oper->mac_idx = __mlx4_register_mac(&priv->dev, in mlx4_master_activate_admin_state()
2044 if (0 > vp_oper->mac_idx) { in mlx4_master_activate_admin_state()
2045 err = vp_oper->mac_idx; in mlx4_master_activate_admin_state()
2046 vp_oper->mac_idx = NO_INDX; in mlx4_master_activate_admin_state()
2053 vp_oper->state.mac, vp_oper->mac_idx, slave, port); in mlx4_master_activate_admin_state()
2062 struct mlx4_vport_oper_state *vp_oper; in mlx4_master_deactivate_admin_state() local
2070 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_master_deactivate_admin_state()
2071 if (NO_INDX != vp_oper->vlan_idx) { in mlx4_master_deactivate_admin_state()
2073 port, vp_oper->state.default_vlan); in mlx4_master_deactivate_admin_state()
2074 vp_oper->vlan_idx = NO_INDX; in mlx4_master_deactivate_admin_state()
2076 if (NO_INDX != vp_oper->mac_idx) { in mlx4_master_deactivate_admin_state()
2077 __mlx4_unregister_mac(&priv->dev, port, vp_oper->state.mac); in mlx4_master_deactivate_admin_state()
2078 vp_oper->mac_idx = NO_INDX; in mlx4_master_deactivate_admin_state()
3150 struct mlx4_vport_oper_state *vp_oper; in mlx4_get_slave_default_vlan() local
3155 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in mlx4_get_slave_default_vlan()
3157 if (MLX4_VGT != vp_oper->state.default_vlan) { in mlx4_get_slave_default_vlan()
3159 *vlan = vp_oper->state.default_vlan; in mlx4_get_slave_default_vlan()
3161 *qos = vp_oper->state.default_qos; in mlx4_get_slave_default_vlan()