Re: [PATCH] xsk: add cq event

2020-11-17 Thread Björn Töpel
On 2020-11-16 17:12, Xuan Zhuo wrote: On Mon, 16 Nov 2020 15:31:20 +0100, =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= wrote: On 2020-11-16 09:10, Xuan Zhuo wrote: When we write all cq items to tx, we have to wait for a new event based on poll to indicate that it is writable. But the current writab

Re: [PATCH] xsk: add cq event

2020-11-16 Thread Björn Töpel
On 2020-11-16 09:10, Xuan Zhuo wrote: When we write all cq items to tx, we have to wait for a new event based on poll to indicate that it is writable. But the current writability is triggered based on whether tx is full or not, and In fact, when tx is dissatisfied, the user of cq's item may not n

Re: [PATCH] xsk: add cq event

2020-11-16 Thread Denis Kirjanov
On 11/16/20, Denis Kirjanov wrote: > On 11/16/20, Xuan Zhuo wrote: >> On Mon, 16 Nov 2020 12:13:21 +0300, Denis Kirjanov >> >> wrote: >>> On 11/16/20, Xuan Zhuo wrote: >>> > When we write all cq items to tx, we have to wait for a new event >>> > based >>> > on poll to indicate that it is writab

Re: [PATCH] xsk: add cq event

2020-11-16 Thread Denis Kirjanov
On 11/16/20, Xuan Zhuo wrote: > On Mon, 16 Nov 2020 12:13:21 +0300, Denis Kirjanov > wrote: >> On 11/16/20, Xuan Zhuo wrote: >> > When we write all cq items to tx, we have to wait for a new event based >> > on poll to indicate that it is writable. But the current writability is >> > triggered ba

Re: [PATCH] xsk: add cq event

2020-11-16 Thread Denis Kirjanov
On 11/16/20, Xuan Zhuo wrote: > When we write all cq items to tx, we have to wait for a new event based > on poll to indicate that it is writable. But the current writability is > triggered based on whether tx is full or not, and In fact, when tx is > dissatisfied, the user of cq's item may not ne

[PATCH] xsk: add cq event

2020-11-16 Thread Xuan Zhuo
When we write all cq items to tx, we have to wait for a new event based on poll to indicate that it is writable. But the current writability is triggered based on whether tx is full or not, and In fact, when tx is dissatisfied, the user of cq's item may not necessarily get it, because it may still