net/qede: free packets in bulk
authorBalazs Nemeth <bnemeth@redhat.com>
Fri, 26 Mar 2021 11:01:27 +0000 (12:01 +0100)
committerJerin Jacob <jerinj@marvell.com>
Sat, 27 Mar 2021 14:00:34 +0000 (15:00 +0100)
commit4996b959cde6a340bc24b121d279082b6e8761fb
treeb8ac8225f6e6d2c6e5b5697f02815e7edf6d0700
parent303e78f2bc0e6d3b1dc889a2de4d0c5875061cb8
net/qede: free packets in bulk

rte_pktmbuf_free_bulk calls rte_mempool_put_bulk with the number of
pending packets to return to the mempool. In contrast, rte_pktmbuf_free
calls rte_mempool_put that calls rte_mempool_put_bulk with one object.
An important performance related downside of adding one packet at a time
to the mempool is that on each call, the per-core cache pointer needs to
be read from tls while a single rte_mempool_put_bulk only reads from the
tls once.

Signed-off-by: Balazs Nemeth <bnemeth@redhat.com>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
drivers/net/qede/qede_rxtx.c