]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
samples/bpf: fix SKB_MODE flag to be a 32-bit unsigned int
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 1 May 2017 09:26:15 +0000 (11:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 14:42:37 +0000 (10:42 -0400)
commit6387d0111ca4740b69a082a92fc373185af11133
treeac6e2a31dc6650b92de059ce1c6261f7fd33a65a
parentd74a32acd59a8ccd8e209af3f4cf533e0359d355
samples/bpf: fix SKB_MODE flag to be a 32-bit unsigned int

The kernel side of XDP_FLAGS_SKB_MODE is unsigned, and the rtnetlink
IFLA_XDP_FLAGS is defined as NLA_U32. Thus, userspace programs under
samples/bpf/ should use the correct type.

Fixes: 3993f2cb983b ("samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/bpf_load.c
samples/bpf/bpf_load.h
samples/bpf/xdp1_user.c
samples/bpf/xdp_tx_iptunnel_user.c