Searched refs:esw_mode (Results 1 – 3 of 3) sorted by relevance
338 u16 esw_mode; member343 return nsim_dev->esw_mode == DEVLINK_ESWITCH_MODE_LEGACY; in nsim_esw_mode_is_legacy()348 return nsim_dev->esw_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV; in nsim_esw_mode_is_switchdev()
592 nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_LEGACY; in nsim_esw_legacy_enable()610 nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV; in nsim_esw_switchdev_enable()625 if (mode == nsim_dev->esw_mode) in nsim_devlink_eswitch_mode_set()640 *mode = nsim_dev->esw_mode; in nsim_devlink_eswitch_mode_get()1611 nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_LEGACY; in nsim_drv_probe()
2463 u8 esw_mode; in esw_port_metadata_validate() local2465 esw_mode = mlx5_eswitch_mode(dev); in esw_port_metadata_validate()2466 if (esw_mode == MLX5_ESWITCH_OFFLOADS) { in esw_port_metadata_validate()