| 786 | } |
| 787 | |
| 788 | int |
| 789 | check_flow_params(uint16_t fdir_portid, uint8_t fdir_qid) |
| 790 | { |
| 791 | uint16_t i; |
| 792 | uint16_t portid, queueid; |
| 793 | |
| 794 | for (i = 0; i < nb_lcore_params; ++i) { |
| 795 | portid = lcore_params_array[i].port_id; |
| 796 | if (portid == fdir_portid) { |
| 797 | queueid = lcore_params_array[i].queue_id; |
| 798 | if (queueid == fdir_qid) |
| 799 | break; |
| 800 | } |
| 801 | |
| 802 | if (i == nb_lcore_params - 1) |
| 803 | return -1; |
| 804 | } |
| 805 | |
| 806 | return 1; |
| 807 | } |
| 808 | |
| 809 | static int32_t |
| 810 | check_poll_mode_params(struct eh_conf *eh_conf) |