Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/netdevsim/
Dnetdevsim.h338 u16 esw_mode; member
343 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()
Ddev.c592 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()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c2463 u8 esw_mode; in esw_port_metadata_validate() local
2465 esw_mode = mlx5_eswitch_mode(dev); in esw_port_metadata_validate()
2466 if (esw_mode == MLX5_ESWITCH_OFFLOADS) { in esw_port_metadata_validate()