| 3645 | } |
| 3646 | |
| 3647 | static uint32_t |
| 3648 | parse_table_action_stats(char **tokens, |
| 3649 | uint32_t n_tokens, |
| 3650 | struct table_rule_action *a) |
| 3651 | { |
| 3652 | if ((n_tokens < 1) || |
| 3653 | strcmp(tokens[0], "stats")) |
| 3654 | return 0; |
| 3655 | |
| 3656 | a->stats.n_packets = 0; |
| 3657 | a->stats.n_bytes = 0; |
| 3658 | a->action_mask |= 1 << RTE_TABLE_ACTION_STATS; |
| 3659 | return 1; |
| 3660 | } |
| 3661 | |
| 3662 | static uint32_t |
| 3663 | parse_table_action_time(char **tokens, |
no test coverage detected