diff options
author | hselasky <hselasky@FreeBSD.org> | 2016-09-23 08:17:51 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2016-09-23 08:17:51 +0000 |
commit | c09479e02ec36fee071c973614c3aff982640196 (patch) | |
tree | 20197bbaf460d7bed237ae57b4adac1a04996cac /sys/dev/mlx5/flow_table.h | |
parent | 2db9387ac81b5c39996bd69f4d8e7d8d8ffcc4f5 (diff) | |
download | FreeBSD-src-c09479e02ec36fee071c973614c3aff982640196.zip FreeBSD-src-c09479e02ec36fee071c973614c3aff982640196.tar.gz |
MFC r305867:
Update the MLX5 core module:
- Add new firmware commands and update existing ones.
- Add more firmware related structures and update existing ones.
- Some minor fixes, like adding missing \n to some prints.
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/dev/mlx5/flow_table.h')
-rw-r--r-- | sys/dev/mlx5/flow_table.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/mlx5/flow_table.h b/sys/dev/mlx5/flow_table.h index 61ce2baf..802f012 100644 --- a/sys/dev/mlx5/flow_table.h +++ b/sys/dev/mlx5/flow_table.h @@ -30,6 +30,9 @@ #include <dev/mlx5/driver.h> +#define MLX5_SET_FLOW_TABLE_ROOT_OPMOD_SET 0x0 +#define MLX5_SET_FLOW_TABLE_ROOT_OPMOD_RESET 0x1 + struct mlx5_flow_table_group { u8 log_sz; u8 match_criteria_enable; @@ -44,7 +47,10 @@ void mlx5_destroy_flow_table(void *flow_table); int mlx5_add_flow_table_entry(void *flow_table, u8 match_criteria_enable, void *match_criteria, void *flow_context, u32 *flow_index); -void mlx5_del_flow_table_entry(void *flow_table, u32 flow_index); +int mlx5_del_flow_table_entry(void *flow_table, u32 flow_index); u32 mlx5_get_flow_table_id(void *flow_table); +int mlx5_set_flow_table_root(struct mlx5_core_dev *mdev, u16 op_mod, + u8 vport_num, u8 table_type, u32 table_id, + u32 underlay_qpn); #endif /* MLX5_FLOW_TABLE_H */ |