usertools: show valid hugepage sizes if wrong request
authorSarosh Arif <sarosh.arif@emumba.com>
Thu, 11 Feb 2021 08:20:04 +0000 (13:20 +0500)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Feb 2021 21:45:20 +0000 (22:45 +0100)
commit0b89dbc2595c52a5f72b2faa168091f8e647b137
treeb5333ade7057a63393e027f7b4bedfc9faacb3da
parente3f15be4d41c7ec96e05314fdc31313f9c7a5886
usertools: show valid hugepage sizes if wrong request

If user requests a hugepage size which is not supported by the system,
currently user gets an error message saying that the requested size
is not a valid system huge page size. In addition to this if we display
the valid hugepage sizes it will be convenient for the user to request
the right size next time.

Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
usertools/dpdk-hugepages.py