return the number of packets in-flight in a distributor, i.e. packets * being worked on or queued up in a backlog. */
| 337 | * being worked on or queued up in a backlog. |
| 338 | */ |
| 339 | static inline unsigned |
| 340 | total_outstanding(const struct rte_distributor_single *d) |
| 341 | { |
| 342 | unsigned wkr, total_outstanding; |
| 343 | |
| 344 | total_outstanding = rte_popcount64(d->in_flight_bitmask); |
| 345 | |
| 346 | for (wkr = 0; wkr < d->num_workers; wkr++) |
| 347 | total_outstanding += d->backlog[wkr].count; |
| 348 | |
| 349 | return total_outstanding; |
| 350 | } |
| 351 | |
| 352 | /* flush the distributor, so that there are no outstanding packets in flight or |
| 353 | * queued up. */ |
no test coverage detected