Home
last modified time | relevance | path

Searched refs:eswitch_mode (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_vfr.c265 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_close()
285 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_open()
325 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_destroy()
342 bp->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in bnxt_vf_reps_destroy()
460 bp->eswitch_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV; in bnxt_vf_reps_create()
476 *mode = bp->eswitch_mode; in bnxt_dl_eswitch_mode_get()
487 if (bp->eswitch_mode == mode) { in bnxt_dl_eswitch_mode_set()
Dbnxt_devlink.c423 bp->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in bnxt_dl_register()
Dbnxt.h1813 enum devlink_eswitch_mode eswitch_mode; member
Dbnxt.c11261 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_get_port_parent_id()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c122 u8 eswitch_mode; in mlx5_devlink_fs_mode_validate() local
125 eswitch_mode = mlx5_eswitch_mode(dev->priv.eswitch); in mlx5_devlink_fs_mode_validate()
134 else if (eswitch_mode == MLX5_ESWITCH_OFFLOADS) { in mlx5_devlink_fs_mode_validate()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c186 return abm->eswitch_mode; in nfp_abm_eswitch_mode_get()
194 abm->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in nfp_abm_eswitch_set_legacy()
200 if (abm->eswitch_mode != DEVLINK_ESWITCH_MODE_LEGACY) in nfp_abm_eswitch_clean_up()
230 abm->eswitch_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV; in nfp_abm_eswitch_set_switchdev()
243 if (abm->eswitch_mode == mode) in nfp_abm_eswitch_mode_set()
Dmain.h80 enum devlink_eswitch_mode eswitch_mode; member
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c496 if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in lio_vf_rep_create()
582 if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in lio_vf_rep_destroy()
Docteon_device.h608 enum devlink_eswitch_mode eswitch_mode; member
Dlio_main.c3144 *mode = oct->eswitch_mode; in liquidio_eswitch_mode_get()
3163 if (oct->eswitch_mode == mode) in liquidio_eswitch_mode_set()
3168 oct->eswitch_mode = mode; in liquidio_eswitch_mode_set()
3174 oct->eswitch_mode = mode; in liquidio_eswitch_mode_set()
3196 if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in liquidio_get_port_parent_id()
3785 octeon_dev->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in setup_nic_devices()