Skip to content

Commit f1fc8ec

Browse files
cloftusAlexei Starovoitov
authored andcommitted
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: 15d8c91 ("xsk: Add function naming comments and reorder functions") Signed-off-by: Ciara Loftus <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent d2197c7 commit f1fc8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/xdp/xsk_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct xsk_queue {
9696
* seen and read by the consumer.
9797
*
9898
* 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
100100
* and when it is done reading them release them back to the producer
101101
* so that the producer can use these slots to fill in new entries.
102102
*

0 commit comments

Comments
 (0)