Searched refs:is_mdev_switchdev_mode (Results 1 – 1 of 1) sorted by relevance
5336 static bool is_mdev_switchdev_mode(const struct mlx5_core_dev *mdev) in is_mdev_switchdev_mode() function5348 num_cnt_ports = is_mdev_switchdev_mode(dev->mdev) ? 1 : dev->num_ports; in mlx5_ib_dealloc_counters()5458 num_cnt_ports = is_mdev_switchdev_mode(dev->mdev) ? 1 : dev->num_ports; in mlx5_ib_alloc_counters()5490 return is_mdev_switchdev_mode(dev->mdev) ? &dev->port[0].cnts : in get_counters()5515 bool is_switchdev = is_mdev_switchdev_mode(dev->mdev); in mlx5_ib_alloc_hw_stats()