Lines Matching refs:s_info
2984 struct mlx4_vport_state *s_info; in mlx4_set_vf_mac() local
2998 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_mac()
3000 if (s_info->spoofchk && is_zero_ether_addr(mac)) { in mlx4_set_vf_mac()
3005 s_info->mac = mlx4_mac_to_u64(mac); in mlx4_set_vf_mac()
3007 vf, port, s_info->mac); in mlx4_set_vf_mac()
3176 struct mlx4_vport_state *s_info; in mlx4_set_vf_spoofchk() local
3189 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_spoofchk()
3191 mlx4_u64_to_mac(mac, s_info->mac); in mlx4_set_vf_spoofchk()
3197 s_info->spoofchk = setting; in mlx4_set_vf_spoofchk()
3206 struct mlx4_vport_state *s_info; in mlx4_get_vf_config() local
3216 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_get_vf_config()
3220 ivf->mac[0] = ((s_info->mac >> (5*8)) & 0xff); in mlx4_get_vf_config()
3221 ivf->mac[1] = ((s_info->mac >> (4*8)) & 0xff); in mlx4_get_vf_config()
3222 ivf->mac[2] = ((s_info->mac >> (3*8)) & 0xff); in mlx4_get_vf_config()
3223 ivf->mac[3] = ((s_info->mac >> (2*8)) & 0xff); in mlx4_get_vf_config()
3224 ivf->mac[4] = ((s_info->mac >> (1*8)) & 0xff); in mlx4_get_vf_config()
3225 ivf->mac[5] = ((s_info->mac) & 0xff); in mlx4_get_vf_config()
3227 ivf->vlan = s_info->default_vlan; in mlx4_get_vf_config()
3228 ivf->qos = s_info->default_qos; in mlx4_get_vf_config()
3229 ivf->vlan_proto = s_info->vlan_proto; in mlx4_get_vf_config()
3231 if (mlx4_is_vf_vst_and_prio_qos(dev, port, s_info)) in mlx4_get_vf_config()
3232 ivf->max_tx_rate = s_info->tx_rate; in mlx4_get_vf_config()
3237 ivf->spoofchk = s_info->spoofchk; in mlx4_get_vf_config()
3238 ivf->linkstate = s_info->link_state; in mlx4_get_vf_config()
3247 struct mlx4_vport_state *s_info; in mlx4_set_vf_link_state() local
3278 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_link_state()
3279 s_info->link_state = link_state; in mlx4_set_vf_link_state()