| 407 | } |
| 408 | |
| 409 | static void |
| 410 | tap_rxq_pool_free(struct rte_mbuf *pool) |
| 411 | { |
| 412 | struct rte_mbuf *mbuf = pool; |
| 413 | uint16_t nb_segs = 1; |
| 414 | |
| 415 | if (mbuf == NULL) |
| 416 | return; |
| 417 | |
| 418 | while (mbuf->next) { |
| 419 | mbuf = mbuf->next; |
| 420 | nb_segs++; |
| 421 | } |
| 422 | pool->nb_segs = nb_segs; |
| 423 | rte_pktmbuf_free(pool); |
| 424 | } |
| 425 | |
| 426 | /* Callback to handle the rx burst of packets to the correct interface and |
| 427 | * file descriptor(s) in a multi-queue setup. |
no test coverage detected