Home
last modified time | relevance | path

Searched refs:esw_mode (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/net/netdevsim/
Dnetdevsim.h302 u16 esw_mode; member
307 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()
Ddev.c586 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()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c510 u8 esw_mode; in mlx5_devlink_esw_port_metadata_validate() local
516 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()