Searched refs:esw_mode (Results 1 – 3 of 3) sorted by relevance
302 u16 esw_mode; member307 return nsim_dev->esw_mode == DEVLINK_ESWITCH_MODE_LEGACY; in nsim_esw_mode_is_legacy()312 return nsim_dev->esw_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV; in nsim_esw_mode_is_switchdev()
586 nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_LEGACY; in nsim_esw_legacy_enable()604 nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV; in nsim_esw_switchdev_enable()619 if (mode == nsim_dev->esw_mode) in nsim_devlink_eswitch_mode_set()634 *mode = nsim_dev->esw_mode; in nsim_devlink_eswitch_mode_get()1609 nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_LEGACY; in nsim_drv_probe()
510 u8 esw_mode; in mlx5_devlink_esw_port_metadata_validate() local516 esw_mode = mlx5_eswitch_mode(dev); in mlx5_devlink_esw_port_metadata_validate()517 if (esw_mode == MLX5_ESWITCH_OFFLOADS) { in mlx5_devlink_esw_port_metadata_validate()