@@ -78,28 +78,33 @@ int mlx5_cmd_create_flow_table(struct mlx5_core_dev *dev,
78
78
MLX5_CMD_OP_CREATE_FLOW_TABLE );
79
79
80
80
MLX5_SET (create_flow_table_in , in , table_type , type );
81
- MLX5_SET (create_flow_table_in , in , level , level );
82
- MLX5_SET (create_flow_table_in , in , log_size , log_size );
81
+ MLX5_SET (create_flow_table_in , in , flow_table_context . level , level );
82
+ MLX5_SET (create_flow_table_in , in , flow_table_context . log_size , log_size );
83
83
if (vport ) {
84
84
MLX5_SET (create_flow_table_in , in , vport_number , vport );
85
85
MLX5_SET (create_flow_table_in , in , other_vport , 1 );
86
86
}
87
87
88
- MLX5_SET (create_flow_table_in , in , decap_en , en_encap_decap );
89
- MLX5_SET (create_flow_table_in , in , encap_en , en_encap_decap );
88
+ MLX5_SET (create_flow_table_in , in , flow_table_context .decap_en ,
89
+ en_encap_decap );
90
+ MLX5_SET (create_flow_table_in , in , flow_table_context .encap_en ,
91
+ en_encap_decap );
90
92
91
93
switch (op_mod ) {
92
94
case FS_FT_OP_MOD_NORMAL :
93
95
if (next_ft ) {
94
- MLX5_SET (create_flow_table_in , in , table_miss_mode , 1 );
95
- MLX5_SET (create_flow_table_in , in , table_miss_id , next_ft -> id );
96
+ MLX5_SET (create_flow_table_in , in ,
97
+ flow_table_context .table_miss_action , 1 );
98
+ MLX5_SET (create_flow_table_in , in ,
99
+ flow_table_context .table_miss_id , next_ft -> id );
96
100
}
97
101
break ;
98
102
99
103
case FS_FT_OP_MOD_LAG_DEMUX :
100
104
MLX5_SET (create_flow_table_in , in , op_mod , 0x1 );
101
105
if (next_ft )
102
- MLX5_SET (create_flow_table_in , in , lag_master_next_table_id ,
106
+ MLX5_SET (create_flow_table_in , in ,
107
+ flow_table_context .lag_master_next_table_id ,
103
108
next_ft -> id );
104
109
break ;
105
110
}
@@ -146,10 +151,10 @@ int mlx5_cmd_modify_flow_table(struct mlx5_core_dev *dev,
146
151
MLX5_MODIFY_FLOW_TABLE_LAG_NEXT_TABLE_ID );
147
152
if (next_ft ) {
148
153
MLX5_SET (modify_flow_table_in , in ,
149
- lag_master_next_table_id , next_ft -> id );
154
+ flow_table_context . lag_master_next_table_id , next_ft -> id );
150
155
} else {
151
156
MLX5_SET (modify_flow_table_in , in ,
152
- lag_master_next_table_id , 0 );
157
+ flow_table_context . lag_master_next_table_id , 0 );
153
158
}
154
159
} else {
155
160
if (ft -> vport ) {
@@ -160,11 +165,14 @@ int mlx5_cmd_modify_flow_table(struct mlx5_core_dev *dev,
160
165
MLX5_SET (modify_flow_table_in , in , modify_field_select ,
161
166
MLX5_MODIFY_FLOW_TABLE_MISS_TABLE_ID );
162
167
if (next_ft ) {
163
- MLX5_SET (modify_flow_table_in , in , table_miss_mode , 1 );
164
- MLX5_SET (modify_flow_table_in , in , table_miss_id ,
168
+ MLX5_SET (modify_flow_table_in , in ,
169
+ flow_table_context .table_miss_action , 1 );
170
+ MLX5_SET (modify_flow_table_in , in ,
171
+ flow_table_context .table_miss_id ,
165
172
next_ft -> id );
166
173
} else {
167
- MLX5_SET (modify_flow_table_in , in , table_miss_mode , 0 );
174
+ MLX5_SET (modify_flow_table_in , in ,
175
+ flow_table_context .table_miss_action , 0 );
168
176
}
169
177
}
170
178
0 commit comments