DEVLINK_ESWITCH_MODE_SWITCHDEV
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
bp->eswitch_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV;
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (bp->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (oct->eswitch_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV)
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
return pf->eswitch_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV;
if (pf->eswitch_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV)
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
if (mode == DEVLINK_ESWITCH_MODE_SWITCHDEV)
if (rswitch->mode == DEVLINK_ESWITCH_MODE_SWITCHDEV && pf_set_vfs_mac)
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
*mode = DEVLINK_ESWITCH_MODE_SWITCHDEV;
if (devlink_mode != DEVLINK_ESWITCH_MODE_SWITCHDEV &&
if (devlink_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV &&
abm->eswitch_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV;
case DEVLINK_ESWITCH_MODE_SWITCHDEV:
return DEVLINK_ESWITCH_MODE_SWITCHDEV;
nsim_dev->esw_mode = DEVLINK_ESWITCH_MODE_SWITCHDEV;
if (mode == DEVLINK_ESWITCH_MODE_SWITCHDEV)
return nsim_dev->esw_mode == DEVLINK_ESWITCH_MODE_SWITCHDEV;