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
1433 * Return1433 * Return
1434 * 0 on success, or a negative error in case of failure.1434 * 0 on success, or a negative error in case of failure.
1435 *1435 *
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)
1437 * Description1437 * Description
1438 * Grow or shrink the room for data in the packet associated to1438 * Grow or shrink the room for data in the packet associated to
1439 * *skb* by *len_diff*, and according to the selected *mode*.1439 * *skb* by *len_diff*, and according to the selected *mode*.