Re: [dpdk-dev] [PATCH v2] ethdev: keep count of allocated and used representor ranges

2021-07-10 Thread Thomas Monjalon
05/07/2021 13:07, Xueming(Steven) Li: > From: Andrew Rybchenko > > From: Viacheslav Galaktionov > > > > In its current state, the API can overflow the user-passed buffer if a new > > representor range appears between function calls. > > > > In order to solve this problem, augment the represent

Re: [dpdk-dev] [PATCH v2] ethdev: keep count of allocated and used representor ranges

2021-07-05 Thread Xueming(Steven) Li
> -Original Message- > From: Andrew Rybchenko > Sent: Monday, July 5, 2021 6:03 PM > To: Matan Azrad ; Shahaf Shuler ; Slava > Ovsiienko ; NBU- > Contact-Thomas Monjalon ; Ferruh Yigit > ; Xueming(Steven) Li > > Cc: dev@dpdk.org; Viacheslav Galaktionov > ; sta...@dpdk.org > Subject:

[dpdk-dev] [PATCH v2] ethdev: keep count of allocated and used representor ranges

2021-07-05 Thread Andrew Rybchenko
From: Viacheslav Galaktionov In its current state, the API can overflow the user-passed buffer if a new representor range appears between function calls. In order to solve this problem, augment the representor info structure with the numbers of allocated and initialized ranges. This way the user