Lines Matching refs:s_info
2978 struct mlx4_vport_state *s_info; in mlx4_set_vf_mac() local
2992 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_mac()
2994 if (s_info->spoofchk && is_zero_ether_addr(mac)) { in mlx4_set_vf_mac()
2999 s_info->mac = ether_addr_to_u64(mac); in mlx4_set_vf_mac()
3001 vf, port, s_info->mac); in mlx4_set_vf_mac()
3170 struct mlx4_vport_state *s_info; in mlx4_set_vf_spoofchk() local
3183 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_spoofchk()
3185 u64_to_ether_addr(s_info->mac, mac); in mlx4_set_vf_spoofchk()
3191 s_info->spoofchk = setting; in mlx4_set_vf_spoofchk()
3200 struct mlx4_vport_state *s_info; in mlx4_get_vf_config() local
3210 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_get_vf_config()
3214 ivf->mac[0] = ((s_info->mac >> (5*8)) & 0xff); in mlx4_get_vf_config()
3215 ivf->mac[1] = ((s_info->mac >> (4*8)) & 0xff); in mlx4_get_vf_config()
3216 ivf->mac[2] = ((s_info->mac >> (3*8)) & 0xff); in mlx4_get_vf_config()
3217 ivf->mac[3] = ((s_info->mac >> (2*8)) & 0xff); in mlx4_get_vf_config()
3218 ivf->mac[4] = ((s_info->mac >> (1*8)) & 0xff); in mlx4_get_vf_config()
3219 ivf->mac[5] = ((s_info->mac) & 0xff); in mlx4_get_vf_config()
3221 ivf->vlan = s_info->default_vlan; in mlx4_get_vf_config()
3222 ivf->qos = s_info->default_qos; in mlx4_get_vf_config()
3223 ivf->vlan_proto = s_info->vlan_proto; in mlx4_get_vf_config()
3225 if (mlx4_is_vf_vst_and_prio_qos(dev, port, s_info)) in mlx4_get_vf_config()
3226 ivf->max_tx_rate = s_info->tx_rate; in mlx4_get_vf_config()
3231 ivf->spoofchk = s_info->spoofchk; in mlx4_get_vf_config()
3232 ivf->linkstate = s_info->link_state; in mlx4_get_vf_config()
3241 struct mlx4_vport_state *s_info; in mlx4_set_vf_link_state() local
3272 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_link_state()
3273 s_info->link_state = link_state; in mlx4_set_vf_link_state()