Searched refs:LEGAL_VPORT (Results 1 – 1 of 1) sorted by relevance
1798 #define LEGAL_VPORT(esw, vport) (vport >= 0 && vport < esw->total_vports) macro1809 if (!LEGAL_VPORT(esw, vport) || is_multicast_ether_addr(mac)) in mlx5_eswitch_set_vport_mac()1856 if (!LEGAL_VPORT(esw, vport)) in mlx5_eswitch_set_vport_state()1886 if (!LEGAL_VPORT(esw, vport)) in mlx5_eswitch_get_vport_config()1916 if (!LEGAL_VPORT(esw, vport) || (vlan > 4095) || (qos > 7)) in __mlx5_eswitch_set_vport_vlan()1960 if (!LEGAL_VPORT(esw, vport)) in mlx5_eswitch_set_vport_spoofchk()1983 if (!LEGAL_VPORT(esw, vport)) in mlx5_eswitch_set_vport_trust()2064 if (!LEGAL_VPORT(esw, vport)) in mlx5_eswitch_set_vport_rate()2148 if (!LEGAL_VPORT(esw, vport)) in mlx5_eswitch_get_vport_stats()