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

2021-03-25 Thread Thomas Monjalon
23/03/2021 12:30, Burakov, Anatoly: > On 21-Mar-21 9:09 AM, 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 v2] usertools: check 0-division with hugepage size

2021-03-23 Thread Burakov, Anatoly
On 21-Mar-21 9:09 AM, 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 prin

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

2021-03-21 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