diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-27 18:11:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-27 18:11:44 +0300 |
commit | ba5daf9b30e7a60335ba59f85a0d611008aea025 (patch) | |
tree | eb1cba3e98ae65e6ec3d50c490270e707efd7048 /drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | |
parent | 30cada73a7bdb477c2be4932b20f351e2ff25309 (diff) | |
parent | a3463f08104612fc979c41fa54733e925205d3d7 (diff) | |
download | linux-ba5daf9b30e7a60335ba59f85a0d611008aea025.tar.xz |
Merge v6.6.29
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c index baaae628b0a0..e3cce110e52f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c @@ -2476,6 +2476,10 @@ int esw_offloads_init(struct mlx5_eswitch *esw) if (err) return err; + if (MLX5_ESWITCH_MANAGER(esw->dev) && + mlx5_esw_vport_match_metadata_supported(esw)) + esw->flags |= MLX5_ESWITCH_VPORT_MATCH_METADATA; + err = devl_params_register(priv_to_devlink(esw->dev), esw_devlink_params, ARRAY_SIZE(esw_devlink_params)); |