aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2020-04-14 16:50:24 +0200
committerDaniel Borkmann <[email protected]>2020-04-15 13:26:08 +0200
commit49b452c382da2c2d1ccee1265cbb92da905c82f7 (patch)
tree940a104c0547f3aa76fb064ec6f8f44eec5b0914 /scripts/bpf_helpers_doc.py
parent25498a1969bf3687c29c29bbac92821d7a0f8b4a (diff)
libbpf: Fix type of old_fd in bpf_xdp_set_link_opts
The 'old_fd' parameter used for atomic replacement of XDP programs is supposed to be an FD, but was left as a u32 from an earlier iteration of the patch that added it. It was converted to an int when read, so things worked correctly even with negative values, but better change the definition to correctly reflect the intention. Fixes: bd5ca3ef93cd ("libbpf: Add function to set link XDP fd while specifying old program") Reported-by: David Ahern <[email protected]> Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: David Ahern <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions