Searched refs:mlx5_eswitch_mode (Results 1 – 9 of 9) sorted by relevance
151 u8 mlx5_eswitch_mode(const struct mlx5_core_dev *dev);157 static inline u8 mlx5_eswitch_mode(const struct mlx5_core_dev *dev) in mlx5_eswitch_mode() function206 return mlx5_eswitch_mode(dev) == MLX5_ESWITCH_LEGACY; in is_mdev_legacy_mode()211 return mlx5_eswitch_mode(dev) == MLX5_ESWITCH_OFFLOADS; in is_mdev_switchdev_mode()
81 if (mlx5_eswitch_mode(dev0) != MLX5_ESWITCH_OFFLOADS || in enable_mpesw()
194 if (mlx5_eswitch_mode(dev->mdev) == MLX5_ESWITCH_OFFLOADS) { in UVERBS_HANDLER()
2384 mlx5_eswitch_mode(dev->mdev) != MLX5_ESWITCH_OFFLOADS) { in UVERBS_HANDLER()
1275 if (mlx5_eswitch_mode(mdev) == MLX5_ESWITCH_OFFLOADS && in mlx5_ib_query_device()
2205 u8 mlx5_eswitch_mode(const struct mlx5_core_dev *dev) in mlx5_eswitch_mode() function2211 EXPORT_SYMBOL_GPL(mlx5_eswitch_mode);2219 return (mlx5_eswitch_mode(dev) == MLX5_ESWITCH_OFFLOADS) ? esw->offloads.encap : in mlx5_eswitch_get_encap_mode()
3539 eswitch_mode = mlx5_eswitch_mode(dev); in mlx5_fs_mode_validate()
2480 esw_mode = mlx5_eswitch_mode(dev); in esw_port_metadata_validate()
3373 if (mlx5_eswitch_mode(mdev) == MLX5_ESWITCH_OFFLOADS || in mlx5e_modify_admin_state()