Centos-kernel-stream-9/net/ipv6
Jerome Marchand 851147cdc5 bpf: Migrate cgroup_bpf to internal cgroup_bpf_attach_type enum
Bugzilla: http://bugzilla.redhat.com/2041365

commit 6fc88c354f3af83ffa2c285b86e76c759755693f
Author: Dave Marchevsky <davemarchevsky@fb.com>
Date:   Thu Aug 19 02:24:20 2021 -0700

    bpf: Migrate cgroup_bpf to internal cgroup_bpf_attach_type enum

    Add an enum (cgroup_bpf_attach_type) containing only valid cgroup_bpf
    attach types and a function to map bpf_attach_type values to the new
    enum. Inspired by netns_bpf_attach_type.

    Then, migrate cgroup_bpf to use cgroup_bpf_attach_type wherever
    possible.  Functionality is unchanged as attach_type_to_prog_type
    switches in bpf/syscall.c were preventing non-cgroup programs from
    making use of the invalid cgroup_bpf array slots.

    As a result struct cgroup_bpf uses 504 fewer bytes relative to when its
    arrays were sized using MAX_BPF_ATTACH_TYPE.

    bpf_cgroup_storage is notably not migrated as struct
    bpf_cgroup_storage_key is part of uapi and contains a bpf_attach_type
    member which is not meant to be opaque. Similarly, bpf_cgroup_link
    continues to report its bpf_attach_type member to userspace via fdinfo
    and bpf_link_info.

    To ease disambiguation, bpf_attach_type variables are renamed from
    'type' to 'atype' when changed to cgroup_bpf_attach_type.

    Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/bpf/20210819092420.1984861-2-davemarchevsky@fb.com

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
2022-04-29 18:14:44 +02:00
..
ila
netfilter netfilter: conntrack: fix boot failure with nf_conntrack.enable_hooks=1 2021-12-02 13:57:47 +01:00
Kconfig
Makefile
addrconf.c Revert "ipv6: Honor all IPv6 PIO Valid Lifetime values" 2022-01-31 12:19:09 +01:00
addrconf_core.c ipv6: add ipv6_dev_find to stubs 2021-03-30 13:29:39 -07:00
addrlabel.c
af_inet6.c bpf: Migrate cgroup_bpf to internal cgroup_bpf_attach_type enum 2022-04-29 18:14:44 +02:00
ah6.c xfrm: remove hdr_offset indirection 2021-06-11 14:48:50 +02:00
anycast.c
calipso.c cipso,calipso: resolve a number of problems with the DOI refcounts 2021-03-04 15:26:57 -08:00
datagram.c
esp6.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-06-29 15:45:27 -07:00
esp6_offload.c xfrm: remove description from xfrm_type struct 2021-06-09 09:38:52 +02:00
exthdrs.c ipv6: fix out-of-bound access in ip6_parse_tlv() 2021-06-24 12:42:57 -07:00
exthdrs_core.c
exthdrs_offload.c
fib6_notifier.c
fib6_rules.c ipv6: fix memory leak in fib6_rule_suppress 2022-02-07 11:49:50 +08:00
fou6.c
icmp.c ipv6: ICMPV6: add response to ICMPV6 RFC 8335 PROBE messages 2021-06-28 14:29:45 -07:00
inet6_connection_sock.c
inet6_hashtables.c net: prefer socket bound to interface when not in VRF 2021-11-27 11:07:13 -05:00
ip6_checksum.c
ip6_fib.c ipv6: correct comments about fib6_node sernum 2021-08-24 09:59:01 +01:00
ip6_flowlabel.c
ip6_gre.c Merge: net: gre: fix csum validation for gre4 and gre6 2021-11-25 16:28:16 -03:00
ip6_icmp.c net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending 2021-02-23 11:29:52 -08:00
ip6_input.c ipv6: weaken the v4mapped source check 2021-03-18 11:19:23 -07:00
ip6_offload.c
ip6_offload.h
ip6_output.c Merge: ipv6: 9.0 P2 backports from upstream 2022-02-15 01:29:58 +00:00
ip6_tunnel.c ip_tunnel: use ndo_siocdevprivate 2021-10-11 15:43:53 +02:00
ip6_udp_tunnel.c
ip6_vti.c ip6_vti: initialize __ip6_tnl_parm struct in vti6_siocdevprivate 2022-01-06 16:53:16 -05:00
ip6mr.c net: Remove redundant if statements 2022-01-10 16:20:08 +01:00
ipcomp6.c xfrm: remove hdr_offset indirection 2021-06-11 14:48:50 +02:00
ipv6_sockglue.c
mcast.c ipv6: fix skb drops in igmp6_event_query() and igmp6_event_report() 2022-03-15 18:11:12 +08:00
mcast_snoop.c net: bridge: mcast: fix broken length + header check for MRDv6 Adv. 2021-04-27 14:02:06 -07:00
mip6.c xfrm: ipv6: move mip6_rthdr_offset into xfrm core 2021-06-11 14:48:50 +02:00
ndisc.c ipv6: separate ndisc_ns_create() from ndisc_send_ns() 2022-04-08 18:05:30 +02:00
netfilter.c netfilter: Dissect flow after packet mangling 2021-04-18 22:04:16 +02:00
output_core.c ipv6: use prandom_u32() for ID generation 2021-05-31 22:12:08 -07:00
ping.c
proc.c
protocol.c
raw.c net: sock: introduce sk_error_report 2021-06-29 11:28:21 -07:00
reassembly.c ipv6: record frag_max_size in atomic fragments in input path 2021-05-21 15:02:25 -07:00
route.c ipv6: Continue processing multipath route even if gateway attribute is invalid 2022-02-07 11:49:50 +08:00
rpl.c
rpl_iptunnel.c
seg6.c net: Remove redundant assignment to err 2021-04-29 15:34:15 -07:00
seg6_hmac.c
seg6_iptunnel.c
seg6_local.c seg6: add support for SRv6 End.DT46 Behavior 2021-06-18 11:35:47 -07:00
sit.c ip_tunnel: use ndo_siocdevprivate 2021-10-11 15:43:53 +02:00
syncookies.c
sysctl_net_ipv6.c net: Add notifications when multipath hash field change 2021-05-19 12:47:47 -07:00
tcp_ipv6.c ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookie 2022-01-21 11:10:05 +01:00
tcpv6_offload.c
tunnel6.c
udp.c bpf: Migrate cgroup_bpf to internal cgroup_bpf_attach_type enum 2022-04-29 18:14:44 +02:00
udp_impl.h
udp_offload.c udp: properly complete L4 GRO over UDP tunnel packet 2021-03-30 17:06:49 -07:00
udplite.c
xfrm6_input.c
xfrm6_output.c net: ipv6: fix return value of ip6_skb_dst_mtu 2021-07-02 11:57:01 -07:00
xfrm6_policy.c
xfrm6_protocol.c
xfrm6_state.c
xfrm6_tunnel.c xfrm: remove description from xfrm_type struct 2021-06-09 09:38:52 +02:00