ethdev: add default value for max segment
authorSunil Kumar Kori <skori@marvell.com>
Mon, 27 May 2019 08:35:28 +0000 (14:05 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000 (23:54 +0900)
commita79e3088cab58f01ddfbf937c193a37154ac5296
treefa773ff125ad9d5ae5c9cba6cb22399c97dee9d4
parent32d2bf01a3af81a446eeeefd70cc573a9b50fd1c
ethdev: add default value for max segment

rte_eth_dev_info structure exposes, nb_seg_max & nb_mtu_seg_max
to provide maximum number of supported segments for a given platform.

Defining UINT16_MAX as default value of above mentioned variables to
expose support of infinite/maximum segments.

Based on above values, application can decide best size for buffers
while creating mbuf pool.

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h