[dpdk-dev] MinGW guide

2020-06-13 Thread Thomas Monjalon
The Windows user guide is referencing a general link to download MinGW: http://mingw-w64.org/doku.php/download For those who want to install MinGW on Windows, I thing it is simpler to give this more direct link: http://mingw-w64.org/doku.php/download/mingw-builds It avoids hesitatin

Re: [dpdk-dev] [PATCH 01/27] eventdev: dlb upstream prerequisites

2020-06-13 Thread Mattias Rönnblom
On 2020-06-13 05:59, Jerin Jacob wrote: > On Sat, Jun 13, 2020 at 2:56 AM McDaniel, Timothy > wrote: >> The DLB hardware does not conform exactly to the eventdev interface. >> 1) It has a limit on the number of queues that may be linked to a port. >> 2) Some ports a further restricted to a maximum

[dpdk-dev] [PATCH 1/5] mbuf: fix out-of-bounds access at dyn field register

2020-06-13 Thread Xiaolong Ye
We should make sure off + size < sizeof(struct rte_mbuf) to avoid possible out-of-bounds access of free_space array, there is no issue currently due to the low bits of free_flags (which is adjacent to free_space) are always set to 0. But we shouldn't rely on it since it's fragile and layout of stru

[dpdk-dev] [PATCH 0/5] small fixes for mbuf's dynamic field/flag feature

2020-06-13 Thread Xiaolong Ye
This series contains some small fixes and enhancement for mbuf's dynamic field/flag feature. Xiaolong Ye (5): mbuf: fix out-of-bounds access at dyn field register mbuf: fix missing errno for dyn field/flag registration mbuf: fix free_space setting for dynamic field mbuf: fix a dynamic fiel

[dpdk-dev] [PATCH 5/5] mbuf: support to dump free_flags for dynamic flag

2020-06-13 Thread Xiaolong Ye
Add support to dump free_flags as below format: Free bit in mbuf->ol_flags (0 = occupied, 1 = free): : 0 0 0 0 0 0 0 0 0008: 0 0 0 0 0 0 0 0 0010: 0 0 0 0 0 0 0 1 0018: 1 1 1 1 1 1 1 1 0020: 1 1 1 1 1 1 1 1 0028: 1 0 0 0 0 0 0 0 0030: 0 0 0 0 0 0 0 0 0038: 0 0 0 0 0 0 0 0 Sign

[dpdk-dev] [PATCH 3/5] mbuf: fix free_space setting for dynamic field

2020-06-13 Thread Xiaolong Ye
The value free_space[i] is used to save the size of biggest aligned element that can fit in the zone, current implementation has one flaw, for example, if user registers dynfield1 (size = 4, align = 4, req = 124) first, the free_space would be as below after registration: 0070: 08 08 08 08 08 08

[dpdk-dev] [PATCH 2/5] mbuf: fix missing errno for dyn field/flag registration

2020-06-13 Thread Xiaolong Ye
Set rte_errno as ENOMEM when allocation failure. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rte_mbuf_dyn.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/librte_mbuf/rte_mb

[dpdk-dev] [PATCH 4/5] mbuf: fix a dynamic field dump log

2020-06-13 Thread Xiaolong Ye
For each mbuf byte, free_space[i] == 0 means the space is occupied, free_space[i] != 0 means space is free. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rte_mbuf_dyn.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [dpdk-dev] [PATCH 9/9] vhost: only use vDPA config workaround if needed

2020-06-13 Thread Matan Azrad
Hi Maxime From: Maxime Coquelin: > On 6/9/20 1:09 PM, Matan Azrad wrote: > > Hi Maxime > > > > From: Maxime Coquelin > >> Hi Matan, > >> > >> On 6/8/20 11:19 AM, Matan Azrad wrote: > >>> Hi Maxime > >>> > >>> From: Maxime Coquelin: > Hi Matan, > > On 6/7/20 12:38 PM, Matan Azrad wro