bpf: Fix the comment for bpf_restore_data_end()
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 5 Oct 2023 07:21:36 +0000 (16:21 +0900)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 6 Oct 2023 05:33:50 +0000 (22:33 -0700)
The comment used to say:
> Restore data saved by bpf_compute_data_pointers().

But bpf_compute_data_pointers() does not save the data;
bpf_compute_and_save_data_end() does.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231005072137.29870-1-akihiko.odaki@daynix.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
include/linux/filter.h

index 27406aee2d40292c217e8857c0ca982cf676057c..ff7ecc89d3dd55b074e6baf3e8000d7a045fb2c7 100644 (file)
@@ -736,7 +736,7 @@ static inline void bpf_compute_and_save_data_end(
        cb->data_end  = skb->data + skb_headlen(skb);
 }
 
-/* Restore data saved by bpf_compute_data_pointers(). */
+/* Restore data saved by bpf_compute_and_save_data_end(). */
 static inline void bpf_restore_data_end(
        struct sk_buff *skb, void *saved_data_end)
 {