Re: [dpdk-dev] [PATCH] usertools: check 0-division with hugepage size

2021-02-12 Thread Thomas Monjalon
12/02/2021 12:27, Burakov, Anatoly: > On 11-Feb-21 10:05 PM, Thomas Monjalon wrote: > > The default page size can be None, and the page size from user request > > can be 0 kB if lower than 1024. In these cases, a division will fail. > > In order to avoid a Python exception, the page size is checked

Re: [dpdk-dev] [PATCH] usertools: check 0-division with hugepage size

2021-02-12 Thread Burakov, Anatoly
On 11-Feb-21 10:05 PM, Thomas Monjalon wrote: The default page size can be None, and the page size from user request can be 0 kB if lower than 1024. In these cases, a division will fail. In order to avoid a Python exception, the page size is checked and an error message "Invalid page size" is pri

Re: [dpdk-dev] [PATCH] usertools: check 0-division with hugepage size

2021-02-11 Thread Stephen Hemminger
On Thu, 11 Feb 2021 23:05:44 +0100 Thomas Monjalon wrote: > The default page size can be None, and the page size from user request > can be 0 kB if lower than 1024. In these cases, a division will fail. > In order to avoid a Python exception, the page size is checked > and an error message "Inval

[dpdk-dev] [PATCH] usertools: check 0-division with hugepage size

2021-02-11 Thread Thomas Monjalon
The default page size can be None, and the page size from user request can be 0 kB if lower than 1024. In these cases, a division will fail. In order to avoid a Python exception, the page size is checked and an error message "Invalid page size" is printed. A similar error message is printed in set