| 362 | } __rte_packed; |
| 363 | |
| 364 | static int |
| 365 | tm_apply_check(struct rte_table_action_tm_params *p, |
| 366 | struct rte_table_action_tm_config *cfg) |
| 367 | { |
| 368 | if ((p->subport_id >= cfg->n_subports_per_port) || |
| 369 | (p->pipe_id >= cfg->n_pipes_per_subport)) |
| 370 | return -EINVAL; |
| 371 | |
| 372 | return 0; |
| 373 | } |
| 374 | |
| 375 | static int |
| 376 | tm_apply(struct tm_data *data, |