tools headers uapi: Refresh linux/bpf.h copy

To get the changes in:

4c79579b44b1 ("bpf: Change bpf_fib_lookup to return lookup status")

That do not entail changes in tools/perf/ use of it, elliminating the
following perf build warning:

Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-yei494y6b3mn6bjzz9g0ws12@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+23 -5
+23 -5
tools/include/uapi/linux/bpf.h
··· 1857 * is resolved), the nexthop address is returned in ipv4_dst 1858 * or ipv6_dst based on family, smac is set to mac address of 1859 * egress device, dmac is set to nexthop mac address, rt_metric 1860 - * is set to metric from route (IPv4/IPv6 only). 1861 * 1862 * *plen* argument is the size of the passed in struct. 1863 * *flags* argument can be a combination of one or more of the ··· 1874 * *ctx* is either **struct xdp_md** for XDP programs or 1875 * **struct sk_buff** tc cls_act programs. 1876 * Return 1877 - * Egress device index on success, 0 if packet needs to continue 1878 - * up the stack for further processing or a negative error in case 1879 - * of failure. 1880 * 1881 * int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags) 1882 * Description ··· 2614 #define BPF_FIB_LOOKUP_DIRECT BIT(0) 2615 #define BPF_FIB_LOOKUP_OUTPUT BIT(1) 2616 2617 struct bpf_fib_lookup { 2618 /* input: network family for lookup (AF_INET, AF_INET6) 2619 * output: network family of egress nexthop ··· 2639 2640 /* total length of packet from network header - used for MTU check */ 2641 __u16 tot_len; 2642 - __u32 ifindex; /* L3 device index for lookup */ 2643 2644 union { 2645 /* inputs to lookup */
··· 1857 * is resolved), the nexthop address is returned in ipv4_dst 1858 * or ipv6_dst based on family, smac is set to mac address of 1859 * egress device, dmac is set to nexthop mac address, rt_metric 1860 + * is set to metric from route (IPv4/IPv6 only), and ifindex 1861 + * is set to the device index of the nexthop from the FIB lookup. 1862 * 1863 * *plen* argument is the size of the passed in struct. 1864 * *flags* argument can be a combination of one or more of the ··· 1873 * *ctx* is either **struct xdp_md** for XDP programs or 1874 * **struct sk_buff** tc cls_act programs. 1875 * Return 1876 + * * < 0 if any input argument is invalid 1877 + * * 0 on success (packet is forwarded, nexthop neighbor exists) 1878 + * * > 0 one of **BPF_FIB_LKUP_RET_** codes explaining why the 1879 + * * packet is not forwarded or needs assist from full stack 1880 * 1881 * int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags) 1882 * Description ··· 2612 #define BPF_FIB_LOOKUP_DIRECT BIT(0) 2613 #define BPF_FIB_LOOKUP_OUTPUT BIT(1) 2614 2615 + enum { 2616 + BPF_FIB_LKUP_RET_SUCCESS, /* lookup successful */ 2617 + BPF_FIB_LKUP_RET_BLACKHOLE, /* dest is blackholed; can be dropped */ 2618 + BPF_FIB_LKUP_RET_UNREACHABLE, /* dest is unreachable; can be dropped */ 2619 + BPF_FIB_LKUP_RET_PROHIBIT, /* dest not allowed; can be dropped */ 2620 + BPF_FIB_LKUP_RET_NOT_FWDED, /* packet is not forwarded */ 2621 + BPF_FIB_LKUP_RET_FWD_DISABLED, /* fwding is not enabled on ingress */ 2622 + BPF_FIB_LKUP_RET_UNSUPP_LWT, /* fwd requires encapsulation */ 2623 + BPF_FIB_LKUP_RET_NO_NEIGH, /* no neighbor entry for nh */ 2624 + BPF_FIB_LKUP_RET_FRAG_NEEDED, /* fragmentation required to fwd */ 2625 + }; 2626 + 2627 struct bpf_fib_lookup { 2628 /* input: network family for lookup (AF_INET, AF_INET6) 2629 * output: network family of egress nexthop ··· 2625 2626 /* total length of packet from network header - used for MTU check */ 2627 __u16 tot_len; 2628 + 2629 + /* input: L3 device index for lookup 2630 + * output: device index from FIB lookup 2631 + */ 2632 + __u32 ifindex; 2633 2634 union { 2635 /* inputs to lookup */