Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b55cbc8d authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by Alexei Starovoitov
Browse files

bpf: fix doc of bpf_skb_adjust_room() in uapi



len_diff is signed.

Fixes: fa15601a ("bpf: add documentation for eBPF helpers (33-41)")
CC: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 44d520eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1433,7 +1433,7 @@ union bpf_attr {
 * 	Return
 * 	Return
 * 		0 on success, or a negative error in case of failure.
 * 		0 on success, or a negative error in case of failure.
 *
 *
 * int bpf_skb_adjust_room(struct sk_buff *skb, u32 len_diff, u32 mode, u64 flags)
 * int bpf_skb_adjust_room(struct sk_buff *skb, s32 len_diff, u32 mode, u64 flags)
 * 	Description
 * 	Description
 * 		Grow or shrink the room for data in the packet associated to
 * 		Grow or shrink the room for data in the packet associated to
 * 		*skb* by *len_diff*, and according to the selected *mode*.
 * 		*skb* by *len_diff*, and according to the selected *mode*.
+1 −1
Original line number Original line Diff line number Diff line
@@ -1433,7 +1433,7 @@ union bpf_attr {
 * 	Return
 * 	Return
 * 		0 on success, or a negative error in case of failure.
 * 		0 on success, or a negative error in case of failure.
 *
 *
 * int bpf_skb_adjust_room(struct sk_buff *skb, u32 len_diff, u32 mode, u64 flags)
 * int bpf_skb_adjust_room(struct sk_buff *skb, s32 len_diff, u32 mode, u64 flags)
 * 	Description
 * 	Description
 * 		Grow or shrink the room for data in the packet associated to
 * 		Grow or shrink the room for data in the packet associated to
 * 		*skb* by *len_diff*, and according to the selected *mode*.
 * 		*skb* by *len_diff*, and according to the selected *mode*.