File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
drivers/net/ethernet/mellanox/mlx5/core/steering/hws Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1333,6 +1333,17 @@ static int mlx5_cmd_hws_destroy_match_definer(struct mlx5_flow_root_namespace *n
1333
1333
return - EOPNOTSUPP ;
1334
1334
}
1335
1335
1336
+ static u32 mlx5_cmd_hws_get_capabilities (struct mlx5_flow_root_namespace * ns ,
1337
+ enum fs_flow_table_type ft_type )
1338
+ {
1339
+ if (ft_type != FS_FT_FDB )
1340
+ return 0 ;
1341
+
1342
+ return MLX5_FLOW_STEERING_CAP_VLAN_PUSH_ON_RX |
1343
+ MLX5_FLOW_STEERING_CAP_VLAN_POP_ON_TX |
1344
+ MLX5_FLOW_STEERING_CAP_MATCH_RANGES ;
1345
+ }
1346
+
1336
1347
static const struct mlx5_flow_cmds mlx5_flow_cmds_hws = {
1337
1348
.create_flow_table = mlx5_cmd_hws_create_flow_table ,
1338
1349
.destroy_flow_table = mlx5_cmd_hws_destroy_flow_table ,
@@ -1352,6 +1363,7 @@ static const struct mlx5_flow_cmds mlx5_flow_cmds_hws = {
1352
1363
.create_ns = mlx5_cmd_hws_create_ns ,
1353
1364
.destroy_ns = mlx5_cmd_hws_destroy_ns ,
1354
1365
.set_peer = mlx5_cmd_hws_set_peer ,
1366
+ .get_capabilities = mlx5_cmd_hws_get_capabilities ,
1355
1367
};
1356
1368
1357
1369
const struct mlx5_flow_cmds * mlx5_fs_cmd_get_hws_cmds (void )
You can’t perform that action at this time.
0 commit comments