Commit 9c8c3fa3 authored by Akihiko Odaki's avatar Akihiko Odaki Committed by Martin KaFai Lau

bpf: Fix the comment for bpf_restore_data_end()

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: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: default avatarStanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231005072137.29870-1-akihiko.odaki@daynix.comSigned-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parent d549854b
...@@ -736,7 +736,7 @@ static inline void bpf_compute_and_save_data_end( ...@@ -736,7 +736,7 @@ static inline void bpf_compute_and_save_data_end(
cb->data_end = skb->data + skb_headlen(skb); 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( static inline void bpf_restore_data_end(
struct sk_buff *skb, void *saved_data_end) struct sk_buff *skb, void *saved_data_end)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment