-
由 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 non-cached consumer pointer is used instead. Reported-by: NQi Zhang <qi.z.zhang@intel.com> Tested-by: NQi Zhang <qi.z.zhang@intel.com> Fixes: c497176c ("xsk: add Rx receive functions and poll support") Signed-off-by: NBjörn Töpel <bjorn.topel@intel.com> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
d24458e4