Re: [PATCH bpf] xsk: fix poll/POLLIN premature returns

2018-07-25 Thread Daniel Borkmann
On 07/23/2018 11:43 AM, Björn Töpel wrote: > From: Björn Töpel > > Polling for the ingress queues relies on reading the producer/consumer > pointers of the Rx queue. > > Prior this commit, a cached consumer pointer could be used, instead of > the actual consumer pointer and therefore report

[PATCH bpf] xsk: fix poll/POLLIN premature returns

2018-07-23 Thread Björn Töpel
From: Björn Töpel Polling for the ingress queues relies on reading the producer/consumer pointers of the Rx queue. Prior this commit, a cached consumer pointer could be used, instead of the actual consumer pointer and therefore report POLLIN prematurely. This patch makes sure that the