| 2502 | } |
| 2503 | |
| 2504 | static inline int |
| 2505 | grinder_pipe_exists(struct rte_sched_subport *subport, uint32_t base_pipe) |
| 2506 | { |
| 2507 | uint32_t i; |
| 2508 | |
| 2509 | for (i = 0; i < RTE_SCHED_PORT_N_GRINDERS; i++) { |
| 2510 | if (subport->grinder_base_bmp_pos[i] == base_pipe) |
| 2511 | return 1; |
| 2512 | } |
| 2513 | |
| 2514 | return 0; |
| 2515 | } |
| 2516 | |
| 2517 | static inline void |
| 2518 | grinder_pcache_populate(struct rte_sched_subport *subport, |