Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_vfr.c268 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_close()
288 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_open()
342 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_destroy()
364 bp->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in bnxt_vf_reps_destroy()
366 bp->eswitch_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV; in bnxt_vf_reps_destroy()
386 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_free()
424 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_vf_reps_alloc()
559 *mode = bp->eswitch_mode; in bnxt_dl_eswitch_mode_get()
569 if (bp->eswitch_mode == mode) { in bnxt_dl_eswitch_mode_set()
597 bp->eswitch_mode = mode; in bnxt_dl_eswitch_mode_set()
H A Dbnxt_devlink.c1279 bp->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in bnxt_dl_register()
H A Dbnxt_sriov.c828 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_sriov_enable()
H A Dbnxt.h2187 enum devlink_eswitch_mode eswitch_mode; member
H A Dbnxt.c13159 if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in bnxt_get_port_parent_id()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch.c556 if (pf->eswitch_mode == mode) in ice_eswitch_mode_set()
589 pf->eswitch_mode = mode; in ice_eswitch_mode_set()
602 *mode = pf->eswitch_mode; in ice_eswitch_mode_get()
615 return pf->eswitch_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV; in ice_is_eswitch_mode_switchdev()
624 if (pf->eswitch_mode == DEVLINK_ESWITCH_MODE_LEGACY) in ice_eswitch_release()
639 if (pf->eswitch_mode == DEVLINK_ESWITCH_MODE_LEGACY || in ice_eswitch_configure()
H A Dice.h559 u16 eswitch_mode; /* current mode of eswitch */ member
/openbmc/linux/drivers/net/ethernet/netronome/nfp/abm/
H A 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()
H A Dmain.h80 enum devlink_eswitch_mode eswitch_mode; member
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_vf_rep.c495 if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in lio_vf_rep_create()
581 if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in lio_vf_rep_destroy()
H A Docteon_device.h608 enum devlink_eswitch_mode eswitch_mode; member
H A Dlio_main.c3136 *mode = oct->eswitch_mode; in liquidio_eswitch_mode_get()
3155 if (oct->eswitch_mode == mode) in liquidio_eswitch_mode_set()
3160 oct->eswitch_mode = mode; in liquidio_eswitch_mode_set()
3166 oct->eswitch_mode = mode; in liquidio_eswitch_mode_set()
3188 if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV) in liquidio_get_port_parent_id()
3774 octeon_dev->eswitch_mode = DEVLINK_ESWITCH_MODE_LEGACY; in setup_nic_devices()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_core.c3308 u8 eswitch_mode; in mlx5_fs_mode_validate() local
3311 eswitch_mode = mlx5_eswitch_mode(dev); in mlx5_fs_mode_validate()
3320 else if (eswitch_mode == MLX5_ESWITCH_OFFLOADS) { in mlx5_fs_mode_validate()