net/mrvl: fix oversize bpool handling
authorNatalie Samsonov <nsamsono@marvell.com>
Thu, 11 Jan 2018 15:35:41 +0000 (16:35 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commita9bd1322b8cfe277e3ba2b81423e99ae14cd5d57
treea39c690f0281446e50c4bb94b36663172b83d134
parent3588aaa68eab05f57b5af36e95df446bfcfee7ce
net/mrvl: fix oversize bpool handling

Don't return mbuf to dpdk pool if failed to get buffer from the bpool.
Fix maximum bpool size calculation to prevent unnecessary bpool
oversize cases when working with small rx queues.

Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton")
Cc: stable@dpdk.org
Signed-off-by: Natalie Samsonov <nsamsono@marvell.com>
drivers/net/mrvl/mrvl_ethdev.c