From: Ciara Loftus Date: Mon, 28 Sep 2020 08:23:44 +0000 (+0000) Subject: xsk: Fix a documentation mistake in xsk_queue.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f1fc8ece6c077bd6d460d99f4f83b9d20992b68b;p=linux.git 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 Signed-off-by: Alexei Starovoitov Acked-by: Magnus Karlsson Link: https://lore.kernel.org/bpf/20200928082344.17110-1-ciara.loftus@intel.com --- diff --git a/net/xdp/xsk_queue.h b/net/xdp/xsk_queue.h index 2d883f631c855..dc1dd5ef70d14 100644 --- a/net/xdp/xsk_queue.h +++ b/net/xdp/xsk_queue.h @@ -96,7 +96,7 @@ struct xsk_queue { * seen and read by the consumer. * * The consumer peeks into the ring to see if the producer has written - * any new entries. If so, the producer can then read these entries + * any new entries. If so, the consumer can then read these entries * and when it is done reading them release them back to the producer * so that the producer can use these slots to fill in new entries. *