| 3208 | } |
| 3209 | |
| 3210 | static uint32_t |
| 3211 | parse_table_action_tm(char **tokens, |
| 3212 | uint32_t n_tokens, |
| 3213 | struct table_rule_action *a) |
| 3214 | { |
| 3215 | uint32_t subport_id, pipe_id; |
| 3216 | |
| 3217 | if ((n_tokens < 5) || |
| 3218 | strcmp(tokens[0], "tm") || |
| 3219 | strcmp(tokens[1], "subport") || |
| 3220 | parser_read_uint32(&subport_id, tokens[2]) || |
| 3221 | strcmp(tokens[3], "pipe") || |
| 3222 | parser_read_uint32(&pipe_id, tokens[4])) |
| 3223 | return 0; |
| 3224 | |
| 3225 | a->tm.subport_id = subport_id; |
| 3226 | a->tm.pipe_id = pipe_id; |
| 3227 | a->action_mask |= 1 << RTE_TABLE_ACTION_TM; |
| 3228 | return 5; |
| 3229 | } |
| 3230 | |
| 3231 | static uint32_t |
| 3232 | parse_table_action_encap(char **tokens, |
no test coverage detected