Re: [PATCH 0/3] xsk: fix for xsk_poll writeable

2020-11-24 Thread Magnus Karlsson
buffer is full. The judgment criterion > > of > > tcp is whether the free space is more than half. > > This is the origin of my #2 patch, and I found that after adding this > > patch, my > > above problems no longer appear. > > 1. epoll_wait no longer exits dir

Re: [PATCH 0/3] xsk: fix for xsk_poll writeable

2020-11-24 Thread Magnus Karlsson
lot of them are free so you can insert a batch. So let us also keep patch #2, though I might have some comments on it, but I will reply to that patch in that case. But patch #3 needs to go. How about you instead make the Tx ring double the size of the completion ring? Let us assume patch #1 and #2 are i

Re: [PATCH 0/3] xsk: fix for xsk_poll writeable

2020-11-23 Thread Magnus Karlsson
On Wed, Nov 18, 2020 at 9:25 AM Xuan Zhuo wrote: > > I tried to combine cq available and tx writeable, but I found it very > difficult. > Sometimes we pay attention to the status of "available" for both, but > sometimes, > we may only pay attention to one, such as tx writeable, because we can

[PATCH 0/3] xsk: fix for xsk_poll writeable

2020-11-18 Thread Xuan Zhuo
I tried to combine cq available and tx writeable, but I found it very difficult. Sometimes we pay attention to the status of "available" for both, but sometimes, we may only pay attention to one, such as tx writeable, because we can use the item of fq to write to tx. And this kind of demand may be