ethdev: add function to adjust number of descriptors
authorRoman Zhukov <roman.zhukov@oktetlabs.ru>
Thu, 25 May 2017 15:57:53 +0000 (16:57 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 8 Jul 2017 16:46:47 +0000 (18:46 +0200)
commit0f67fc3baeb99e087ac32c6b9116d5fe44e50de6
tree42793ad4f8de142481047513e1d4f0f00e98fb31
parent92f4bf03964dadb07012d4a7acf00c5e83d39197
ethdev: add function to adjust number of descriptors

Check that numbers of Rx and Tx descriptors satisfy descriptors limits
from the Ethernet device information, otherwise adjust them to boundaries.

Signed-off-by: Roman Zhukov <roman.zhukov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map