Add check for configuration error (not enough mbuf) 87/66887/1
authorXavier Simonart <xavier.simonart@intel.com>
Wed, 23 Jan 2019 13:26:01 +0000 (14:26 +0100)
committerXavier Simonart <xavier.simonart@intel.com>
Thu, 7 Feb 2019 12:49:26 +0000 (13:49 +0100)
commit0eca932897b14ebe0cfa63a5678b81a3146a5121
treee78aa4990c92ea30c27bece10a9e48031d37f044
parent06d71cb8ceab4d531a29b09c589eeda7bd4e6311
Add check for configuration error (not enough mbuf)

Number of mbufs must at least cover for number of rx descriptors,
number of tx descriptors, number of mbuf cached and number of
mbufs handled by the application.

If this is not the case, a warning is returned.

This ony check for the more basic cases. This will not check for
instance for cases with multiples rings where more mbufs might be
cached.

Change-Id: If2c0c9fc76ed4500849d92cf7586bb0b25d8ab22
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
VNFs/DPPD-PROX/main.c