Home
last modified time | relevance | path

Searched refs:MLX5_ESWITCH_OFFLOADS (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/include/linux/mlx5/
Deswitch.h17 MLX5_ESWITCH_OFFLOADS enumerator
194 return mlx5_eswitch_mode(dev) == MLX5_ESWITCH_OFFLOADS; in is_mdev_switchdev_mode()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dofld.h18 return esw && esw->mode == MLX5_ESWITCH_OFFLOADS && in mlx5_esw_acl_egress_fwd2vport_supported()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c969 if (esw->mode == MLX5_ESWITCH_OFFLOADS && mlx5_eswitch_is_funcs_handler(esw->dev)) { in mlx5_eswitch_event_handlers_register()
978 if (esw->mode == MLX5_ESWITCH_OFFLOADS && mlx5_eswitch_is_funcs_handler(esw->dev)) in mlx5_eswitch_event_handlers_unregister()
1290 if (mode == MLX5_ESWITCH_OFFLOADS) in mlx5_eswitch_enable_locked()
1353 else if (esw->mode == MLX5_ESWITCH_OFFLOADS) in mlx5_eswitch_disable_locked()
1359 if (old_mode == MLX5_ESWITCH_OFFLOADS) in mlx5_eswitch_disable_locked()
1960 (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && in mlx5_esw_lag_prereq()
1961 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS)) in mlx5_esw_lag_prereq()
1970 return (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && in mlx5_esw_multipath_prereq()
1971 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS); in mlx5_esw_multipath_prereq()
Ddevlink.c404 else if (eswitch_mode == MLX5_ESWITCH_OFFLOADS) { in mlx5_devlink_fs_mode_validate()
515 if (esw_mode == MLX5_ESWITCH_OFFLOADS) { in mlx5_devlink_esw_port_metadata_validate()
Deswitch_offloads.c495 if (esw->mode != MLX5_ESWITCH_OFFLOADS) in mlx5_eswitch_add_offloaded_rule()
2116 err = mlx5_eswitch_enable_locked(esw, MLX5_ESWITCH_OFFLOADS, in esw_offloads_start()
2296 if (esw->mode != MLX5_ESWITCH_OFFLOADS) in esw_offloads_load_rep()
2318 if (esw->mode != MLX5_ESWITCH_OFFLOADS) in esw_offloads_unload_rep()
2953 if (!esw || esw->mode != MLX5_ESWITCH_OFFLOADS) in mlx5_eswitch_reload_reps()
3225 err1 = mlx5_eswitch_enable_locked(esw, MLX5_ESWITCH_OFFLOADS, in esw_offloads_stop()
3257 *mlx5_mode = MLX5_ESWITCH_OFFLOADS; in esw_mode_from_devlink()
3272 case MLX5_ESWITCH_OFFLOADS: in esw_mode_to_devlink()
3633 if (esw->mode == MLX5_ESWITCH_OFFLOADS) in mlx5_eswitch_unregister_vport_reps()
Den_rep.c312 if (esw->mode != MLX5_ESWITCH_OFFLOADS) in mlx5e_sqs2vport_stop()
336 if (esw->mode != MLX5_ESWITCH_OFFLOADS) in mlx5e_sqs2vport_start()
Den_main.c2585 if (mlx5_eswitch_mode(mdev) == MLX5_ESWITCH_OFFLOADS || in mlx5e_modify_admin_state()
Den_tc.c4490 if (esw && esw->mode == MLX5_ESWITCH_OFFLOADS) in mlx5e_tc_add_flow()
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dstd_types.c176 if (mlx5_eswitch_mode(dev->mdev) == MLX5_ESWITCH_OFFLOADS) { in UVERBS_HANDLER()
Dfs.c2137 mlx5_eswitch_mode(dev->mdev) != MLX5_ESWITCH_OFFLOADS) { in UVERBS_HANDLER()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/sf/
Ddevlink.c493 case MLX5_ESWITCH_OFFLOADS: in mlx5_sf_esw_event()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dqos.c805 if (esw->mode != MLX5_ESWITCH_OFFLOADS) { in mlx5_esw_devlink_rate_node_new()