History

bpf: fix doc of bpf_skb_adjust_room() in uapi

len_diff is signed.

Nicolas Dichtel committed 8 years ago

Commit b55cbc81 parent 44d520e2 files · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−1
@@ -1433,7 +1433,7 @@ union bpf_attr { · 1432 unmodified lines
14331433 * Return
14341434 * 0 on success, or a negative error in case of failure.
14351435 *
1436− * int bpf_skb_adjust_room(struct sk_buff *skb, u32 len_diff, u32 mode, u64 flags)
1436+ * int bpf_skb_adjust_room(struct sk_buff *skb, s32 len_diff, u32 mode, u64 flags)
14371437 * Description
14381438 * Grow or shrink the room for data in the packet associated to
14391439 * *skb* by *len_diff*, and according to the selected *mode*.