net/qede: fix performance bottleneck in Rx path
authorShahed Shaikh <shshaikh@marvell.com>
Fri, 18 Jan 2019 10:29:29 +0000 (02:29 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 18 Jan 2019 23:36:17 +0000 (00:36 +0100)
commit8f2312474529ad7ff0e4b65b82efc8530e7484ce
treec6016656b4ea37b808257a6738d55ff3afdd969a
parent3c69149a21be9f21da4d36bcf851762d81e873c1
net/qede: fix performance bottleneck in Rx path

Allocating replacement buffer per received packet is expensive.
Instead, process received packets first and allocate
replacement buffers in bulk later.

This improves performance by ~25% in terms of PPS on AMD
platforms.

Fixes: 2ea6f76aff40 ("qede: add core driver")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/qede_rxtx.c
drivers/net/qede/qede_rxtx.h