]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: E-Switch, Use correct type for chain, prio and level values
authorRoi Dayan <roid@mellanox.com>
Mon, 23 Mar 2020 10:14:58 +0000 (12:14 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:19:02 +0000 (23:19 -0700)
The correct type is u32.

Fixes: abe981a7f9dd ("net/mlx5: E-Switch, Introduce global tables")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c

index 090e56c5414dcc9020e76cdc26a93bcaa0b2f034..184cea62254f6dd0ff6390f7da120942f0ebeb75 100644 (file)
@@ -730,7 +730,8 @@ mlx5_esw_chains_get_tc_end_ft(struct mlx5_eswitch *esw)
 struct mlx5_flow_table *
 mlx5_esw_chains_create_global_table(struct mlx5_eswitch *esw)
 {
-       int chain, prio, level, err;
+       u32 chain, prio, level;
+       int err;
 
        if (!fdb_ignore_flow_level_supported(esw)) {
                err = -EOPNOTSUPP;