Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xsk: Fix a documentation mistake in xsk_queue.h

After 'peeking' the ring, the consumer, not the producer, reads the data.
Fix this mistake in the comments.

Fixes: 15d8c9162ced ("xsk: Add function naming comments and reorder functions")
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20200928082344.17110-1-ciara.loftus@intel.com

authored by

Ciara Loftus and committed by
Alexei Starovoitov
f1fc8ece d2197c7f

+1 -1
+1 -1
net/xdp/xsk_queue.h
··· 96 96 * seen and read by the consumer. 97 97 * 98 98 * The consumer peeks into the ring to see if the producer has written 99 - * any new entries. If so, the producer can then read these entries 99 + * any new entries. If so, the consumer can then read these entries 100 100 * and when it is done reading them release them back to the producer 101 101 * so that the producer can use these slots to fill in new entries. 102 102 *