Transit between BPF TCP congestion controls.
Subsystems (7)
cover Transit between BPF TCP congestion controls.
Major changes:
- Create bpf_links in the kernel for BPF struct_ops to register and unregister it.
- Enables switching between implementations of bpf-tcp-cc under a name instantly by replacing the backing struct_ops map of a bpf_link.
Previously, BPF struct_ops didn't go off, as even when the user program creating it was terminated, none of these ever were pinned. For instance, the TCP congestion control subsystem indirectly maintains a reference count on the struct_ops of any registered BPF implemented algorithm. Thus, the algorithm won't be deactivated until someone deliberately unregisters it. For compatibility with other BPF programs, bpf_links have been created to work in coordination with struct_ops maps. This ensures that the registration and unregistration of these respective maps is carried out at the start and end of the bpf_link.
We also faced complications when attempting to replace an existing TCP congestion control algorithm with a new implementation on the fly. A struct_ops map was used to register a TCP congestion control algorithm with a unique name. We had to either register the alternative implementation with a new name and move over or unregister the current one before being able to reregistration with the same name. To fix this problem, we can an option to migrate the registration of the algorithm from struct_ops maps to bpf_links. By modifying the backing map of a bpf_link, it suddenly becomes possible to replace an existing TCP congestion control algorithm with ease.
Kui-Feng Lee (7):
bpf: Create links for BPF struct_ops maps.
net: Update an existing TCP congestion control algorithm.
bpf: Register and unregister a struct_ops by their bpf_links.
libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
bpf: Update the struct_ops of a bpf_link.
libbpf: Update a bpf_link with another struct_ops. selftests/bpf: Test switching TCP Congestion Control algorithms.
include/linux/bpf.h | 8 +- include/net/tcp.h | 2 + include/uapi/linux/bpf.h | 15 +- kernel/bpf/bpf_struct_ops.c | 176 +++++++++++++++++- kernel/bpf/syscall.c | 60 +++++- net/bpf/bpf_dummy_struct_ops.c | 6 + net/ipv4/bpf_tcp_ca.c | 8 +- net/ipv4/tcp_cong.c | 39 ++++ tools/include/uapi/linux/bpf.h | 7 + tools/lib/bpf/bpf.c | 2 + tools/lib/bpf/libbpf.c | 109 +++++++++-- tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 48 +++++ .../selftests/bpf/progs/tcp_ca_update.c | 75 ++++++++ 15 files changed, 526 insertions(+), 31 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/tcp_ca_update.c
Signature · 1 line
2.30.2
PATCH 1/7 bpf: Create links for BPF struct_ops maps.
BPF struct_ops maps are employed directly to register TCP Congestion Control algorithms. Unlike other BPF programs that terminate when their links gone, the struct_ops program reduces its refcount solely upon death of its FD. The link of a BPF struct_ops map provides a uniform experience akin to other types of BPF programs. A TCP Congestion Control algorithm will be unregistered upon destroying the FD in the following patches.
--- include/linux/bpf.h | 6 +++- include/uapi/linux/bpf.h | 4 +++ kernel/bpf/bpf_struct_ops.c | 66 ++++++++++++++++++++++++++++++++++ kernel/bpf/syscall.c | 29 ++++++++++----- tools/include/uapi/linux/bpf.h | 4 +++ tools/lib/bpf/bpf.c | 2 ++ tools/lib/bpf/libbpf.c | 1 + 7 files changed, 102 insertions(+), 10 deletions(-)
include/linux/bpf.h +5 -1
@@ -1391,7 +1391,11 @@ struct bpf_link {u32 id;enum bpf_link_type type;const struct bpf_link_ops *ops; -struct bpf_prog *prog; +union { +struct bpf_prog *prog; +/* Backed by a struct_ops (type == BPF_LINK_UPDATE_STRUCT_OPS) */ +struct bpf_map *map; + };struct work_struct work; };
include/uapi/linux/bpf.h +4 -0
@@ -1033,6 +1033,7 @@ enum bpf_attach_type {BPF_PERF_EVENT ,BPF_TRACE_KPROBE_MULTI ,BPF_LSM_CGROUP , +BPF_STRUCT_OPS_MAP , __MAX_BPF_ATTACH_TYPE };
@@ -6354,6 +6355,9 @@ struct bpf_link_info {struct {__u32 ifindex; } xdp; +struct { +__u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));
kernel/bpf/bpf_struct_ops.c +66 -0
69 lines not on this page · raw message
kernel/bpf/syscall.c +20 -9
@@ -2738,7 +2738,9 @@ static void bpf_link_free(struct bpf_link *link)if (link->prog) {/* detach BPF program, clean up used resources */ link->ops->release (link); -bpf_prog_put (link->prog); +if (link->type !=BPF_LINK_TYPE_STRUCT_OPS ) +bpf_prog_put (link->prog); +/* The struct_ops links clean up map by them-selves. */ }/* free bpf_link and its containing memory */ link->ops->dealloc (link);
@@ -2794,16 +2796,19 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp)const struct bpf_prog *prog = link->prog;char prog_tag[sizeof (prog->tag) *2 +1 ] = { }; -bin2hex (prog_tag, prog->tag,sizeof (prog->tag));seq_printf (m,"link_type:\t%s\n" -"link_id:\t%u\n" -"prog_tag:\t%s\n" -"prog_id:\t%u\n" , +"link_id:\t%u\n" , bpf_link_type_strs[link->type], - link->id, - prog_tag, - prog->aux->id); + link->id); +if (link->type !=BPF_LINK_TYPE_STRUCT_OPS ) { +bin2hex (prog_tag, prog->tag,sizeof (prog->tag)); +seq_printf (m, +"prog_tag:\t%s\n" +"prog_id:\t%u\n" , + prog_tag, + prog->aux->id); + }if (link->ops->show_fdinfo) link->ops->show_fdinfo (link, m); }
@@ -4278,7 +4283,8 @@ static int bpf_link_get_info_by_fd(struct file *file, info.type = link->type; info.id = link->id; - info.prog_id = link->prog->aux->id; +if (link->type !=BPF_LINK_TYPE_STRUCT_OPS ) + info.prog_id = link->prog->aux->id;if (link->ops->fill_link_info) { err = link->ops->fill_link_info (link, &info);
@@ -4531,6 +4537,8 @@ static int bpf_map_do_batch(const union bpf_attr *attr,return err; } +extern int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr); +#define BPF_LINK_CREATE_LAST_FIELD link_create.kprobe_multi.cookiesstatic int link_create (union bpf_attr *attr,bpfptr_t uattr) {
@@ -4541,6 +4549,9 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr)if (CHECK_ATTR (BPF_LINK_CREATE ))return -EINVAL ; +if (attr->link_create.attach_type ==BPF_STRUCT_OPS_MAP ) +return link_create_struct_ops_map (attr, uattr); + prog =bpf_prog_get (attr->link_create.prog_fd);if (IS_ERR (prog))return PTR_ERR (prog);
tools/include/uapi/linux/bpf.h +4 -0
@@ -1033,6 +1033,7 @@ enum bpf_attach_type {BPF_PERF_EVENT ,BPF_TRACE_KPROBE_MULTI ,BPF_LSM_CGROUP , +BPF_STRUCT_OPS_MAP , __MAX_BPF_ATTACH_TYPE };
@@ -6354,6 +6355,9 @@ struct bpf_link_info {struct {__u32 ifindex; } xdp; +struct { +__u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));
tools/lib/bpf/bpf.c +2 -0
@@ -731,6 +731,8 @@ int bpf_link_create(int prog_fd, int target_fd,if (!OPTS_ZEROED (opts, tracing))return libbpf_err (-EINVAL );break ; +case BPF_STRUCT_OPS_MAP : +break ;default :if (!OPTS_ZEROED (opts, flags))return libbpf_err (-EINVAL );
tools/lib/bpf/libbpf.c +1 -0
@@ -115,6 +115,7 @@ static const char * const attach_type_name[] = { [BPF_SK_REUSEPORT_SELECT_OR_MIGRATE] = "sk_reuseport_select_or_migrate", [BPF_PERF_EVENT] = "perf_event", [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", + [BPF_STRUCT_OPS_MAP] = "struct_ops_map", };static const char *const link_type_name[] = {
Signature · 1 line
2.30.2
kernel test robot
build botRe: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Thank you for the patch! Perhaps something to improve:
Hi Kui-Feng,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Kui-Feng-Lee/bpf-Create-links-for-BPF-struct_ops-maps/20230215-061816 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20230214221718.503964-2-kuifeng%40meta.com patch subject: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps. config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20230215/[email protected]/config) compiler: powerpc-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/c186fe88190559d4872279724d598b8d45ba3092
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Kui-Feng-Lee/bpf-Create-links-for-BPF-struct_ops-maps/20230215-061816 git checkout c186fe88190559d4872279724d598b8d45ba3092
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> kernel/bpf/bpf_struct_ops.c:736:5: warning: no previous prototype for 'link_create_struct_ops_map' [-Wmissing-prototypes]
736 | int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/link_create_struct_ops_map +736 kernel/bpf/bpf_struct_ops.c
735
> 736 int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr)
737 {
738 struct bpf_link_primer link_primer;
739 struct bpf_map *map;
740 struct bpf_link *link = NULL;
741 int err;
742
743 map = bpf_map_get(attr->link_create.prog_fd);
744 if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS)
745 return -EINVAL;
746
747 link = kzalloc(sizeof(*link), GFP_USER);
748 if (!link) {
749 err = -ENOMEM;
750 goto err_out;
751 }
752 bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL);
753 link->map = map;
754
755 err = bpf_link_prime(link, &link_primer);
756 if (err)
757 goto err_out;
758
759 return bpf_link_settle(&link_primer);
760
761 err_out:
762 bpf_map_put(map);
763 kfree(link);
764 return err;
765 }
766
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
Re: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
In reply to Kui-Feng LeeQuoted 28 lines · Kui-Feng Lee
BPF
struct_opsmaps are employed directly to register TCP Congestion Control algorithms. Unlike other BPF programs that terminate when their links gone, thestruct_opsprogram reduces its refcount solely upon death of its FD. The link of a BPFstruct_opsmap provides a uniform experience akin to other types of BPF programs. A TCP Congestion Control algorithm will be unregistered upon destroying the FD in the following patches.Signed-off-by Kui-Feng Lee <[email protected]>--- include/linux/bpf.h | 6 +++- include/uapi/linux/bpf.h | 4 +++ kernel/bpf/bpf_struct_ops.c | 66 ++++++++++++++++++++++++++++++++++ kernel/bpf/syscall.c | 29 ++++++++++----- tools/include/uapi/linux/bpf.h | 4 +++ tools/lib/bpf/bpf.c | 2 ++ tools/lib/bpf/libbpf.c | 1 + 7 files changed, 102 insertions(+), 10 deletions(-)include/linux/bpf.h +0
-1@@ -1391,7 +1391,11 @@ struct bpf_link {u32 id;enum bpf_link_type type;const struct bpf_link_ops *ops; -struct bpf_prog *prog;
[..]
include/linux/bpf.h struct bpf_link { · line 1398
Quoted 5 lines
include/linux/bpf.h +5
-0+union { +struct bpf_prog *prog; +/* Backed by a struct_ops (type == BPF_LINK_UPDATE_STRUCT_OPS) */ +struct bpf_map *map; + };
Any reason you're not using the approach that has been used for other links where we create a wrapping structure + container_of?
struct bpt_struct_ops_link {
struct bpf_link link;
struct bpf_map *map;
};Quoted 72 lines
struct work_struct work; };include/uapi/linux/bpf.h +4
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type {BPF_PERF_EVENT ,BPF_TRACE_KPROBE_MULTI ,BPF_LSM_CGROUP , +BPF_STRUCT_OPS_MAP , __MAX_BPF_ATTACH_TYPE };@@ -6354,6 +6355,9 @@ struct bpf_link_info {struct {__u32 ifindex; } xdp; +struct { +__u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));kernel/bpf/bpf_struct_ops.c +15
-0@@ -698,3 +698,69 @@ void bpf_struct_ops_put(const void *kdata)call_rcu (&st_map->rcu, bpf_struct_ops_put_rcu); } } + +static void bpf_struct_ops_map_link_release (struct bpf_link *link) +{ +if (link->map) { +bpf_map_put (link->map); + link->map =NULL ; + } +} + +static void bpf_struct_ops_map_link_dealloc (struct bpf_link *link) +{ +kfree (link); +} + +static void bpf_struct_ops_map_link_show_fdinfo(const struct bpf_link*link,
kernel/bpf/bpf_struct_ops.c +7
-0+ struct seq_file *seq) +{ +seq_printf (seq,"map_id:\t%d\n" , + link->map->id); +} + +static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link*link,
kernel/bpf/bpf_struct_ops.c +15
-0+ struct bpf_link_info *info) +{ + info->struct_ops_map.map_id = link->map->id; +return 0 ; +} + +static const struct bpf_link_ops bpf_struct_ops_map_lops = { + .release = bpf_struct_ops_map_link_release, + .dealloc = bpf_struct_ops_map_link_dealloc, + .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, + .fill_link_info = bpf_struct_ops_map_link_fill_link_info, +}; + +int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr) +{
[..]
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 740
Quoted 3 lines
kernel/bpf/bpf_struct_ops.c +3
-0+struct bpf_link_primer link_primer; +struct bpf_map *map; +struct bpf_link *link =NULL ;
Are we still trying to keep reverse christmas trees?
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 743
Quoted 3 lines
kernel/bpf/bpf_struct_ops.c +3
-0+int err; + + map =bpf_map_get (attr->link_create.prog_fd);
bpf_map_get can fail here?
Quoted 29 lines
kernel/bpf/bpf_struct_ops.c +9
-0+if (map->map_type !=BPF_MAP_TYPE_STRUCT_OPS ) +return -EINVAL ; + + link =kzalloc (sizeof (*link),GFP_USER ); +if (!link) { + err = -ENOMEM ; + goto err_out; + } + bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops,NULL);
kernel/bpf/bpf_struct_ops.c +14
-0+ link->map = map; + + err =bpf_link_prime (link, &link_primer); +if (err) + goto err_out; + +return bpf_link_settle (&link_primer); + +err_out: +bpf_map_put (map); +kfree (link); +return err; +} +kernel/bpf/syscall.c +0
-0
kernel/bpf/syscall.c static void bpf_link_free(struct bpf_link *link) · line 2743
Quoted 7 lines
kernel/bpf/syscall.c +3
-1@@ -2738,7 +2738,9 @@ static void bpf_link_free(struct bpf_link *link)if (link->prog) {/* detach BPF program, clean up used resources */ link->ops->release (link); -bpf_prog_put (link->prog); +if (link->type !=BPF_LINK_TYPE_STRUCT_OPS ) +bpf_prog_put (link->prog); +/* The struct_ops links clean up map by them-selves. */
Why not more generic:
if (link->prog)
bpf_prog_put(link->prog);
?
Quoted 32 lines
kernel/bpf/syscall.c +10
-7}/* free bpf_link and its containing memory */ link->ops->dealloc (link);@@ -2794,16 +2796,19 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp)const struct bpf_prog *prog = link->prog;char prog_tag[sizeof (prog->tag) *2 +1 ] = { }; -bin2hex (prog_tag, prog->tag,sizeof (prog->tag));seq_printf (m,"link_type:\t%s\n" -"link_id:\t%u\n" -"prog_tag:\t%s\n" -"prog_id:\t%u\n" , +"link_id:\t%u\n" , bpf_link_type_strs[link->type], - link->id, - prog_tag, - prog->aux->id); + link->id); +if (link->type !=BPF_LINK_TYPE_STRUCT_OPS ) { +bin2hex (prog_tag, prog->tag,sizeof (prog->tag)); +seq_printf (m, +"prog_tag:\t%s\n" +"prog_id:\t%u\n" , + prog_tag, + prog->aux->id); + }if (link->ops->show_fdinfo) link->ops->show_fdinfo (link, m);}
kernel/bpf/syscall.c static int bpf_link_get_info_by_fd(struct file · line 4288
Quoted 7 lines
kernel/bpf/syscall.c +2
-1@@ -4278,7 +4283,8 @@ static int bpf_link_get_info_by_fd(struct file *file, info.type = link->type; info.id = link->id; - info.prog_id = link->prog->aux->id; +if (link->type !=BPF_LINK_TYPE_STRUCT_OPS ) + info.prog_id = link->prog->aux->id;
Here as well: should we have "link->type != BPF_LINK_TYPE_STRUCT_OPS" vs "link->prog != NULL" ?
Quoted 73 lines
kernel/bpf/syscall.c +2
-0if (link->ops->fill_link_info) { err = link->ops->fill_link_info (link, &info);@@ -4531,6 +4537,8 @@ static int bpf_map_do_batch(const union bpf_attr *attr, return err; } +extern int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr); +#define BPF_LINK_CREATE_LAST_FIELD link_create.kprobe_multi.cookiesstatic int link_create(union bpf_attr *attr, bpfptr_t uattr) {kernel/bpf/syscall.c +3
-0@@ -4541,6 +4549,9 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr)if (CHECK_ATTR (BPF_LINK_CREATE ))return -EINVAL ; +if (attr->link_create.attach_type ==BPF_STRUCT_OPS_MAP ) +return link_create_struct_ops_map (attr, uattr); + prog =bpf_prog_get (attr->link_create.prog_fd);if (IS_ERR (prog))return PTR_ERR(prog);tools/include/uapi/linux/bpf.h +4
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type {BPF_PERF_EVENT ,BPF_TRACE_KPROBE_MULTI ,BPF_LSM_CGROUP , +BPF_STRUCT_OPS_MAP , __MAX_BPF_ATTACH_TYPE };@@ -6354,6 +6355,9 @@ struct bpf_link_info {struct {__u32 ifindex; } xdp; +struct { +__u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));tools/lib/bpf/bpf.c +2
-0@@ -731,6 +731,8 @@ int bpf_link_create(int prog_fd, int target_fd,if (!OPTS_ZEROED (opts, tracing))return libbpf_err (-EINVAL );break ; +case BPF_STRUCT_OPS_MAP : +break ;default :if (!OPTS_ZEROED (opts, flags))return libbpf_err (-EINVAL );tools/lib/bpf/libbpf.c +1
-1@@ -115,6 +115,7 @@ static const char * const attach_type_name[] = { [BPF_SK_REUSEPORT_SELECT_OR_MIGRATE] = "sk_reuseport_select_or_migrate", [BPF_PERF_EVENT] = "perf_event", [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", + [BPF_STRUCT_OPS_MAP] = "struct_ops_map", };static const char *const link_type_name[] = { --2.30.2
Re: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Thank you for the feedback.
Quoted 39 lines · Stanislav Fomichev
Quoted 28 lines · Kui-Feng Lee
BPF
struct_opsmaps are employed directly to register TCP Congestion Control algorithms. Unlike other BPF programs that terminate when their links gone, thestruct_opsprogram reduces its refcount solely upon death of its FD. The link of a BPFstruct_opsmap provides a uniform experience akin to other types of BPF programs. A TCP Congestion Control algorithm will be unregistered upon destroying the FD in the following patches.Signed-off-by Kui-Feng Lee <[email protected]>---
include/linux/bpf.h | 6 +++- include/uapi/linux/bpf.h | 4 +++ kernel/bpf/bpf_struct_ops.c | 66 ++++++++++++++++++++++++++++++++++ kernel/bpf/syscall.c | 29 ++++++++++-----tools/include/uapi/linux/bpf.h| 4 +++ tools/lib/bpf/bpf.c | 2 ++ tools/lib/bpf/libbpf.c | 1 +7 files changed, 102 insertions(+), 10 deletions(-)include/linux/bpf.h +0
-1@@ -1391,7 +1391,11 @@ struct bpf_link { u32 id; enum bpf_link_type type; const struct bpf_link_ops *ops; - struct bpf_prog *prog;[..]
Quoted 6 lines
+ union {
+ structbpf_prog*prog;
+ /* Backed by astruct_ops(type ==BPF_LINK_UPDATE_STRUCT_OPS) */
+ structbpf_map*map;
+ };
Quoted 8 lines
Any reason you're not using the approach that has been used for other links where we create a wrapping structure +
container_of?struct
bpt_struct_ops_link{
structbpf_linklink;
structbpf_map*map;
};
map and prog are meant to be used separately, while union is designed for this purpose.
The container_of approach also works. While both container_of and union are often used, is there any factor that makes the former a better choice than the latter?
Quoted 75 lines
Quoted 72 lines
struct
work_structwork;
};include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type { BPF_PERF_EVENT, BPF_TRACE_KPROBE_MULTI, BPF_LSM_CGROUP, + BPF_STRUCT_OPS_MAP,
__MAX_BPF_ATTACH_TYPE
};include/uapi/linux/bpf.h +3
-0@@ -6354,6 +6355,9 @@ struct bpf_link_info { struct { __u32 ifindex; } xdp; + struct { + __u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));kernel/bpf/bpf_struct_ops.c +15
-0@@ -698,3 +698,69 @@ void bpf_struct_ops_put(const void *kdata) call_rcu(&st_map->rcu, bpf_struct_ops_put_rcu); } } + +static void bpf_struct_ops_map_link_release (struct bpf_link *link) +{ + if (link->map) { + bpf_map_put(link->map); + link->map = NULL; + } +} + +static void bpf_struct_ops_map_link_dealloc (struct bpf_link *link) +{ + kfree(link); +} + +static void bpf_struct_ops_map_link_show_fdinfo(const struct
bpf_link*link,
+ structseq_file*seq)kernel/bpf/bpf_struct_ops.c +6
-0+{ + seq_printf(seq, "map_id:\t%d\n", + link->map->id); +} + +static int bpf_struct_ops_map_link_fill_link_info(const struct
bpf_link*link,
+ structbpf_link_info*info)kernel/bpf/bpf_struct_ops.c +14
-0+{ + info->struct_ops_map.map_id = link->map->id; + return 0; +} + +static const struct bpf_link_ops bpf_struct_ops_map_lops = { + .release = bpf_struct_ops_map_link_release, + .dealloc = bpf_struct_ops_map_link_dealloc, + .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, + .fill_link_info = bpf_struct_ops_map_link_fill_link_info, +}; + +int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr) +{[..]
Quoted 5 lines
Quoted 3 lines
+ struct
bpf_link_primerlink_primer;
+ structbpf_map*map;
+ structbpf_link*link = NULL;Are we still trying to keep reverse christmas trees?
Yes, I will reorder them.
Quoted 6 lines
Quoted 4 lines
+ int err;
+
+ map =bpf_map_get(attr->link_create.prog_fd);
bpf_map_getcan fail here?
We have already verified the attach_type of the link before calling this function, so an error should not occur. If it does happen, however, something truly unusual must be happening. To ensure maximum protection and avoid this issue in the future, I will add a check here as well.
Quoted 40 lines
Quoted 30 lines
+ if (
map->map_type!=BPF_MAP_TYPE_STRUCT_OPS) + return-EINVAL;
+
+ link =kzalloc(sizeof(*link), GFP_USER); + if (!link) {
+ err =-ENOMEM;
+ gotoerr_out;
+ }
+bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL);
+link->map= map;kernel/bpf/bpf_struct_ops.c +13
-0+ + err = bpf_link_prime(link, &link_primer); + if (err) + goto err_out; + + return bpf_link_settle(&link_primer); + +err_out: + bpf_map_put(map); + kfree(link); + return err; +} +kernel/bpf/syscall.c +0
-0kernel/bpf/syscall.c static void bpf_link_free(struct bpf_link *link) · line 2743
Quoted 7 lines
kernel/bpf/syscall.c +3
-1@@ -2738,7 +2738,9 @@ static void bpf_link_free(struct bpf_link *link) if (link->prog) { /* detach BPF program, clean up used resources */ link->ops->release(link); - bpf_prog_put(link->prog); + if (link->type != BPF_LINK_TYPE_STRUCT_OPS) + bpf_prog_put(link->prog); + /* The struct_ops links clean up map by them-selves. */Why not more generic:
Quoted 4 lines
if (
link->prog)
bpf_prog_put(link->prog);?
The prog and map functions are now occupying the same space. I'm afraid this check won't work.
Quoted 36 lines
Quoted 35 lines
kernel/bpf/syscall.c +0
-1} /* free bpf_link and its containing memory */ link->ops->dealloc(link);@@ -2794,16 +2796,19 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp) const struct bpf_prog *prog = link->prog; char prog_tag[sizeof(prog->tag) * 2 + 1] = { }; - bin2hex(prog_tag, prog->tag, sizeof(prog->tag)); seq_printf(m,"link_type:\t%s\n"
- "link_id:\t%u\n"
- "prog_tag:\t%s\n"
- "prog_id:\t%u\n",
+ "link_id:\t%u\n", bpf_link_type_strs[link->type],
-link->id,
-prog_tag,
-prog->aux->id);
+link->id);
+ if (link->type!=BPF_LINK_TYPE_STRUCT_OPS) { +bin2hex(prog_tag, prog->tag, sizeof(prog->tag)); + seq_printf(m,
+ "prog_tag:\t%s\n"
+ "prog_id:\t%u\n",
+prog_tag,
+prog->aux->id);
+ }
if (link->ops->show_fdinfo)link->ops->show_fdinfo(link, m);
}kernel/bpf/syscall.c +0
-0@@ -4278,7 +4283,8 @@ static int bpf_link_get_info_by_fd(struct file *file,
Quoted 8 lines
kernel/bpf/syscall.c static int bpf_link_get_info_by_fd(struct file *file, · line 4287
Quoted 5 lines
kernel/bpf/syscall.c +2
-1info.type = link->type; info.id = link->id; - info.prog_id = link->prog->aux->id; + if (link->type != BPF_LINK_TYPE_STRUCT_OPS) + info.prog_id = link->prog->aux->id;Here as well: should we have "
link->type!=BPF_LINK_TYPE_STRUCT_OPS" vs "link->prog!= NULL" ?
Same as above. map and prog share the same memory space.
Quoted 76 lines
Quoted 75 lines
kernel/bpf/syscall.c +2
-0if (link->ops->fill_link_info) { err = link->ops->fill_link_info(link, &info);@@ -4531,6 +4537,8 @@ static int bpf_map_do_batch(const unionbpf_attr *attr, return err; } +extern int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr); + #define BPF_LINK_CREATE_LAST_FIELD link_create.kprobe_multi.cookiesstatic int
link_create(union bpf_attr *attr, bpfptr_t uattr){kernel/bpf/syscall.c +3
-0@@ -4541,6 +4549,9 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr) if (CHECK_ATTR(BPF_LINK_CREATE)) return -EINVAL; + if (attr->link_create.attach_type == BPF_STRUCT_OPS_MAP) + return link_create_struct_ops_map(attr, uattr); + prog = bpf_prog_get(attr->link_create.prog_fd); if (IS_ERR(prog))return
PTR_ERR(prog);tools/include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type { BPF_PERF_EVENT, BPF_TRACE_KPROBE_MULTI, BPF_LSM_CGROUP, + BPF_STRUCT_OPS_MAP,
__MAX_BPF_ATTACH_TYPE
};tools/include/uapi/linux/bpf.h +3
-0@@ -6354,6 +6355,9 @@ struct bpf_link_info { struct { __u32 ifindex; } xdp; + struct { + __u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));tools/lib/bpf/bpf.c +2
-0@@ -731,6 +731,8 @@ int bpf_link_create(int prog_fd, int target_fd, if (!OPTS_ZEROED(opts, tracing)) return libbpf_err(-EINVAL); break; + case BPF_STRUCT_OPS_MAP: + break;default:
if (!OPTS_ZEROED(opts, flags))
returnlibbpf_err(-EINVAL);tools/lib/bpf/libbpf.c +1
-0@@ -115,6 +115,7 @@ static const char * const attach_type_name[] = { [BPF_SK_REUSEPORT_SELECT_OR_MIGRATE] = "sk_reuseport_select_or_migrate", [BPF_PERF_EVENT] = "perf_event", [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", + [BPF_STRUCT_OPS_MAP] = "struct_ops_map", }; static const char * const link_type_name[] = {Signature · 1 line
2.30.2
Re: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Quoted 52 lines · Kui-Feng Lee
Thank you for the feedback.
Quoted 9 lines · Stanislav Fomichev
Quoted 7 lines · Kui-Feng Lee
BPF
struct_opsmaps are employed directly to register TCP Congestion Control algorithms. Unlike other BPF programs that terminate when their links gone, thestruct_opsprogram reduces its refcount solely upon death of its FD. The link of a BPFstruct_opsmap provides a uniform experience akin to other types of BPF programs.� A TCP Congestion Control algorithm will be unregistered upon destroying the FD in the following patches.Quoted 5 lines
Quoted 5 lines
Signed-off-by Kui-Feng Lee <[email protected]>---
� include/linux/bpf.h����������� |� 6 +++-
� include/uapi/linux/bpf.h������ |� 4 +++
� kernel/bpf/bpf_struct_ops.c��� | 66++++++++++++++++++++++++++++++++++
Quoted 25 lines
Quoted 15 lines
� kernel/bpf/syscall.c���������� | 29 ++++++++++----- �
tools/include/uapi/linux/bpf.h|� 4 +++
� tools/lib/bpf/bpf.c����������� |� 2 ++
� tools/lib/bpf/libbpf.c�������� |� 1 +
� 7 files changed, 102 insertions(+), 10 deletions(-)include/linux/bpf.h +0
-1@@ -1391,7 +1391,11 @@ struct bpf_link { ����� u32 id; ����� enum bpf_link_type type; ����� const struct bpf_link_ops *ops; -��� struct bpf_prog *prog;[..]
Quoted 6 lines
+��� union {
+������� structbpf_prog*prog;
+������� /* Backed by astruct_ops(type ==BPF_LINK_UPDATE_STRUCT_OPS) */
+������� structbpf_map*map;
+��� };Quoted 8 lines
Any reason you're not using the approach that has been used for other links where we create a wrapping structure +
container_of?struct
bpt_struct_ops_link{
����structbpf_linklink;
����structbpf_map*map;
};
Quoted 6 lines
mapandprogare meant to be used separately, whileunionis designed for this purpose.The
container_ofapproach also works. While bothcontainer_ofandunionare often used, is there any factor that makes the former a better choice than the latter?
I guess I'm missing something here. Because you seem to add that container_of approach later on with 'fake' links. Maybe you can clarify on the patch where I made that comment?
Quoted 89 lines
Quoted 75 lines
Quoted 72 lines
����� struct
work_structwork;
� };include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type { ����� BPF_PERF_EVENT, ����� BPF_TRACE_KPROBE_MULTI, ����� BPF_LSM_CGROUP, +��� BPF_STRUCT_OPS_MAP,�����
__MAX_BPF_ATTACH_TYPE
� };include/uapi/linux/bpf.h +3
-0@@ -6354,6 +6355,9 @@ struct bpf_link_info { ��������� struct { ������������� __u32 ifindex; ��������� } xdp; +������� struct { +����������� __u32 map_id; +������� } struct_ops_map; ����� }; � } __attribute__((aligned(8)));kernel/bpf/bpf_struct_ops.c +15
-0@@ -698,3 +698,69 @@ void bpf_struct_ops_put(const void *kdata) ��������� call_rcu(&st_map->rcu, bpf_struct_ops_put_rcu); ����� } � } + +static void bpf_struct_ops_map_link_release (struct bpf_link *link) +{ +��� if (link->map) { +������� bpf_map_put(link->map); +������� link->map = NULL; +��� } +} + +static void bpf_struct_ops_map_link_dealloc (struct bpf_link *link) +{ +��� kfree(link); +} + +static void bpf_struct_ops_map_link_show_fdinfo(const struct
bpf_link*link,
+����������������������� structseq_file*seq)kernel/bpf/bpf_struct_ops.c +6
-0+{ +��� seq_printf(seq, "map_id:\t%d\n", +��������� link->map->id); +} + +static int bpf_struct_ops_map_link_fill_link_info(const struct
bpf_link*link,
+�������������������������� structbpf_link_info*info)kernel/bpf/bpf_struct_ops.c +14
-0+{ +��� info->struct_ops_map.map_id = link->map->id; +��� return 0; +} + +static const struct bpf_link_ops bpf_struct_ops_map_lops = { +��� .release = bpf_struct_ops_map_link_release, +��� .dealloc = bpf_struct_ops_map_link_dealloc, +��� .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, +��� .fill_link_info = bpf_struct_ops_map_link_fill_link_info, +}; + +int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr) +{[..]
Quoted 5 lines
Quoted 3 lines
+��� struct
bpf_link_primerlink_primer;
+��� structbpf_map*map;
+��� structbpf_link*link = NULL;Are we still trying to keep reverse christmas trees?
Yes, I will reorder them.
Quoted 5 lines
Quoted 4 lines
+��� int err;
+
+��� map =bpf_map_get(attr->link_create.prog_fd);
Quoted 7 lines
Quoted 1 line
bpf_map_getcan fail here?We have already verified the
attach_typeof the link before calling this function, so an error should not occur. If it does happen, however, something truly unusual must be happening. To ensure maximum protection and avoid this issue in the future, I will add a check here as well.
If we've already checked, it's fine not to check here. I haven't looked at the real path, thanks for clarifying.
Quoted 40 lines
Quoted 40 lines
Quoted 31 lines
+��� if (
map->map_type!=BPF_MAP_TYPE_STRUCT_OPS) +������� return-EINVAL;
+
+��� link =kzalloc(sizeof(*link), GFP_USER); +��� if (!link) {
+������� err =-ENOMEM;
+������� gotoerr_out;
+��� }
+���bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL);
+���link->map= map;kernel/bpf/bpf_struct_ops.c +13
-0+ +��� err = bpf_link_prime(link, &link_primer); +��� if (err) +������� goto err_out; + +��� return bpf_link_settle(&link_primer); + +err_out: +��� bpf_map_put(map); +��� kfree(link); +��� return err; +} +kernel/bpf/syscall.c +0
-0@@ -2738,7 +2738,9 @@ static void bpf_link_free(struct bpf_link *link) ����� if (link->prog) {Quoted 6 lines
��������� /* detach BPF program, clean up used resources */ ���������
link->ops->release(link);
-�������bpf_prog_put(link->prog);
+������� if (link->type!=BPF_LINK_TYPE_STRUCT_OPS) +�����������bpf_prog_put(link->prog);
+������� /* Thestruct_opslinks clean up map by them-selves. */Why not more generic:
Quoted 6 lines
Quoted 4 lines
if (
link->prog)
����bpf_prog_put(link->prog);?
The
progandmapfunctions are now occupying the same space. I'm afraid this check won't work.
Hmm, good point. In this case: why not have separate prog/map pointers instead of a union? Are we 100% sure struct_ops is unique enough and there won't ever be another map-based links?
Quoted 127 lines
Quoted 36 lines
Quoted 35 lines
����� }
����� /* freebpf_linkand its containing memory */ �����link->ops->dealloc(link);kernel/bpf/syscall.c +0
-1@@ -2794,16 +2796,19 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp) ����� const struct bpf_prog *prog = link->prog; ����� char prog_tag[sizeof(prog->tag) * 2 + 1] = { }; -��� bin2hex(prog_tag, prog->tag, sizeof(prog->tag)); ����� seq_printf(m,������������ "link_type:\t%s\n"
-���������� "link_id:\t%u\n"
-���������� "prog_tag:\t%s\n"
-���������� "prog_id:\t%u\n",
+���������� "link_id:\t%u\n",
������������ bpf_link_type_strs[link->type], -����������link->id,
-����������prog_tag,
-����������prog->aux->id);
+����������link->id);
+��� if (link->type!=BPF_LINK_TYPE_STRUCT_OPS) { +�������bin2hex(prog_tag, prog->tag, sizeof(prog->tag)); +������� seq_printf(m,
+�������������� "prog_tag:\t%s\n" +�������������� "prog_id:\t%u\n", +��������������prog_tag,
+��������������prog->aux->id);
+��� }
����� if (link->ops->show_fdinfo)
���������link->ops->show_fdinfo(link, m);
� }kernel/bpf/syscall.c +0
-0@@ -4278,7 +4283,8 @@ static int bpf_link_get_info_by_fd(struct file *file,Quoted 8 lines
kernel/bpf/syscall.c static int bpf_link_get_info_by_fd(struct file · line 4287
Quoted 5 lines
kernel/bpf/syscall.c +2
-1����� info.type = link->type; ����� info.id = link->id; -��� info.prog_id = link->prog->aux->id; +��� if (link->type != BPF_LINK_TYPE_STRUCT_OPS) +������� info.prog_id = link->prog->aux->id;Here as well: should we have "
link->type!=BPF_LINK_TYPE_STRUCT_OPS" vs "link->prog!= NULL" ?Same as above.�
mapandprogshare the same memory space.Quoted 78 lines
Quoted 77 lines
kernel/bpf/syscall.c +2
-0����� if (link->ops->fill_link_info) { ��������� err = link->ops->fill_link_info(link, &info);@@ -4531,6 +4537,8 @@ static int bpf_map_do_batch(const unionbpf_attr *attr, ����� return err; � } +extern int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr); +� #define
BPF_LINK_CREATE_LAST_FIELDlink_create.kprobe_multi.cookies � static intlink_create(union bpf_attr *attr, bpfptr_t uattr)� {kernel/bpf/syscall.c +3
-0@@ -4541,6 +4549,9 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr) ����� if (CHECK_ATTR(BPF_LINK_CREATE)) ��������� return -EINVAL; +��� if (attr->link_create.attach_type == BPF_STRUCT_OPS_MAP) +������� return link_create_struct_ops_map(attr, uattr); + ����� prog = bpf_prog_get(attr->link_create.prog_fd); ����� if (IS_ERR(prog))��������� return
PTR_ERR(prog);tools/include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type { ����� BPF_PERF_EVENT, ����� BPF_TRACE_KPROBE_MULTI, ����� BPF_LSM_CGROUP, +��� BPF_STRUCT_OPS_MAP,�����
__MAX_BPF_ATTACH_TYPE
� };tools/include/uapi/linux/bpf.h +3
-0@@ -6354,6 +6355,9 @@ struct bpf_link_info { ��������� struct { ������������� __u32 ifindex; ��������� } xdp; +������� struct { +����������� __u32 map_id; +������� } struct_ops_map; ����� }; � } __attribute__((aligned(8)));tools/lib/bpf/bpf.c +2
-0@@ -731,6 +731,8 @@ int bpf_link_create(int prog_fd, int target_fd, ��������� if (!OPTS_ZEROED(opts, tracing)) ������������� return libbpf_err(-EINVAL); ��������� break; +��� case BPF_STRUCT_OPS_MAP: +������� break;����� default:
��������� if (!OPTS_ZEROED(opts, flags))
������������� returnlibbpf_err(-EINVAL);tools/lib/bpf/libbpf.c +0
-0@@ -115,6 +115,7 @@ static const char * const attach_type_name[] = {����� [BPF_SK_REUSEPORT_SELECT_OR_MIGRATE]��� = "
sk_reuseport_select_or_migrate",
����� [BPF_PERF_EVENT]������� = "perf_event", ����� [BPF_TRACE_KPROBE_MULTI]��� = "trace_kprobe_multi", +��� [BPF_STRUCT_OPS_MAP]������� = "struct_ops_map", � };� static const char * const link_type_name[] = {
--
2.30.2
Re: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Quoted 6 lines · Stanislav Fomichev
Quoted 5 lines · Kui-Feng Lee
Thank you for the feedback.
Quoted 1 line · Stanislav Fomichev
On 02/14, Kui-Feng Lee wrote:
[..]
Quoted 44 lines
Quoted 44 lines
Quoted 22 lines
Quoted 22 lines
+��� if (
map->map_type!=BPF_MAP_TYPE_STRUCT_OPS) +������� return-EINVAL;
+
+��� link =kzalloc(sizeof(*link), GFP_USER); +��� if (!link) {
+������� err =-ENOMEM;
+������� gotoerr_out;
+��� }
+���bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL);
+���link->map= map;(quoted diff) +10
-0+ +��� err = bpf_link_prime(link, &link_primer); +��� if (err) +������� goto err_out; + +��� return bpf_link_settle(&link_primer); + +err_out: +��� bpf_map_put(map); +��� kfree(link);Quoted 8 lines
kernel/bpf/syscall.c static void bpf_link_free(struct bpf_link
Quoted 8 lines
+��� return err;
(quoted diff) +2
-0+} +kernel/bpf/syscall.c +0
-0@@ -2738,7 +2738,9 @@ static void bpf_link_free(struct bpf_link*link)
Quoted 13 lines
Quoted 7 lines
kernel/bpf/syscall.c +0
-0����� if (link->prog) {��������� /* detach BPF program, clean up used resources */ ���������
link->ops->release(link);
-�������bpf_prog_put(link->prog);
+������� if (link->type!=BPF_LINK_TYPE_STRUCT_OPS) +�����������bpf_prog_put(link->prog);
+������� /* Thestruct_opslinks clean up map by them-selves. */Why not more generic:
if (
link->prog)
����bpf_prog_put(link->prog);
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
?
The
progandmapfunctions are now occupying the same space. I'm afraid this check won't work.Hmm, good point. In this case: why not have separate prog/map pointers instead of a union? Are we 100% sure
struct_opsis unique enough and there won't ever be another map-based links?
Good question!
bpf_link is used to attach a single BPF program with a hook now. This patch takes things one step further, allowing the attachment of struct_ops. We can think of it as attaching a set of BPF programs to a pre-existing set of hooks. I would say that bpf_link now represents the attachments of a set of BPF programs to a pre-defined set of hooks. The size of a set is one for the case of attaching single BPF program.
Is creating a new map-based link indicative of introducing an entirely distinct type of map that reflects a set of BPF programs? If so, why doesn't struct_ops work? If it happens, we may need to create a function to validate the attach_type associated with any given map type.
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Quoted 60 lines · Kui-Feng Lee
Quoted 6 lines · Stanislav Fomichev
Quoted 5 lines · Kui-Feng Lee
Thank you for the feedback.
Quoted 1 line · Stanislav Fomichev
On 02/14, Kui-Feng Lee wrote:
[..]
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 31 lines
+��� if (
map->map_type!=BPF_MAP_TYPE_STRUCT_OPS) +������� return-EINVAL;
+
+��� link =kzalloc(sizeof(*link), GFP_USER); +��� if (!link) {
+������� err =-ENOMEM;
+������� gotoerr_out;
+��� }
+���bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL);
+���link->map= map;(quoted diff) +13
-0+ +��� err = bpf_link_prime(link, &link_primer); +��� if (err) +������� goto err_out; + +��� return bpf_link_settle(&link_primer); + +err_out: +��� bpf_map_put(map); +��� kfree(link); +��� return err; +} +kernel/bpf/syscall.c +0
-0@@ -2738,7 +2738,9 @@ static void bpf_link_free(struct bpf_link *link) ����� if (link->prog) {Quoted 6 lines
��������� /* detach BPF program, clean up used resources */ ���������
link->ops->release(link);
-�������bpf_prog_put(link->prog);
+������� if (link->type!=BPF_LINK_TYPE_STRUCT_OPS) +�����������bpf_prog_put(link->prog);
+������� /* Thestruct_opslinks clean up map by them-selves. */Why not more generic:
if (
link->prog)
����bpf_prog_put(link->prog);Quoted 8 lines
Quoted 3 lines
Quoted 1 line
?
The
progandmapfunctions are now occupying the same space. I'm afraid this check won't work.Hmm, good point. In this case: why not have separate prog/map pointers instead of a union? Are we 100% sure
struct_opsis unique enough and there won't ever be another map-based links?
Quoted 6 lines
Good question!
bpf_linkis used to attach a single BPF program with a hook now. This patch takes things one step further, allowing the attachment ofstruct_ops. We can think of it as attaching a set of BPF programs to a pre-existing set of hooks. I would say thatbpf_linknow represents the attachments of a set of BPF programs to a pre-defined set of hooks. The size of a set is one for the case of attaching single BPF program.Is creating a new map-based link indicative of introducing an entirely distinct type of map that reflects a set of BPF programs? If so, why doesn't
struct_opswork? If it happens, we may need to create a function to validate theattach_typeassociated with any given map type.
I also prefer separating 'prog' and 'map' in the link. It may be only struct_ops link that has no prog now but the future link type may not have prog also, so testing link->prog is less tie-up to a specific link type. Once separated, it makes sense to push the link's specific field to a new struct, so the following (from Stan) makes more sense:
struct bpt_struct_ops_link {
struct bpf_link link;
struct bpf_map *map;
};In bpf_link_free(), there is no need to do an extra check for 'link->type != BPF_LINK_TYPE_STRUCT_OPS'. bpf_struct_ops_map_link_release() can be done together in bpf_struct_ops_map_link_dealloc().
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
In reply to Kui-Feng LeeQuoted 8 lines · Kui-Feng Lee
Quoted 5 lines
Quoted 3 lines
+ int err;
+
+ map =bpf_map_get(attr->link_create.prog_fd);
bpf_map_getcan fail here?We have already verified the
attach_typeof the link before calling this function, so an error should not occur. If it does happen, however, something truly unusual must be happening. To ensure maximum protection and avoid this issue in the future, I will add a check here as well.
bpf_map_get() could fail. A valid attach_type does not mean prog_fd (actually map_fd here) is also valid.
Re: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Quoted 11 lines · Martin KaFai Lau
Quoted 8 lines · Kui-Feng Lee
Quoted 5 lines
Quoted 3 lines
+ int err;
+
+ map =bpf_map_get(attr->link_create.prog_fd);
bpf_map_getcan fail here?We have already verified the
attach_typeof the link before calling this function, so an error should not occur. If it does happen, however, something truly unusual must be happening. To ensure maximum protection and avoid this issue in the future, I will add a check here as well.
bpf_map_get()could fail. A validattach_typedoes not meanprog_fd(actuallymap_fdhere) is also valid.
You are right! I must mess up with the update one.
I will add a check.
kernel test robot
build botRe: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
In reply to Kui-Feng LeeThank you for the patch! Yet something to improve:
Hi Kui-Feng,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Kui-Feng-Lee/bpf-Create-links-for-BPF-struct_ops-maps/20230215-061816 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20230214221718.503964-2-kuifeng%40meta.com patch subject: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps. config: i386-randconfig-a011-20230213 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/c186fe88190559d4872279724d598b8d45ba3092
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Kui-Feng-Lee/bpf-Create-links-for-BPF-struct_ops-maps/20230215-061816 git checkout c186fe88190559d4872279724d598b8d45ba3092
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
ld: kernel/bpf/syscall.o: in function `link_create':
>> kernel/bpf/syscall.c:4563: undefined reference to `link_create_struct_ops_map'
vim +4563 kernel/bpf/syscall.c
4551
4552 #define BPF_LINK_CREATE_LAST_FIELD link_create.kprobe_multi.cookies
4553 static int link_create(union bpf_attr *attr, bpfptr_t uattr)
4554 {
4555 enum bpf_prog_type ptype;
4556 struct bpf_prog *prog;
4557 int ret;
4558
4559 if (CHECK_ATTR(BPF_LINK_CREATE))
4560 return -EINVAL;
4561
4562 if (attr->link_create.attach_type == BPF_STRUCT_OPS_MAP)
> 4563 return link_create_struct_ops_map(attr, uattr);
4564
4565 prog = bpf_prog_get(attr->link_create.prog_fd);
4566 if (IS_ERR(prog))
4567 return PTR_ERR(prog);
4568
4569 ret = bpf_prog_attach_check_attach_type(prog,
4570 attr->link_create.attach_type);
4571 if (ret)
4572 goto out;
4573
4574 switch (prog->type) {
4575 case BPF_PROG_TYPE_EXT:
4576 break;
4577 case BPF_PROG_TYPE_PERF_EVENT:
4578 case BPF_PROG_TYPE_TRACEPOINT:
4579 if (attr->link_create.attach_type != BPF_PERF_EVENT) {
4580 ret = -EINVAL;
4581 goto out;
4582 }
4583 break;
4584 case BPF_PROG_TYPE_KPROBE:
4585 if (attr->link_create.attach_type != BPF_PERF_EVENT &&
4586 attr->link_create.attach_type != BPF_TRACE_KPROBE_MULTI) {
4587 ret = -EINVAL;
4588 goto out;
4589 }
4590 break;
4591 default:
4592 ptype = attach_type_to_prog_type(attr->link_create.attach_type);
4593 if (ptype == BPF_PROG_TYPE_UNSPEC || ptype != prog->type) {
4594 ret = -EINVAL;
4595 goto out;
4596 }
4597 break;
4598 }
4599
4600 switch (prog->type) {
4601 case BPF_PROG_TYPE_CGROUP_SKB:
4602 case BPF_PROG_TYPE_CGROUP_SOCK:
4603 case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
4604 case BPF_PROG_TYPE_SOCK_OPS:
4605 case BPF_PROG_TYPE_CGROUP_DEVICE:
4606 case BPF_PROG_TYPE_CGROUP_SYSCTL:
4607 case BPF_PROG_TYPE_CGROUP_SOCKOPT:
4608 ret = cgroup_bpf_link_attach(attr, prog);
4609 break;
4610 case BPF_PROG_TYPE_EXT:
4611 ret = bpf_tracing_prog_attach(prog,
4612 attr->link_create.target_fd,
4613 attr->link_create.target_btf_id,
4614 attr->link_create.tracing.cookie);
4615 break;
4616 case BPF_PROG_TYPE_LSM:
4617 case BPF_PROG_TYPE_TRACING:
4618 if (attr->link_create.attach_type != prog->expected_attach_type) {
4619 ret = -EINVAL;
4620 goto out;
4621 }
4622 if (prog->expected_attach_type == BPF_TRACE_RAW_TP)
4623 ret = bpf_raw_tp_link_attach(prog, NULL);
4624 else if (prog->expected_attach_type == BPF_TRACE_ITER)
4625 ret = bpf_iter_link_attach(attr, uattr, prog);
4626 else if (prog->expected_attach_type == BPF_LSM_CGROUP)
4627 ret = cgroup_bpf_link_attach(attr, prog);
4628 else
4629 ret = bpf_tracing_prog_attach(prog,
4630 attr->link_create.target_fd,
4631 attr->link_create.target_btf_id,
4632 attr->link_create.tracing.cookie); 4633 break;
4634 case BPF_PROG_TYPE_FLOW_DISSECTOR:
4635 case BPF_PROG_TYPE_SK_LOOKUP:
4636 ret = netns_bpf_link_create(attr, prog);
4637 break;
4638 #ifdef CONFIG_NET
4639 case BPF_PROG_TYPE_XDP:
4640 ret = bpf_xdp_link_attach(attr, prog);
4641 break;
4642 #endif
4643 case BPF_PROG_TYPE_PERF_EVENT:
4644 case BPF_PROG_TYPE_TRACEPOINT:
4645 ret = bpf_perf_link_attach(attr, prog);
4646 break;
4647 case BPF_PROG_TYPE_KPROBE:
4648 if (attr->link_create.attach_type == BPF_PERF_EVENT)
4649 ret = bpf_perf_link_attach(attr, prog);
4650 else
4651 ret = bpf_kprobe_multi_link_attach(attr, prog);
4652 break;
4653 default:
4654 ret = -EINVAL;
4655 }
4656
4657 out:
4658 if (ret < 0)
4659 bpf_prog_put(prog);
4660 return ret;
4661 }
4662
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 6.2.0-rc7 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-11 (Debian 11.3.0-8) 11.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=110300 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23990CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23990CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123CONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not setCONFIG_UAPI_HEADER_TEST=yCONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_HAVE_KERNEL_ZSTD=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not setCONFIG_KERNEL_ZSTD=yCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_WATCH_QUEUE is not setCONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_USELIB is not setCONFIG_AUDIT=yCONFIG_HAVE_ARCH_AUDITSYSCALL=yCONFIG_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ is not setCONFIG_HIGH_RES_TIMERS=yCONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_JIT=y
#
# BPF subsystem
#CONFIG_BPF_SYSCALL=y
# CONFIG_BPF_JIT is not setCONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not set
# end of BPF subsystem
CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
# CONFIG_PREEMPT_DYNAMIC is not set
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not setCONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not setCONFIG_TASKSTATS=y
# CONFIG_TASK_DELAY_ACCT is not setCONFIG_TASK_XACCT=y
# CONFIG_TASK_IO_ACCOUNTING is not setCONFIG_PSI=y
# CONFIG_PSI_DEFAULT_DISABLED is not set
# end of CPU/Task time and stats accounting
#
# RCU Subsystem
#CONFIG_TINY_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TINY_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem
CONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_IKHEADERS=yCONFIG_LOG_BUF_SHIFT=20CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
# CONFIG_PRINTK_INDEX is not setCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_GCC11_NO_ARRAY_BOUNDS=y CONFIG_GCC12_NO_ARRAY_BOUNDS=y CONFIG_CC_NO_ARRAY_BOUNDS=yCONFIG_CGROUPS=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
# CONFIG_MEMCG is not set
# CONFIG_CGROUP_SCHED is not set
# CONFIG_CGROUP_PIDS is not set
# CONFIG_CGROUP_RDMA is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_CGROUP_PERF is not set
# CONFIG_CGROUP_BPF is not set
# CONFIG_CGROUP_MISC is not set
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_NAMESPACES is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set CONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not setCONFIG_RD_LZMA=y
# CONFIG_RD_XZ is not setCONFIG_RD_LZO=y
# CONFIG_RD_LZ4 is not set
# CONFIG_RD_ZSTD is not set
# CONFIG_BOOT_CONFIG is not set CONFIG_INITRAMFS_PRESERVE_MTIME=y CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_LD_ORPHAN_WARN=y CONFIG_LD_ORPHAN_WARN_LEVEL="warn" CONFIG_SYSCTL=yCONFIG_HAVE_UID16=y CONFIG_SYSCTL_EXCEPTION_TRACE=y CONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_EXPERT=y
# CONFIG_UID16 is not setCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=y
# CONFIG_SYSFS_SYSCALL is not set CONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=y
# CONFIG_ADVISE_SYSCALLS is not set
# CONFIG_MEMBARRIER is not setCONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set CONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y CONFIG_KCMP=y
# CONFIG_RSEQ is not setCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=yCONFIG_PC104=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=y
# CONFIG_PROFILING is not setCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_X86_32=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf32-i386"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=8CONFIG_ARCH_MMAP_RND_BITS_MAX=16CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_PGTABLE_LEVELS=3CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#
# CONFIG_SMP is not setCONFIG_X86_FEATURE_NAMES=y
# CONFIG_GOLDFISH is not set
# CONFIG_X86_CPU_RESCTRL is not set
# CONFIG_X86_EXTENDED_PLATFORM is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not setCONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not setCONFIG_X86_SUPPORTS_MEMORY_FAILURE=yCONFIG_X86_32_IRIS=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not setCONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not setCONFIG_X86_HV_CALLBACK_VECTOR=yCONFIG_KVM_GUEST=yCONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not set
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not setCONFIG_PARAVIRT_CLOCK=y
# CONFIG_M486SX is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not setCONFIG_M686=y
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MELAN is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_INTERNODE_CACHE_SHIFT=5CONFIG_X86_L1_CACHE_SHIFT=5CONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=6CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=yCONFIG_PROCESSOR_SELECT=yCONFIG_CPU_SUP_INTEL=y
# CONFIG_CPU_SUP_CYRIX_32 is not set
# CONFIG_CPU_SUP_AMD is not set
# CONFIG_CPU_SUP_HYGON is not set
# CONFIG_CPU_SUP_CENTAUR is not setCONFIG_CPU_SUP_TRANSMETA_32=yCONFIG_CPU_SUP_UMC_32=y
# CONFIG_CPU_SUP_ZHAOXIN is not setCONFIG_CPU_SUP_VORTEX_32=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=y
# CONFIG_DMI is not setCONFIG_BOOT_VESA_SUPPORT=yCONFIG_NR_CPUS_RANGE_BEGIN=1CONFIG_NR_CPUS_RANGE_END=1CONFIG_NR_CPUS_DEFAULT=1CONFIG_NR_CPUS=1
# CONFIG_X86_UP_APIC is not setCONFIG_X86_MCE=yCONFIG_X86_MCELOG_LEGACY=y
# CONFIG_X86_ANCIENT_MCE is not set
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=yCONFIG_PERF_EVENTS_INTEL_RAPL=yCONFIG_PERF_EVENTS_INTEL_CSTATE=y
# end of Performance monitoring
# CONFIG_X86_LEGACY_VM86 is not setCONFIG_X86_IOPL_IOPERM=yCONFIG_TOSHIBA=yCONFIG_X86_REBOOTFIXUPS=y
# CONFIG_MICROCODE is not setCONFIG_X86_MSR=y
# CONFIG_X86_CPUID is not set
# CONFIG_NOHIGHMEM is not set
# CONFIG_HIGHMEM4G is not setCONFIG_HIGHMEM64G=y
# CONFIG_VMSPLIT_3G is not set
# CONFIG_VMSPLIT_2G is not setCONFIG_VMSPLIT_1G=yCONFIG_PAGE_OFFSET=0x40000000CONFIG_HIGHMEM=yCONFIG_X86_PAE=yCONFIG_X86_CPA_STATISTICS=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ILLEGAL_POINTER_VALUE=0CONFIG_HIGHPTE=y
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not setCONFIG_MTRR=yCONFIG_MTRR_SANITIZER=yCONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
# CONFIG_X86_PAT is not set
# CONFIG_X86_UMIP is not setCONFIG_CC_HAS_IBT=y
# CONFIG_X86_INTEL_TSX_MODE_OFF is not set
# CONFIG_X86_INTEL_TSX_MODE_ON is not setCONFIG_X86_INTEL_TSX_MODE_AUTO=y
# CONFIG_EFI is not set
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=y
# CONFIG_CRASH_DUMP is not setCONFIG_PHYSICAL_START=0x1000000CONFIG_RELOCATABLE=y
# CONFIG_RANDOMIZE_BASE is not setCONFIG_X86_NEED_RELOCS=yCONFIG_PHYSICAL_ALIGN=0x200000
# CONFIG_COMPAT_VDSO is not set
# CONFIG_CMDLINE_BOOL is not set
# CONFIG_MODIFY_LDT_SYSCALL is not set
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set
# end of Processor type and features
CONFIG_CC_HAS_SLS=yCONFIG_CC_HAS_RETURN_THUNK=yCONFIG_CC_HAS_ENTRY_PADDING=yCONFIG_FUNCTION_PADDING_CFI=0CONFIG_FUNCTION_PADDING_BYTES=4
# CONFIG_SPECULATION_MITIGATIONS is not setCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
#
# Power management and ACPI options
#
# CONFIG_SUSPEND is not setCONFIG_PM=y
# CONFIG_PM_DEBUG is not setCONFIG_PM_CLK=yCONFIG_WQ_POWER_EFFICIENT_DEFAULT=yCONFIG_ARCH_SUPPORTS_ACPI=yCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=yCONFIG_ACPI_TABLE_LIB=yCONFIG_ACPI_DEBUGGER=yCONFIG_ACPI_DEBUGGER_USER=y
# CONFIG_ACPI_SPCR_TABLE is not set
# CONFIG_ACPI_REV_OVERRIDE_POSSIBLE is not set
# CONFIG_ACPI_EC_DEBUGFS is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not setCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=yCONFIG_ACPI_FAN=y
# CONFIG_ACPI_DOCK is not set
# CONFIG_ACPI_PROCESSOR is not setCONFIG_ACPI_IPMI=yCONFIG_ACPI_PLATFORM_PROFILE=yCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_TABLE_UPGRADE is not setCONFIG_ACPI_DEBUG=yCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_SBS=yCONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not setCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not setCONFIG_ACPI_DPTF=yCONFIG_DPTF_POWER=yCONFIG_DPTF_PCH_FIVR=y
# CONFIG_ACPI_CONFIGFS is not set
# CONFIG_ACPI_FFH is not set
# CONFIG_PMIC_OPREGION is not setCONFIG_ACPI_VIOT=yCONFIG_X86_PM_TIMER=y
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
# end of CPU Frequency scaling
#
# CPU Idle
#CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not setCONFIG_CPU_IDLE_GOV_MENU=yCONFIG_CPU_IDLE_GOV_TEO=y
# CONFIG_CPU_IDLE_GOV_HALTPOLL is not setCONFIG_HALTPOLL_CPUIDLE=y
# end of CPU Idle
# CONFIG_INTEL_IDLE is not set
# end of Power management and ACPI options
#
# Bus options (PCI etc.)
#
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_CNB20LE_QUIRK=yCONFIG_ISA_BUS=yCONFIG_ISA_DMA_API=yCONFIG_ISA=y
# CONFIG_SCx200 is not setCONFIG_ALIX=y
# CONFIG_NET5501 is not set
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_COMPAT_32=y
# end of Binary Emulations
CONFIG_HAVE_ATOMIC_IOMAP=yCONFIG_HAVE_KVM=yCONFIG_VIRTUALIZATION=yCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not setCONFIG_OPTPROBES=yCONFIG_UPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_ARCH_USE_BUILTIN_BSWAP=yCONFIG_KRETPROBES=yCONFIG_KRETPROBE_ON_RETHOOK=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_OPTPROBES=yCONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=yCONFIG_HAVE_FUNCTION_ERROR_INJECTION=yCONFIG_HAVE_NMI=yCONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_CONTIGUOUS=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_ARCH_HAS_FORTIFY_SOURCE=yCONFIG_ARCH_HAS_SET_MEMORY=yCONFIG_ARCH_HAS_SET_DIRECT_MAP=yCONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=yCONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=yCONFIG_ARCH_WANTS_NO_INSTR=yCONFIG_ARCH_32BIT_OFF_T=yCONFIG_HAVE_ASM_MODVERSIONS=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_RSEQ=yCONFIG_HAVE_FUNCTION_ARG_ACCESS_API=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=yCONFIG_MMU_GATHER_TABLE_FREE=yCONFIG_MMU_GATHER_RCU_TABLE_FREE=yCONFIG_MMU_GATHER_MERGE_VMAS=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_ARCH_HAS_NMI_SAFE_THIS_CPU_OPS=yCONFIG_HAVE_CMPXCHG_LOCAL=yCONFIG_HAVE_CMPXCHG_DOUBLE=yCONFIG_ARCH_WANT_IPC_PARSE_VERSION=yCONFIG_HAVE_ARCH_SECCOMP=yCONFIG_HAVE_ARCH_SECCOMP_FILTER=y
# CONFIG_SECCOMP is not setCONFIG_HAVE_ARCH_STACKLEAK=yCONFIG_HAVE_STACKPROTECTOR=y
# CONFIG_STACKPROTECTOR is not setCONFIG_ARCH_SUPPORTS_LTO_CLANG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=yCONFIG_LTO_NONE=yCONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=yCONFIG_HAVE_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_MOVE_PUD=yCONFIG_HAVE_MOVE_PMD=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=yCONFIG_HAVE_ARCH_HUGE_VMAP=yCONFIG_ARCH_WANT_HUGE_PMD_SHARE=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_REL=yCONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=yCONFIG_SOFTIRQ_ON_OWN_STACK=yCONFIG_ARCH_HAS_ELF_RANDOMIZE=yCONFIG_HAVE_ARCH_MMAP_RND_BITS=yCONFIG_HAVE_EXIT_THREAD=yCONFIG_ARCH_MMAP_RND_BITS=8CONFIG_PAGE_SIZE_LESS_THAN_64KB=yCONFIG_PAGE_SIZE_LESS_THAN_256KB=yCONFIG_ISA_BUS_API=yCONFIG_CLONE_BACKWARDS=yCONFIG_OLD_SIGSUSPEND3=yCONFIG_OLD_SIGACTION=yCONFIG_COMPAT_32BIT_TIME=yCONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=yCONFIG_RANDOMIZE_KSTACK_OFFSET=yCONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=yCONFIG_ARCH_HAS_STRICT_KERNEL_RWX=yCONFIG_STRICT_KERNEL_RWX=yCONFIG_ARCH_HAS_STRICT_MODULE_RWX=yCONFIG_STRICT_MODULE_RWX=yCONFIG_HAVE_ARCH_PREL32_RELOCATIONS=yCONFIG_LOCK_EVENT_COUNTS=yCONFIG_ARCH_HAS_MEM_ENCRYPT=yCONFIG_HAVE_STATIC_CALL=yCONFIG_HAVE_PREEMPT_DYNAMIC=yCONFIG_HAVE_PREEMPT_DYNAMIC_CALL=yCONFIG_ARCH_WANT_LD_ORPHAN_WARN=yCONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=yCONFIG_ARCH_SPLIT_ARG64=yCONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=yCONFIG_DYNAMIC_SIGFRAME=yCONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y
# CONFIG_GCC_PLUGINS is not setCONFIG_FUNCTION_ALIGNMENT_4B=yCONFIG_FUNCTION_ALIGNMENT=4
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
# CONFIG_MODULE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=y
# CONFIG_BLOCK is not setCONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=y CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y CONFIG_ARCH_USE_QUEUED_RWLOCKS=y CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=y CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=y CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#
#
# SLAB allocator options
#
# CONFIG_SLAB is not set
# CONFIG_SLUB is not setCONFIG_SLOB_DEPRECATED=yCONFIG_SLOB=y
# end of SLAB allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=y
# CONFIG_COMPAT_BRK is not setCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_SPARSEMEM_STATIC=yCONFIG_HAVE_FAST_GUP=yCONFIG_MEMORY_ISOLATION=yCONFIG_EXCLUSIVE_SYSTEM_RAM=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=yCONFIG_COMPACTION=yCONFIG_COMPACT_UNEVICTABLE_DEFAULT=1CONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=yCONFIG_CONTIG_ALLOC=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_MMU_NOTIFIER=y
# CONFIG_KSM is not setCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not setCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_TRANSPARENT_HUGEPAGE=y
# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not setCONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
# CONFIG_READ_ONLY_THP_FOR_FS is not setCONFIG_NEED_PER_CPU_KM=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_HAVE_SETUP_PER_CPU_AREA=yCONFIG_CMA=y
# CONFIG_CMA_DEBUG is not setCONFIG_CMA_DEBUGFS=y
# CONFIG_CMA_SYSFS is not setCONFIG_CMA_AREAS=7CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_IDLE_PAGE_TRACKING is not setCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_ARCH_HAS_CURRENT_STACK_POINTER=yCONFIG_ARCH_HAS_ZONE_DMA_SET=yCONFIG_ZONE_DMA=yCONFIG_VMAP_PFN=yCONFIG_VM_EVENT_COUNTERS=y
# CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not setCONFIG_GUP_GET_PXX_LOW_HIGH=yCONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_MAPPING_DIRTY_HELPERS=yCONFIG_KMAP_LOCAL=yCONFIG_SECRETMEM=yCONFIG_USERFAULTFD=yCONFIG_LRU_GEN=y
# CONFIG_LRU_GEN_ENABLED is not setCONFIG_LRU_GEN_STATS=y
#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=y
#
# Networking options
#CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not setCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=y
# CONFIG_TLS is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
# CONFIG_XDP_SOCKETS is not setCONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not setCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not setCONFIG_NET_IP_TUNNEL=y
# CONFIG_SYN_COOKIES is not set
# CONFIG_NET_IPVTI is not set
# CONFIG_NET_FOU is not set
# CONFIG_NET_FOU_IP_TUNNELS is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not setCONFIG_INET_TABLE_PERTURB_ORDER=16CONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=y
# CONFIG_INET_UDP_DIAG is not set
# CONFIG_INET_RAW_DIAG is not set
# CONFIG_INET_DIAG_DESTROY is not set
# CONFIG_TCP_CONG_ADVANCED is not setCONFIG_TCP_CONG_CUBIC=yCONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not setCONFIG_IPV6=y
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_VTI is not setCONFIG_IPV6_SIT=y
# CONFIG_IPV6_SIT_6RD is not setCONFIG_IPV6_NDISC_NODETYPE=y
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_MULTIPLE_TABLES is not set
# CONFIG_IPV6_MROUTE is not set
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not set
# CONFIG_IPV6_IOAM6_LWTUNNEL is not set
# CONFIG_NETLABEL is not set
# CONFIG_MPTCP is not set
# CONFIG_NETWORK_SECMARK is not setCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=y
# CONFIG_NETFILTER is not set
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not setCONFIG_ATM=y
# CONFIG_ATM_CLIP is not set
# CONFIG_ATM_LANE is not set
# CONFIG_ATM_BR2684 is not set
# CONFIG_L2TP is not setCONFIG_STP=yCONFIG_BRIDGE=yCONFIG_BRIDGE_IGMP_SNOOPING=y
# CONFIG_BRIDGE_VLAN_FILTERING is not set
# CONFIG_BRIDGE_MRP is not setCONFIG_BRIDGE_CFM=y
# CONFIG_NET_DSA is not setCONFIG_VLAN_8021Q=y
# CONFIG_VLAN_8021Q_GVRP is not set
# CONFIG_VLAN_8021Q_MVRP is not setCONFIG_LLC=y
# CONFIG_LLC2 is not setCONFIG_ATALK=y
# CONFIG_DEV_APPLETALK is not setCONFIG_X25=yCONFIG_LAPB=y
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not setCONFIG_IEEE802154=yCONFIG_IEEE802154_NL802154_EXPERIMENTAL=y
# CONFIG_IEEE802154_SOCKET is not set
# CONFIG_MAC802154 is not setCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=y
# CONFIG_NET_SCH_HTB is not set
# CONFIG_NET_SCH_HFSC is not setCONFIG_NET_SCH_ATM=y
# CONFIG_NET_SCH_PRIO is not set
# CONFIG_NET_SCH_MULTIQ is not setCONFIG_NET_SCH_RED=y
# CONFIG_NET_SCH_SFB is not setCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=y
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not setCONFIG_NET_SCH_MQPRIO_LIB=yCONFIG_NET_SCH_TAPRIO=yCONFIG_NET_SCH_GRED=y
# CONFIG_NET_SCH_DSMARK is not setCONFIG_NET_SCH_NETEM=yCONFIG_NET_SCH_DRR=yCONFIG_NET_SCH_MQPRIO=yCONFIG_NET_SCH_SKBPRIO=yCONFIG_NET_SCH_CHOKE=yCONFIG_NET_SCH_QFQ=yCONFIG_NET_SCH_CODEL=y
# CONFIG_NET_SCH_FQ_CODEL is not setCONFIG_NET_SCH_CAKE=yCONFIG_NET_SCH_FQ=y
# CONFIG_NET_SCH_HHF is not setCONFIG_NET_SCH_PIE=yCONFIG_NET_SCH_FQ_PIE=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_SCH_PLUG=yCONFIG_NET_SCH_ETS=yCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not setCONFIG_DEFAULT_CODEL=y
# CONFIG_DEFAULT_FQ_PIE is not set
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not setCONFIG_DEFAULT_NET_SCH="pfifo_fast"
#
# Classification
#CONFIG_NET_CLS=y
# CONFIG_NET_CLS_BASIC is not set
# CONFIG_NET_CLS_TCINDEX is not set
# CONFIG_NET_CLS_ROUTE4 is not set
# CONFIG_NET_CLS_FW is not setCONFIG_NET_CLS_U32=yCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=y
# CONFIG_NET_CLS_RSVP6 is not set
# CONFIG_NET_CLS_FLOW is not set
# CONFIG_NET_CLS_CGROUP is not setCONFIG_NET_CLS_BPF=yCONFIG_NET_CLS_FLOWER=yCONFIG_NET_CLS_MATCHALL=y
# CONFIG_NET_EMATCH is not setCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=yCONFIG_NET_ACT_GACT=y
# CONFIG_GACT_PROB is not setCONFIG_NET_ACT_MIRRED=yCONFIG_NET_ACT_SAMPLE=y
# CONFIG_NET_ACT_NAT is not setCONFIG_NET_ACT_PEDIT=y
# CONFIG_NET_ACT_SIMP is not setCONFIG_NET_ACT_SKBEDIT=y
# CONFIG_NET_ACT_CSUM is not setCONFIG_NET_ACT_MPLS=yCONFIG_NET_ACT_VLAN=y
# CONFIG_NET_ACT_BPF is not setCONFIG_NET_ACT_SKBMOD=y
# CONFIG_NET_ACT_IFE is not setCONFIG_NET_ACT_TUNNEL_KEY=yCONFIG_NET_ACT_GATE=y
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=yCONFIG_BATMAN_ADV=y
# CONFIG_BATMAN_ADV_BATMAN_V is not setCONFIG_BATMAN_ADV_BLA=yCONFIG_BATMAN_ADV_DAT=y
# CONFIG_BATMAN_ADV_NC is not setCONFIG_BATMAN_ADV_MCAST=yCONFIG_BATMAN_ADV_DEBUG=yCONFIG_BATMAN_ADV_TRACING=y
# CONFIG_OPENVSWITCH is not setCONFIG_VSOCKETS=yCONFIG_VSOCKETS_DIAG=y
# CONFIG_VSOCKETS_LOOPBACK is not setCONFIG_VMWARE_VMCI_VSOCKETS=yCONFIG_VIRTIO_VSOCKETS=yCONFIG_VIRTIO_VSOCKETS_COMMON=yCONFIG_NETLINK_DIAG=y
# CONFIG_MPLS is not setCONFIG_NET_NSH=yCONFIG_HSR=y
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not setCONFIG_QRTR=yCONFIG_QRTR_SMD=yCONFIG_QRTR_TUN=yCONFIG_QRTR_MHI=y
# CONFIG_NET_NCSI is not set
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not setCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=y
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not set
# end of Network testing # end of Networking options
CONFIG_HAMRADIO=y
#
# Packet Radio protocols
#
# CONFIG_AX25 is not set
# CONFIG_CAN is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not set
# CONFIG_MCTP is not setCONFIG_WIRELESS=yCONFIG_WIRELESS_EXT=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_WEXT_SPY=yCONFIG_WEXT_PRIV=yCONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not setCONFIG_CFG80211_DEVELOPER_WARNINGS=y
# CONFIG_CFG80211_CERTIFICATION_ONUS is not setCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_DEFAULT_PS=yCONFIG_CFG80211_DEBUGFS=y
# CONFIG_CFG80211_CRDA_SUPPORT is not setCONFIG_CFG80211_WEXT=yCONFIG_LIB80211=yCONFIG_LIB80211_CRYPT_WEP=yCONFIG_LIB80211_CRYPT_CCMP=yCONFIG_LIB80211_CRYPT_TKIP=yCONFIG_LIB80211_DEBUG=yCONFIG_MAC80211=y
# CONFIG_MAC80211_RC_MINSTREL is not setCONFIG_MAC80211_RC_DEFAULT=""
#
# Some wireless drivers require a rate control algorithm #CONFIG_MAC80211_MESH=y
# CONFIG_MAC80211_LEDS is not set CONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set CONFIG_MAC80211_STA_HASH_MAX_SIZE=0 CONFIG_RFKILL=yCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_GPIO=yCONFIG_NET_9P=y
# CONFIG_NET_9P_FD is not set CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_DEBUG is not setCONFIG_CAIF=yCONFIG_CAIF_DEBUG=yCONFIG_CAIF_NETDEV=yCONFIG_CAIF_USB=y
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not setCONFIG_PSAMPLE=yCONFIG_NET_IFE=y
# CONFIG_LWTUNNEL is not setCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_PAGE_POOL_STATS=yCONFIG_FAILOVER=y
# CONFIG_ETHTOOL_NETLINK is not set
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=y
# CONFIG_HOTPLUG_PCI_PCIE is not set
# CONFIG_PCIEAER is not set
# CONFIG_PCIEASPM is not setCONFIG_PCIE_PME=y
# CONFIG_PCIE_PTM is not set
# CONFIG_PCI_MSI is not setCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not setCONFIG_PCI_STUB=yCONFIG_PCI_ATS=yCONFIG_PCI_DOE=yCONFIG_PCI_LOCKLESS_CONFIG=y
# CONFIG_PCI_IOV is not setCONFIG_PCI_PRI=y
# CONFIG_PCI_PASID is not setCONFIG_PCI_LABEL=yCONFIG_PCIE_BUS_TUNE_OFF=y
# CONFIG_PCIE_BUS_DEFAULT is not set
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER is not setCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_COMPAQ is not setCONFIG_HOTPLUG_PCI_ACPI=y
# CONFIG_HOTPLUG_PCI_ACPI_IBM is not setCONFIG_HOTPLUG_PCI_CPCI=yCONFIG_HOTPLUG_PCI_CPCI_ZT5550=y
# CONFIG_HOTPLUG_PCI_CPCI_GENERIC is not setCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#
#
# DesignWare PCI Core Support
#
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#CONFIG_PCI_ENDPOINT=yCONFIG_PCI_ENDPOINT_CONFIGFS=y
# CONFIG_PCI_EPF_TEST is not setCONFIG_PCI_EPF_NTB=y
# end of PCI Endpoint
#
# PCI switch controller drivers
#CONFIG_PCI_SW_SWITCHTEC=y
# end of PCI switch controller drivers
CONFIG_CXL_BUS=yCONFIG_CXL_PCI=y
# CONFIG_CXL_MEM_RAW_COMMANDS is not setCONFIG_CXL_ACPI=yCONFIG_CXL_MEM=yCONFIG_CXL_PORT=y
# CONFIG_PCCARD is not setCONFIG_RAPIDIO=y
# CONFIG_RAPIDIO_TSI721 is not setCONFIG_RAPIDIO_DISC_TIMEOUT=30CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS=yCONFIG_RAPIDIO_DMA_ENGINE=yCONFIG_RAPIDIO_DEBUG=yCONFIG_RAPIDIO_ENUM_BASIC=yCONFIG_RAPIDIO_CHMAN=yCONFIG_RAPIDIO_MPORT_CDEV=y
#
# RapidIO Switch drivers
#CONFIG_RAPIDIO_CPS_XX=yCONFIG_RAPIDIO_CPS_GEN2=yCONFIG_RAPIDIO_RXS_GEN3=y
# end of RapidIO Switch drivers
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=yCONFIG_UEVENT_HELPER=yCONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=y
# CONFIG_DEVTMPFS_SAFE is not setCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_FW_LOADER_SYSFS=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set CONFIG_FW_LOADER_COMPRESS=y CONFIG_FW_LOADER_COMPRESS_XZ=y CONFIG_FW_LOADER_COMPRESS_ZSTD=y CONFIG_FW_UPLOAD=y
# end of Firmware loader
CONFIG_WANT_DEV_COREDUMP=yCONFIG_ALLOW_DEV_COREDUMP=yCONFIG_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not setCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_SLIMBUS=yCONFIG_REGMAP_SPI=yCONFIG_REGMAP_SPMI=yCONFIG_REGMAP_W1=yCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=yCONFIG_REGMAP_SOUNDWIRE=yCONFIG_REGMAP_SOUNDWIRE_MBQ=yCONFIG_REGMAP_SPI_AVMM=yCONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# end of Generic Driver Options
#
# Bus devices
#CONFIG_MHI_BUS=y
# CONFIG_MHI_BUS_DEBUG is not set
# CONFIG_MHI_BUS_PCI_GENERIC is not setCONFIG_MHI_BUS_EP=y
# end of Bus devices
CONFIG_CONNECTOR=y
# CONFIG_PROC_EVENTS is not set
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #
# end of ARM System Control and Management Interface Protocol
CONFIG_EDD=yCONFIG_EDD_OFF=yCONFIG_FIRMWARE_MEMMAP=y
# CONFIG_FW_CFG_SYSFS is not setCONFIG_SYSFB=yCONFIG_SYSFB_SIMPLEFB=yCONFIG_FW_CS_DSP=yCONFIG_GOOGLE_FIRMWARE=y
# CONFIG_GOOGLE_COREBOOT_TABLE is not set
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_MTD_NAND_ECC_MXIC is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=y
# CONFIG_PARPORT_SERIAL is not set
# CONFIG_PARPORT_PC_FIFO is not setCONFIG_PARPORT_PC_SUPERIO=yCONFIG_PARPORT_AX88796=yCONFIG_PARPORT_1284=yCONFIG_PARPORT_NOT_PC=yCONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set
#
# Protocols
#CONFIG_ISAPNP=yCONFIG_PNPBIOS=y
# CONFIG_PNPBIOS_PROC_FS is not setCONFIG_PNPACPI=y
#
# NVME Support
#
# end of NVME Support
#
# Misc devices
#CONFIG_AD525X_DPOT=yCONFIG_AD525X_DPOT_I2C=yCONFIG_AD525X_DPOT_SPI=yCONFIG_DUMMY_IRQ=yCONFIG_IBM_ASM=y
# CONFIG_PHANTOM is not setCONFIG_TIFM_CORE=y
# CONFIG_TIFM_7XX1 is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not setCONFIG_CS5535_MFGPT=yCONFIG_CS5535_MFGPT_DEFAULT_IRQ=7CONFIG_CS5535_CLOCK_EVENT_SRC=yCONFIG_HP_ILO=y
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not setCONFIG_ISL29020=yCONFIG_SENSORS_TSL2550=y
# CONFIG_SENSORS_BH1770 is not setCONFIG_SENSORS_APDS990X=yCONFIG_HMC6352=yCONFIG_DS1682=y
# CONFIG_VMWARE_BALLOON is not setCONFIG_PCH_PHUB=yCONFIG_LATTICE_ECP3_CONFIG=yCONFIG_SRAM=yCONFIG_DW_XDATA_PCIE=y
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not setCONFIG_MISC_RTSX=y
# CONFIG_C2PORT is not set
#
# EEPROM support
#CONFIG_EEPROM_AT24=yCONFIG_EEPROM_AT25=yCONFIG_EEPROM_LEGACY=y
# CONFIG_EEPROM_MAX6875 is not setCONFIG_EEPROM_93CX6=y
# CONFIG_EEPROM_93XX46 is not setCONFIG_EEPROM_IDT_89HPESX=yCONFIG_EEPROM_EE1004=y
# end of EEPROM support
CONFIG_CB710_CORE=y
# CONFIG_CB710_DEBUG is not setCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
# CONFIG_SENSORS_LIS3_I2C is not set
# CONFIG_ALTERA_STAPL is not setCONFIG_INTEL_MEI=yCONFIG_INTEL_MEI_ME=yCONFIG_INTEL_MEI_TXE=yCONFIG_INTEL_MEI_GSC=yCONFIG_INTEL_MEI_HDCP=yCONFIG_INTEL_MEI_PXP=yCONFIG_VMWARE_VMCI=y
# CONFIG_ECHO is not set
# CONFIG_MISC_ALCOR_PCI is not setCONFIG_MISC_RTSX_PCI=y
# CONFIG_HABANA_AI is not setCONFIG_UACCE=yCONFIG_PVPANIC=y
# CONFIG_PVPANIC_MMIO is not setCONFIG_PVPANIC_PCI=yCONFIG_GP_PCI1XXXX=y
# end of Misc devices
#
# SCSI device support
#
# end of SCSI device support
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=y
# CONFIG_FIREWIRE_OHCI is not set
# CONFIG_FIREWIRE_NET is not set
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
CONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_WIREGUARD is not setCONFIG_EQUALIZER=yCONFIG_IFB=yCONFIG_NET_TEAM=yCONFIG_NET_TEAM_MODE_BROADCAST=yCONFIG_NET_TEAM_MODE_ROUNDROBIN=yCONFIG_NET_TEAM_MODE_RANDOM=yCONFIG_NET_TEAM_MODE_ACTIVEBACKUP=y
# CONFIG_NET_TEAM_MODE_LOADBALANCE is not setCONFIG_MACVLAN=y
# CONFIG_MACVTAP is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not setCONFIG_MACSEC=yCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_RIONET=yCONFIG_RIONET_TX_SIZE=128CONFIG_RIONET_RX_SIZE=128
# CONFIG_TUN is not setCONFIG_TUN_VNET_CROSS_LE=y
# CONFIG_VETH is not setCONFIG_VIRTIO_NET=yCONFIG_NLMON=yCONFIG_MHI_NET=yCONFIG_SUNGEM_PHY=yCONFIG_ARCNET=y
# CONFIG_ARCNET_1201 is not set
# CONFIG_ARCNET_1051 is not setCONFIG_ARCNET_RAW=y
# CONFIG_ARCNET_CAP is not set
CONFIG_ARCNET_COM90xx=y
# CONFIG_ARCNET_COM90xxIO is not set
# CONFIG_ARCNET_RIM_I is not setCONFIG_ARCNET_COM20020=y
# CONFIG_ARCNET_COM20020_ISA is not set
# CONFIG_ARCNET_COM20020_PCI is not set
# CONFIG_ATM_DRIVERS is not set
# CONFIG_CAIF_DRIVERS is not setCONFIG_ETHERNET=yCONFIG_MDIO=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not setCONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not setCONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not setCONFIG_ALTERA_TSE=y
# CONFIG_NET_VENDOR_AMAZON is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not setCONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_CX_ECAT is not set
# CONFIG_NET_VENDOR_BROADCOM is not setCONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not setCONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CIRRUS is not setCONFIG_NET_VENDOR_CISCO=yCONFIG_ENIC=y
# CONFIG_NET_VENDOR_CORTINA is not set
# CONFIG_NET_VENDOR_DAVICOM is not setCONFIG_DNET=yCONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not setCONFIG_NET_VENDOR_DLINK=yCONFIG_DL2K=y
# CONFIG_SUNDANCE is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_ENGLEDER is not setCONFIG_NET_VENDOR_EZCHIP=y
# CONFIG_NET_VENDOR_FUNGIBLE is not setCONFIG_NET_VENDOR_GOOGLE=yCONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_NET_VENDOR_I825XX is not setCONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not setCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not setCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=y
# CONFIG_IXGBE_DCB is not setCONFIG_I40E=yCONFIG_I40E_DCB=yCONFIG_ICE_GNSS=y
# CONFIG_IGC is not set
# CONFIG_NET_VENDOR_WANGXUN is not setCONFIG_JME=yCONFIG_NET_VENDOR_ADI=yCONFIG_NET_VENDOR_LITEX=y
# CONFIG_NET_VENDOR_MARVELL is not set
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not setCONFIG_NET_VENDOR_MICROCHIP=yCONFIG_ENC28J60=yCONFIG_ENC28J60_WRITEVERIFY=yCONFIG_ENCX24J600=yCONFIG_LAN743X=yCONFIG_VCAP=y
# CONFIG_NET_VENDOR_MICROSEMI is not set
# CONFIG_NET_VENDOR_MICROSOFT is not setCONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_NET_VENDOR_NI is not set
# CONFIG_NET_VENDOR_NATSEMI is not setCONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_VENDOR_PACKET_ENGINES is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not setCONFIG_NET_VENDOR_BROCADE=yCONFIG_BNA=yCONFIG_NET_VENDOR_QUALCOMM=yCONFIG_QCOM_EMAC=yCONFIG_RMNET=y
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not setCONFIG_NET_VENDOR_RENESAS=y
# CONFIG_NET_VENDOR_ROCKER is not setCONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not setCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SILAN=yCONFIG_SC92031=yCONFIG_NET_VENDOR_SIS=yCONFIG_SIS900=yCONFIG_SIS190=y
# CONFIG_NET_VENDOR_SOLARFLARE is not setCONFIG_NET_VENDOR_SMSC=y
# CONFIG_SMC9194 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not setCONFIG_NET_VENDOR_SOCIONEXT=y
# CONFIG_NET_VENDOR_STMICRO is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not setCONFIG_SUNGEM=yCONFIG_CASSINI=yCONFIG_NIU=yCONFIG_NET_VENDOR_SYNOPSYS=yCONFIG_DWC_XLGMAC=yCONFIG_DWC_XLGMAC_PCI=y
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VERTEXCOM is not set
# CONFIG_NET_VENDOR_VIA is not setCONFIG_NET_VENDOR_WIZNET=yCONFIG_WIZNET_W5100=y
# CONFIG_WIZNET_W5300 is not set
# CONFIG_WIZNET_BUS_DIRECT is not setCONFIG_WIZNET_BUS_INDIRECT=y
# CONFIG_WIZNET_BUS_ANY is not set
# CONFIG_NET_VENDOR_XILINX is not setCONFIG_FDDI=yCONFIG_DEFXX=y
# CONFIG_SKFP is not set
# CONFIG_HIPPI is not setCONFIG_NET_SB1000=yCONFIG_PHYLINK=yCONFIG_PHYLIB=yCONFIG_SWPHY=y
# CONFIG_LED_TRIGGER_PHY is not setCONFIG_FIXED_PHY=yCONFIG_SFP=y
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not setCONFIG_ADIN1100_PHY=yCONFIG_AQUANTIA_PHY=yCONFIG_AX88796B_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not setCONFIG_BCM84881_PHY=yCONFIG_BCM87XX_PHY=yCONFIG_CICADA_PHY=yCONFIG_CORTINA_PHY=yCONFIG_DAVICOM_PHY=yCONFIG_ICPLUS_PHY=yCONFIG_LXT_PHY=yCONFIG_INTEL_XWAY_PHY=yCONFIG_LSI_ET1011C_PHY=yCONFIG_MARVELL_PHY=yCONFIG_MARVELL_10G_PHY=yCONFIG_MARVELL_88X2222_PHY=y
# CONFIG_MAXLINEAR_GPHY is not set
# CONFIG_MEDIATEK_GE_PHY is not setCONFIG_MICREL_PHY=y
# CONFIG_MICROCHIP_PHY is not setCONFIG_MICROCHIP_T1_PHY=y
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_MOTORCOMM_PHY is not set
# CONFIG_NATIONAL_PHY is not setCONFIG_NXP_C45_TJA11XX_PHY=yCONFIG_NXP_TJA11XX_PHY=yCONFIG_NCN26000_PHY=y
# CONFIG_AT803X_PHY is not set
# CONFIG_QSEMI_PHY is not setCONFIG_REALTEK_PHY=yCONFIG_RENESAS_PHY=yCONFIG_ROCKCHIP_PHY=yCONFIG_SMSC_PHY=yCONFIG_STE10XP=yCONFIG_TERANETICS_PHY=yCONFIG_DP83822_PHY=yCONFIG_DP83TC811_PHY=yCONFIG_DP83848_PHY=y
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_DP83TD510_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not setCONFIG_MICREL_KS8995MA=yCONFIG_PSE_CONTROLLER=yCONFIG_PSE_REGULATOR=yCONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_ACPI_MDIO=yCONFIG_MDIO_DEVRES=yCONFIG_MDIO_BITBANG=yCONFIG_MDIO_BCM_UNIMAC=yCONFIG_MDIO_GPIO=yCONFIG_MDIO_I2C=yCONFIG_MDIO_MSCC_MIIM=y
#
# MDIO Multiplexers
#
#
# PCS device drivers
#CONFIG_PCS_ALTERA_TSE=y
# end of PCS device drivers
CONFIG_PLIP=yCONFIG_PPP=y
# CONFIG_PPP_BSDCOMP is not setCONFIG_PPP_DEFLATE=yCONFIG_PPP_FILTER=yCONFIG_PPP_MPPE=y
# CONFIG_PPP_MULTILINK is not setCONFIG_PPPOATM=yCONFIG_PPPOE=y
# CONFIG_PPP_ASYNC is not set
# CONFIG_PPP_SYNC_TTY is not set
# CONFIG_SLIP is not setCONFIG_SLHC=y
#
# Host-side USB support is needed for USB Network Adapter support #CONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=yCONFIG_ADM8211=yCONFIG_ATH_COMMON=yCONFIG_WLAN_VENDOR_ATH=yCONFIG_ATH_DEBUG=yCONFIG_ATH_TRACEPOINTS=y
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
# CONFIG_ATH9K is not setCONFIG_ATH6KL=yCONFIG_ATH6KL_SDIO=y
# CONFIG_ATH6KL_DEBUG is not set CONFIG_ATH6KL_TRACING=yCONFIG_WIL6210=yCONFIG_WIL6210_ISR_COR=yCONFIG_WIL6210_TRACING=y
# CONFIG_WIL6210_DEBUGFS is not setCONFIG_ATH10K=yCONFIG_ATH10K_CE=y
# CONFIG_ATH10K_PCI is not setCONFIG_ATH10K_SDIO=y
# CONFIG_ATH10K_DEBUG is not set
# CONFIG_ATH10K_DEBUGFS is not set CONFIG_ATH10K_TRACING=yCONFIG_WCN36XX=yCONFIG_WCN36XX_DEBUGFS=yCONFIG_ATH11K=yCONFIG_ATH11K_PCI=y
# CONFIG_ATH11K_DEBUG is not set
# CONFIG_ATH11K_DEBUGFS is not set CONFIG_ATH11K_TRACING=yCONFIG_WLAN_VENDOR_ATMEL=y
# CONFIG_ATMEL is not setCONFIG_WLAN_VENDOR_BROADCOM=y
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not setCONFIG_BRCMUTIL=yCONFIG_BRCMSMAC=y
# CONFIG_BRCMFMAC is not set
# CONFIG_BRCM_TRACING is not setCONFIG_BRCMDBG=yCONFIG_WLAN_VENDOR_CISCO=yCONFIG_AIRO=y
# CONFIG_WLAN_VENDOR_INTEL is not set CONFIG_WLAN_VENDOR_INTERSIL=yCONFIG_HOSTAP=y
# CONFIG_HOSTAP_FIRMWARE is not setCONFIG_HOSTAP_PLX=yCONFIG_HOSTAP_PCI=y
# CONFIG_HERMES is not set
# CONFIG_P54_COMMON is not set
# CONFIG_WLAN_VENDOR_MARVELL is not set
# CONFIG_WLAN_VENDOR_MEDIATEK is not set
# CONFIG_WLAN_VENDOR_MICROCHIP is not set CONFIG_WLAN_VENDOR_PURELIFI=y CONFIG_WLAN_VENDOR_RALINK=y
# CONFIG_RT2X00 is not set
# CONFIG_WLAN_VENDOR_REALTEK is not set CONFIG_WLAN_VENDOR_RSI=yCONFIG_RSI_91X=yCONFIG_RSI_DEBUGFS=yCONFIG_RSI_SDIO=yCONFIG_WLAN_VENDOR_SILABS=yCONFIG_WFX=yCONFIG_WLAN_VENDOR_ST=y
# CONFIG_CW1200 is not setCONFIG_WLAN_VENDOR_TI=y
# CONFIG_WL1251 is not setCONFIG_WL12XX=y
# CONFIG_WL18XX is not setCONFIG_WLCORE=yCONFIG_WLCORE_SDIO=yCONFIG_WLAN_VENDOR_ZYDAS=y CONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_QTNFMAC_PCIE is not set
# CONFIG_MAC80211_HWSIM is not set
# CONFIG_VIRT_WIFI is not setCONFIG_WAN=yCONFIG_HDLC=y
# CONFIG_HDLC_RAW is not setCONFIG_HDLC_RAW_ETH=y
# CONFIG_HDLC_CISCO is not set
# CONFIG_HDLC_FR is not setCONFIG_HDLC_PPP=yCONFIG_HDLC_X25=y
# CONFIG_PCI200SYN is not setCONFIG_WANXL=yCONFIG_PC300TOO=y
# CONFIG_N2 is not setCONFIG_C101=yCONFIG_FARSYNC=y
# CONFIG_LAPBETHER is not set CONFIG_IEEE802154_DRIVERS=y
#
# Wireless WAN
#CONFIG_WWAN=yCONFIG_WWAN_DEBUGFS=yCONFIG_WWAN_HWSIM=y
# CONFIG_MHI_WWAN_CTRL is not setCONFIG_MHI_WWAN_MBIM=y
# CONFIG_RPMSG_WWAN_CTRL is not setCONFIG_IOSM=y
# CONFIG_MTK_T7XX is not set
# end of Wireless WAN
# CONFIG_VMXNET3 is not setCONFIG_FUJITSU_ES=y
# CONFIG_USB4_NET is not set
# CONFIG_NETDEVSIM is not setCONFIG_NET_FAILOVER=yCONFIG_ISDN=y
# CONFIG_MISDN is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_LEDS is not setCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=yCONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not setCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ADC=yCONFIG_KEYBOARD_ADP5520=yCONFIG_KEYBOARD_ADP5588=yCONFIG_KEYBOARD_ADP5589=yCONFIG_KEYBOARD_ATKBD=yCONFIG_KEYBOARD_QT1050=yCONFIG_KEYBOARD_QT1070=y
# CONFIG_KEYBOARD_QT2160 is not setCONFIG_KEYBOARD_DLINK_DIR685=y
# CONFIG_KEYBOARD_LKKBD is not setCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_GPIO_POLLED=yCONFIG_KEYBOARD_TCA6416=y
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not setCONFIG_KEYBOARD_LM8323=yCONFIG_KEYBOARD_LM8333=y
# CONFIG_KEYBOARD_MAX7359 is not setCONFIG_KEYBOARD_MCS=yCONFIG_KEYBOARD_MPR121=yCONFIG_KEYBOARD_NEWTON=y
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_PINEPHONE is not set
# CONFIG_KEYBOARD_SAMSUNG is not setCONFIG_KEYBOARD_STOWAWAY=y
# CONFIG_KEYBOARD_SUNKBD is not setCONFIG_KEYBOARD_IQS62X=yCONFIG_KEYBOARD_TM2_TOUCHKEY=y
# CONFIG_KEYBOARD_TWL4030 is not set
# CONFIG_KEYBOARD_XTKBD is not setCONFIG_KEYBOARD_MTK_PMIC=yCONFIG_KEYBOARD_CYPRESS_SF=yCONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not setCONFIG_MOUSE_SERIAL=y
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not setCONFIG_MOUSE_INPORT=yCONFIG_MOUSE_ATIXL=y
# CONFIG_MOUSE_LOGIBM is not set
# CONFIG_MOUSE_PC110PAD is not setCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=y
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not setCONFIG_INPUT_TABLET=y
# CONFIG_TABLET_USB_ACECAD is not set
# CONFIG_TABLET_USB_AIPTEK is not set
# CONFIG_TABLET_USB_HANWANG is not set
# CONFIG_TABLET_USB_KBTAB is not set
# CONFIG_TABLET_USB_PEGASUS is not setCONFIG_TABLET_SERIAL_WACOM4=y
# CONFIG_INPUT_TOUCHSCREEN is not setCONFIG_INPUT_MISC=yCONFIG_INPUT_88PM860X_ONKEY=yCONFIG_INPUT_88PM80X_ONKEY=y
# CONFIG_INPUT_AD714X is not setCONFIG_INPUT_BMA150=y
# CONFIG_INPUT_E3X0_BUTTON is not setCONFIG_INPUT_PCSPKR=yCONFIG_INPUT_MC13783_PWRBUTTON=yCONFIG_INPUT_MMA8450=yCONFIG_INPUT_APANEL=yCONFIG_INPUT_GPIO_BEEPER=yCONFIG_INPUT_GPIO_DECODER=yCONFIG_INPUT_GPIO_VIBRA=yCONFIG_INPUT_WISTRON_BTNS=yCONFIG_INPUT_ATLAS_BTNS=y
# CONFIG_INPUT_ATI_REMOTE2 is not set
# CONFIG_INPUT_KEYSPAN_REMOTE is not setCONFIG_INPUT_KXTJ9=y
# CONFIG_INPUT_POWERMATE is not set
# CONFIG_INPUT_YEALINK is not set
# CONFIG_INPUT_CM109 is not set
# CONFIG_INPUT_REGULATOR_HAPTIC is not setCONFIG_INPUT_RETU_PWRBUTTON=y
# CONFIG_INPUT_AXP20X_PEK is not set
# CONFIG_INPUT_TWL4030_PWRBUTTON is not setCONFIG_INPUT_TWL4030_VIBRA=y
# CONFIG_INPUT_UINPUT is not setCONFIG_INPUT_PALMAS_PWRBUTTON=yCONFIG_INPUT_PCF8574=y
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not setCONFIG_INPUT_DA7280_HAPTICS=yCONFIG_INPUT_DA9052_ONKEY=y
# CONFIG_INPUT_DA9063_ONKEY is not set
# CONFIG_INPUT_WM831X_ON is not setCONFIG_INPUT_PCAP=yCONFIG_INPUT_ADXL34X=y
# CONFIG_INPUT_ADXL34X_I2C is not setCONFIG_INPUT_ADXL34X_SPI=y
# CONFIG_INPUT_IBM_PANEL is not setCONFIG_INPUT_IQS269A=yCONFIG_INPUT_IQS626A=yCONFIG_INPUT_IQS7222=y
# CONFIG_INPUT_CMA3000 is not setCONFIG_INPUT_IDEAPAD_SLIDEBAR=yCONFIG_INPUT_SOC_BUTTON_ARRAY=y
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_INPUT_DRV2665_HAPTICS is not setCONFIG_INPUT_DRV2667_HAPTICS=yCONFIG_INPUT_RT5120_PWRKEY=yCONFIG_RMI4_CORE=yCONFIG_RMI4_I2C=yCONFIG_RMI4_SPI=yCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=yCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=y
# CONFIG_RMI4_F3A is not setCONFIG_RMI4_F54=yCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=yCONFIG_SERIO_CT82C710=yCONFIG_SERIO_PARKBD=y
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=yCONFIG_SERIO_ALTERA_PS2=yCONFIG_SERIO_PS2MULT=yCONFIG_SERIO_ARC_PS2=yCONFIG_SERIO_GPIO_PS2=y
# CONFIG_USERIO is not setCONFIG_GAMEPORT=yCONFIG_GAMEPORT_NS558=yCONFIG_GAMEPORT_L4=yCONFIG_GAMEPORT_EMU10K1=yCONFIG_GAMEPORT_FM801=y
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=y
# CONFIG_VT is not setCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_LEGACY_TIOCSTI=yCONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set
# CONFIG_SERIAL_8250_FINTEK is not setCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_DMA=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_EXAR=y
# CONFIG_SERIAL_8250_MEN_MCB is not setCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not setCONFIG_SERIAL_8250_DWLIB=y
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not setCONFIG_SERIAL_8250_LPSS=yCONFIG_SERIAL_8250_MID=yCONFIG_SERIAL_8250_PERICOM=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_TIMBERDALE is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_PCH_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_MEN_Z135 is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=y
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_N_GSM is not set
# CONFIG_NOZOMI is not set
# CONFIG_NULL_TTY is not set
# CONFIG_RPMSG_TTY is not set
# CONFIG_SERIAL_DEV_BUS is not set
# CONFIG_TTY_PRINTK is not set
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
# CONFIG_VIRTIO_CONSOLE is not setCONFIG_IPMI_HANDLER=yCONFIG_IPMI_PLAT_DATA=y
# CONFIG_IPMI_PANIC_EVENT is not setCONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=yCONFIG_IPMI_SSIF=y
# CONFIG_IPMI_IPMB is not set
# CONFIG_IPMI_WATCHDOG is not setCONFIG_IPMI_POWEROFF=yCONFIG_SSIF_IPMI_BMC=y
# CONFIG_IPMB_DEVICE_INTERFACE is not setCONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not setCONFIG_HW_RANDOM_INTEL=y
# CONFIG_HW_RANDOM_AMD is not setCONFIG_HW_RANDOM_BA431=yCONFIG_HW_RANDOM_GEODE=y
# CONFIG_HW_RANDOM_VIA is not setCONFIG_HW_RANDOM_VIRTIO=yCONFIG_HW_RANDOM_XIPHERA=y
# CONFIG_DTLK is not setCONFIG_APPLICOM=yCONFIG_SONYPI=y
# CONFIG_MWAVE is not set
# CONFIG_PC8736x_GPIO is not setCONFIG_NSC_GPIO=y
# CONFIG_DEVMEM is not setCONFIG_NVRAM=y
# CONFIG_DEVPORT is not set
# CONFIG_HPET is not setCONFIG_HANGCHECK_TIMER=y
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not setCONFIG_XILLYBUS_CLASS=yCONFIG_XILLYBUS=y
# end of Character devices
#
# I2C support
#CONFIG_I2C=y
# CONFIG_ACPI_I2C_OPREGION is not setCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_LTC4306 is not setCONFIG_I2C_MUX_PCA9541=y
CONFIG_I2C_MUX_PCA954x=yCONFIG_I2C_MUX_REG=yCONFIG_I2C_MUX_MLXCPLD=y
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_CCGX_UCSI=y
# CONFIG_I2C_ALI1535 is not setCONFIG_I2C_ALI1563=yCONFIG_I2C_ALI15X3=y
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_AMD_MP2 is not set
# CONFIG_I2C_I801 is not setCONFIG_I2C_ISCH=yCONFIG_I2C_ISMT=y
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not setCONFIG_I2C_NVIDIA_GPU=yCONFIG_I2C_SIS5595=y
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not setCONFIG_I2C_VIA=y
# CONFIG_I2C_VIAPRO is not set
#
# ACPI drivers
#CONFIG_I2C_SCMI=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_CBUS_GPIO=y CONFIG_I2C_DESIGNWARE_CORE=y
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PLATFORM=y
# CONFIG_I2C_DESIGNWARE_AMDPSP is not set CONFIG_I2C_DESIGNWARE_BAYTRAIL=y CONFIG_I2C_DESIGNWARE_PCI=yCONFIG_I2C_EG20T=yCONFIG_I2C_EMEV2=yCONFIG_I2C_GPIO=y
# CONFIG_I2C_GPIO_FAULT_INJECTOR is not set CONFIG_I2C_KEMPLD=yCONFIG_I2C_OCORES=yCONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_SIMTEC=y
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_PARPORT=yCONFIG_I2C_PCI1XXXX=y
# CONFIG_I2C_TAOS_EVM is not set
#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_ELEKTOR is not setCONFIG_I2C_PCA_ISA=y
CONFIG_SCx200_ACB=yCONFIG_I2C_VIRTIO=y
# end of I2C Hardware Bus support
# CONFIG_I2C_STUB is not setCONFIG_I2C_SLAVE=yCONFIG_I2C_SLAVE_EEPROM=yCONFIG_I2C_SLAVE_TESTUNIT=y
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
CONFIG_I3C=y
# CONFIG_CDNS_I3C_MASTER is not set
# CONFIG_DW_I3C_MASTER is not setCONFIG_SVC_I3C_MASTER=yCONFIG_MIPI_I3C_HCI=yCONFIG_SPI=y
# CONFIG_SPI_DEBUG is not setCONFIG_SPI_MASTER=yCONFIG_SPI_MEM=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_ALTERA=yCONFIG_SPI_ALTERA_CORE=yCONFIG_SPI_AXI_SPI_ENGINE=yCONFIG_SPI_BITBANG=yCONFIG_SPI_BUTTERFLY=yCONFIG_SPI_CADENCE=y
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_NXP_FLEXSPI is not setCONFIG_SPI_GPIO=yCONFIG_SPI_INTEL=yCONFIG_SPI_INTEL_PCI=yCONFIG_SPI_INTEL_PLATFORM=yCONFIG_SPI_LM70_LLP=yCONFIG_SPI_MICROCHIP_CORE=y
# CONFIG_SPI_MICROCHIP_CORE_QSPI is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not setCONFIG_SPI_PCI1XXXX=yCONFIG_SPI_PXA2XX=yCONFIG_SPI_PXA2XX_PCI=yCONFIG_SPI_ROCKCHIP=yCONFIG_SPI_SC18IS602=y
# CONFIG_SPI_SIFIVE is not setCONFIG_SPI_MXIC=yCONFIG_SPI_TOPCLIFF_PCH=y
# CONFIG_SPI_XCOMM is not setCONFIG_SPI_XILINX=yCONFIG_SPI_ZYNQMP_GQSPI=y
# CONFIG_SPI_AMD is not set
#
# SPI Multiplexer support
#CONFIG_SPI_MUX=y
#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not setCONFIG_SPI_DYNAMIC=yCONFIG_SPMI=y
# CONFIG_SPMI_HISI3670 is not set
# CONFIG_HSI is not setCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
#
# PPS clients support
#CONFIG_PPS_CLIENT_KTIMER=y
# CONFIG_PPS_CLIENT_LDISC is not setCONFIG_PPS_CLIENT_PARPORT=y
# CONFIG_PPS_CLIENT_GPIO is not set
#
# PPS generators support
#
#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not setCONFIG_PTP_1588_CLOCK_OPTIONAL=y
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_DEBUG_PINCTRL=y
# CONFIG_PINCTRL_AMD is not set
# CONFIG_PINCTRL_CY8C95X0 is not set
# CONFIG_PINCTRL_DA9062 is not setCONFIG_PINCTRL_MCP23S08_I2C=yCONFIG_PINCTRL_MCP23S08_SPI=yCONFIG_PINCTRL_MCP23S08=y
# CONFIG_PINCTRL_SX150X is not setCONFIG_PINCTRL_MADERA=y
#
# Intel pinctrl drivers
#
# CONFIG_PINCTRL_BAYTRAIL is not set
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_LYNXPOINT is not setCONFIG_PINCTRL_INTEL=yCONFIG_PINCTRL_ALDERLAKE=y
# CONFIG_PINCTRL_BROXTON is not setCONFIG_PINCTRL_CANNONLAKE=yCONFIG_PINCTRL_CEDARFORK=yCONFIG_PINCTRL_DENVERTON=yCONFIG_PINCTRL_ELKHARTLAKE=y
# CONFIG_PINCTRL_EMMITSBURG is not set
# CONFIG_PINCTRL_GEMINILAKE is not set
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not setCONFIG_PINCTRL_LAKEFIELD=yCONFIG_PINCTRL_LEWISBURG=y
# CONFIG_PINCTRL_METEORLAKE is not setCONFIG_PINCTRL_SUNRISEPOINT=y
# CONFIG_PINCTRL_TIGERLAKE is not set
# end of Intel pinctrl drivers
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not set
# CONFIG_GPIO_SYSFS is not set
# CONFIG_GPIO_CDEV is not setCONFIG_GPIO_GENERIC=yCONFIG_GPIO_MAX730X=yCONFIG_GPIO_IDIO_16=y
#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not setCONFIG_GPIO_GENERIC_PLATFORM=yCONFIG_GPIO_ICH=y
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_MENZ127 is not setCONFIG_GPIO_SIOX=yCONFIG_GPIO_VX855=yCONFIG_GPIO_AMD_FCH=y
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#CONFIG_GPIO_I8255=y
# CONFIG_GPIO_104_DIO_48E is not set
# CONFIG_GPIO_104_IDIO_16 is not setCONFIG_GPIO_104_IDI_48=yCONFIG_GPIO_F7188X=yCONFIG_GPIO_GPIO_MM=yCONFIG_GPIO_IT87=yCONFIG_GPIO_SCH=y
# CONFIG_GPIO_SCH311X is not setCONFIG_GPIO_WINBOND=yCONFIG_GPIO_WS16C48=y
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#CONFIG_GPIO_MAX7300=yCONFIG_GPIO_MAX732X=yCONFIG_GPIO_MAX732X_IRQ=yCONFIG_GPIO_PCA953X=yCONFIG_GPIO_PCA953X_IRQ=y
# CONFIG_GPIO_PCA9570 is not setCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TPIC2810=y
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# CONFIG_GPIO_ADP5520 is not setCONFIG_GPIO_CS5535=y
# CONFIG_GPIO_DA9052 is not setCONFIG_GPIO_KEMPLD=y
# CONFIG_GPIO_LP3943 is not set
# CONFIG_GPIO_MADERA is not setCONFIG_GPIO_PALMAS=yCONFIG_GPIO_RC5T583=yCONFIG_GPIO_TIMBERDALE=y
# CONFIG_GPIO_TPS65086 is not setCONFIG_GPIO_TPS65910=yCONFIG_GPIO_TPS65912=y
# CONFIG_GPIO_TQMX86 is not setCONFIG_GPIO_TWL4030=yCONFIG_GPIO_UCB1400=y
# CONFIG_GPIO_WHISKEY_COVE is not setCONFIG_GPIO_WM831X=yCONFIG_GPIO_WM8350=y
# CONFIG_GPIO_WM8994 is not set
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not setCONFIG_GPIO_BT8XX=yCONFIG_GPIO_ML_IOH=yCONFIG_GPIO_PCH=yCONFIG_GPIO_PCI_IDIO_16=y
# CONFIG_GPIO_PCIE_IDIO_24 is not setCONFIG_GPIO_RDC321X=y
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#CONFIG_GPIO_MAX3191X=yCONFIG_GPIO_MAX7301=yCONFIG_GPIO_MC33880=yCONFIG_GPIO_PISOSR=yCONFIG_GPIO_XRA1403=y
# end of SPI GPIO expanders
#
# Virtual GPIO drivers
#CONFIG_GPIO_AGGREGATOR=yCONFIG_GPIO_LATCH=yCONFIG_GPIO_MOCKUP=y
# CONFIG_GPIO_VIRTIO is not set
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers
CONFIG_W1=y
# CONFIG_W1_CON is not set
#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_MATROX is not setCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_DS1WM=y
# CONFIG_W1_MASTER_GPIO is not setCONFIG_W1_MASTER_SGI=y
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=y
# CONFIG_W1_SLAVE_SMEM is not setCONFIG_W1_SLAVE_DS2405=y
# CONFIG_W1_SLAVE_DS2408 is not set
# CONFIG_W1_SLAVE_DS2413 is not setCONFIG_W1_SLAVE_DS2406=yCONFIG_W1_SLAVE_DS2423=yCONFIG_W1_SLAVE_DS2805=yCONFIG_W1_SLAVE_DS2430=yCONFIG_W1_SLAVE_DS2431=y
# CONFIG_W1_SLAVE_DS2433 is not set
# CONFIG_W1_SLAVE_DS2438 is not setCONFIG_W1_SLAVE_DS250X=yCONFIG_W1_SLAVE_DS2780=yCONFIG_W1_SLAVE_DS2781=yCONFIG_W1_SLAVE_DS28E04=y
# CONFIG_W1_SLAVE_DS28E17 is not set
# end of 1-wire Slaves
# CONFIG_POWER_RESET is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_POWER_SUPPLY_HWMON is not setCONFIG_PDA_POWER=yCONFIG_GENERIC_ADC_BATTERY=y
# CONFIG_IP5XXX_POWER is not setCONFIG_WM831X_BACKUP=yCONFIG_WM831X_POWER=y
# CONFIG_WM8350_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_88PM860X is not setCONFIG_CHARGER_ADP5061=y
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2760 is not setCONFIG_BATTERY_DS2780=yCONFIG_BATTERY_DS2781=yCONFIG_BATTERY_DS2782=y
# CONFIG_BATTERY_SAMSUNG_SDI is not setCONFIG_BATTERY_SBS=yCONFIG_CHARGER_SBS=y
# CONFIG_MANAGER_SBS is not setCONFIG_BATTERY_BQ27XXX=yCONFIG_BATTERY_BQ27XXX_I2C=yCONFIG_BATTERY_BQ27XXX_HDQ=yCONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y
# CONFIG_BATTERY_DA9030 is not setCONFIG_BATTERY_DA9052=y
# CONFIG_CHARGER_DA9150 is not setCONFIG_BATTERY_DA9150=yCONFIG_AXP20X_POWER=y
# CONFIG_AXP288_FUEL_GAUGE is not set
# CONFIG_BATTERY_MAX17040 is not setCONFIG_BATTERY_MAX17042=yCONFIG_BATTERY_MAX1721X=yCONFIG_BATTERY_TWL4030_MADC=y
# CONFIG_BATTERY_RX51 is not setCONFIG_CHARGER_MAX8903=yCONFIG_CHARGER_TWL4030=yCONFIG_CHARGER_LP8727=yCONFIG_CHARGER_GPIO=yCONFIG_CHARGER_MANAGER=yCONFIG_CHARGER_LT3651=yCONFIG_CHARGER_LTC4162L=yCONFIG_CHARGER_MAX14577=yCONFIG_CHARGER_MAX77693=yCONFIG_CHARGER_MAX77976=y
# CONFIG_CHARGER_MT6360 is not setCONFIG_CHARGER_BQ2415X=yCONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not setCONFIG_CHARGER_BQ24735=yCONFIG_CHARGER_BQ2515X=yCONFIG_CHARGER_BQ25890=y
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not setCONFIG_CHARGER_SMB347=yCONFIG_BATTERY_GAUGE_LTC2941=y
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_BATTERY_RT5033 is not setCONFIG_CHARGER_RT9455=y
# CONFIG_CHARGER_BD99954 is not setCONFIG_BATTERY_UG3105=yCONFIG_HWMON=yCONFIG_HWMON_VID=yCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_AD7314=yCONFIG_SENSORS_AD7414=y
# CONFIG_SENSORS_AD7418 is not setCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1026=yCONFIG_SENSORS_ADM1029=yCONFIG_SENSORS_ADM1031=y
# CONFIG_SENSORS_ADM1177 is not setCONFIG_SENSORS_ADM9240=yCONFIG_SENSORS_ADT7X10=yCONFIG_SENSORS_ADT7310=yCONFIG_SENSORS_ADT7410=y
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not setCONFIG_SENSORS_ADT7470=yCONFIG_SENSORS_ADT7475=yCONFIG_SENSORS_AHT10=yCONFIG_SENSORS_AS370=y
# CONFIG_SENSORS_ASC7621 is not setCONFIG_SENSORS_AXI_FAN_CONTROL=y
# CONFIG_SENSORS_K8TEMP is not setCONFIG_SENSORS_APPLESMC=y
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not setCONFIG_SENSORS_CORSAIR_CPRO=y
# CONFIG_SENSORS_CORSAIR_PSU is not setCONFIG_SENSORS_DS620=y
# CONFIG_SENSORS_DS1621 is not setCONFIG_SENSORS_DELL_SMM=y
# CONFIG_I8K is not setCONFIG_SENSORS_DA9052_ADC=yCONFIG_SENSORS_I5K_AMB=yCONFIG_SENSORS_F71805F=yCONFIG_SENSORS_F71882FG=y
# CONFIG_SENSORS_F75375S is not setCONFIG_SENSORS_MC13783_ADC=yCONFIG_SENSORS_FSCHMD=y
# CONFIG_SENSORS_GL518SM is not setCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_G760A=yCONFIG_SENSORS_G762=yCONFIG_SENSORS_HIH6130=yCONFIG_SENSORS_IBMAEM=yCONFIG_SENSORS_IBMPEX=y
# CONFIG_SENSORS_IIO_HWMON is not setCONFIG_SENSORS_I5500=yCONFIG_SENSORS_CORETEMP=yCONFIG_SENSORS_IT87=y
# CONFIG_SENSORS_JC42 is not setCONFIG_SENSORS_POWR1220=yCONFIG_SENSORS_LINEAGE=y
# CONFIG_SENSORS_LTC2945 is not setCONFIG_SENSORS_LTC2947=yCONFIG_SENSORS_LTC2947_I2C=yCONFIG_SENSORS_LTC2947_SPI=yCONFIG_SENSORS_LTC2990=y
# CONFIG_SENSORS_LTC2992 is not setCONFIG_SENSORS_LTC4151=yCONFIG_SENSORS_LTC4215=y
# CONFIG_SENSORS_LTC4222 is not setCONFIG_SENSORS_LTC4245=y
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX1111 is not setCONFIG_SENSORS_MAX127=y
# CONFIG_SENSORS_MAX16065 is not setCONFIG_SENSORS_MAX1619=y
# CONFIG_SENSORS_MAX1668 is not setCONFIG_SENSORS_MAX197=yCONFIG_SENSORS_MAX31722=yCONFIG_SENSORS_MAX31730=y
# CONFIG_SENSORS_MAX31760 is not set
# CONFIG_SENSORS_MAX6620 is not set
# CONFIG_SENSORS_MAX6621 is not set
# CONFIG_SENSORS_MAX6639 is not setCONFIG_SENSORS_MAX6650=yCONFIG_SENSORS_MAX6697=yCONFIG_SENSORS_MAX31790=yCONFIG_SENSORS_MCP3021=y
# CONFIG_SENSORS_MLXREG_FAN is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not setCONFIG_SENSORS_MENF21BMC_HWMON=y
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not setCONFIG_SENSORS_LM75=yCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM87=yCONFIG_SENSORS_LM90=y
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not setCONFIG_SENSORS_LM95241=yCONFIG_SENSORS_LM95245=yCONFIG_SENSORS_PC87360=y
# CONFIG_SENSORS_PC87427 is not setCONFIG_SENSORS_NTC_THERMISTOR=y
# CONFIG_SENSORS_NCT6683 is not setCONFIG_SENSORS_NCT6775_CORE=yCONFIG_SENSORS_NCT6775=yCONFIG_SENSORS_NCT6775_I2C=yCONFIG_SENSORS_NCT7802=yCONFIG_SENSORS_NPCM7XX=y
# CONFIG_SENSORS_OCC_P8_I2C is not setCONFIG_SENSORS_OXP=yCONFIG_SENSORS_PCF8591=yCONFIG_PMBUS=yCONFIG_SENSORS_PMBUS=yCONFIG_SENSORS_ADM1266=yCONFIG_SENSORS_ADM1275=yCONFIG_SENSORS_BEL_PFE=yCONFIG_SENSORS_BPA_RS600=y
# CONFIG_SENSORS_DELTA_AHE50DC_FAN is not set
# CONFIG_SENSORS_FSP_3Y is not set
# CONFIG_SENSORS_IBM_CFFPS is not setCONFIG_SENSORS_DPS920AB=y
# CONFIG_SENSORS_INSPUR_IPSPS is not set
# CONFIG_SENSORS_IR35221 is not setCONFIG_SENSORS_IR36021=y
# CONFIG_SENSORS_IR38064 is not set
# CONFIG_SENSORS_IRPS5401 is not set
# CONFIG_SENSORS_ISL68137 is not setCONFIG_SENSORS_LM25066=y
# CONFIG_SENSORS_LM25066_REGULATOR is not setCONFIG_SENSORS_LT7182S=y
# CONFIG_SENSORS_LTC2978 is not set
# CONFIG_SENSORS_LTC3815 is not set
# CONFIG_SENSORS_MAX15301 is not setCONFIG_SENSORS_MAX16064=yCONFIG_SENSORS_MAX16601=y
# CONFIG_SENSORS_MAX20730 is not set
# CONFIG_SENSORS_MAX20751 is not setCONFIG_SENSORS_MAX31785=y
# CONFIG_SENSORS_MAX34440 is not setCONFIG_SENSORS_MAX8688=y
# CONFIG_SENSORS_MP2888 is not set
# CONFIG_SENSORS_MP2975 is not setCONFIG_SENSORS_MP5023=yCONFIG_SENSORS_PIM4328=yCONFIG_SENSORS_PLI1209BC=yCONFIG_SENSORS_PLI1209BC_REGULATOR=yCONFIG_SENSORS_PM6764TR=yCONFIG_SENSORS_PXE1610=yCONFIG_SENSORS_Q54SJ108A2=yCONFIG_SENSORS_STPDDC60=y
# CONFIG_SENSORS_TPS40422 is not set
# CONFIG_SENSORS_TPS53679 is not setCONFIG_SENSORS_TPS546D24=yCONFIG_SENSORS_UCD9000=yCONFIG_SENSORS_UCD9200=yCONFIG_SENSORS_XDPE152=yCONFIG_SENSORS_XDPE122=yCONFIG_SENSORS_XDPE122_REGULATOR=y
# CONFIG_SENSORS_ZL6100 is not setCONFIG_SENSORS_SBTSI=yCONFIG_SENSORS_SBRMI=y
# CONFIG_SENSORS_SHT15 is not setCONFIG_SENSORS_SHT21=y
CONFIG_SENSORS_SHT3x=y
CONFIG_SENSORS_SHT4x=yCONFIG_SENSORS_SHTC1=y
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_SY7636A is not setCONFIG_SENSORS_DME1737=yCONFIG_SENSORS_EMC1403=yCONFIG_SENSORS_EMC2103=yCONFIG_SENSORS_EMC2305=yCONFIG_SENSORS_EMC6W201=yCONFIG_SENSORS_SMSC47M1=yCONFIG_SENSORS_SMSC47M192=y
# CONFIG_SENSORS_SMSC47B397 is not setCONFIG_SENSORS_STTS751=yCONFIG_SENSORS_SMM665=yCONFIG_SENSORS_ADC128D818=yCONFIG_SENSORS_ADS7828=yCONFIG_SENSORS_ADS7871=yCONFIG_SENSORS_AMC6821=y
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not setCONFIG_SENSORS_INA238=yCONFIG_SENSORS_INA3221=y
# CONFIG_SENSORS_TC74 is not setCONFIG_SENSORS_THMC50=y
# CONFIG_SENSORS_TMP102 is not setCONFIG_SENSORS_TMP103=yCONFIG_SENSORS_TMP108=yCONFIG_SENSORS_TMP401=yCONFIG_SENSORS_TMP421=y
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not setCONFIG_SENSORS_VT8231=yCONFIG_SENSORS_W83773G=y
# CONFIG_SENSORS_W83781D is not setCONFIG_SENSORS_W83791D=y
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not setCONFIG_SENSORS_W83795=yCONFIG_SENSORS_W83795_FANCTRL=y
# CONFIG_SENSORS_W83L785TS is not setCONFIG_SENSORS_W83L786NG=y
# CONFIG_SENSORS_W83627HF is not setCONFIG_SENSORS_W83627EHF=y
# CONFIG_SENSORS_WM831X is not setCONFIG_SENSORS_WM8350=yCONFIG_SENSORS_INTEL_M10_BMC_HWMON=y
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=y
# CONFIG_SENSORS_ATK0110 is not set
# CONFIG_SENSORS_ASUS_WMI is not set
# CONFIG_SENSORS_ASUS_EC is not set CONFIG_THERMAL=y
# CONFIG_THERMAL_NETLINK is not set
# CONFIG_THERMAL_STATISTICS is not set CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 # CONFIG_THERMAL_HWMON is not set CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set # CONFIG_THERMAL_GOV_FAIR_SHARE is not set CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y
# CONFIG_THERMAL_GOV_USER_SPACE is not set CONFIG_DEVFREQ_THERMAL=y CONFIG_THERMAL_EMULATION=y
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=yCONFIG_INTEL_SOC_DTS_IOSF_CORE=yCONFIG_INTEL_SOC_DTS_THERMAL=y
#
# ACPI INT340X thermal drivers
#
# end of ACPI INT340X thermal drivers
# CONFIG_INTEL_BXT_PMIC_THERMAL is not setCONFIG_INTEL_PCH_THERMAL=yCONFIG_INTEL_TCC_COOLING=y
# end of Intel thermal drivers
# CONFIG_GENERIC_ADC_THERMAL is not set
# CONFIG_WATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=yCONFIG_BCMA_HOST_PCI_POSSIBLE=y
# CONFIG_BCMA_HOST_PCI is not setCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_DRIVER_PCI=y
# CONFIG_BCMA_SFLASH is not set
# CONFIG_BCMA_DRIVER_GMAC_CMN is not setCONFIG_BCMA_DRIVER_GPIO=yCONFIG_BCMA_DEBUG=y
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_CS5535=yCONFIG_MFD_AS3711=y
# CONFIG_MFD_SMPRO is not setCONFIG_PMIC_ADP5520=yCONFIG_MFD_AAT2870_CORE=yCONFIG_MFD_BCM590XX=y
# CONFIG_MFD_BD9571MWV is not setCONFIG_MFD_AXP20X=yCONFIG_MFD_AXP20X_I2C=yCONFIG_MFD_MADERA=y
# CONFIG_MFD_MADERA_I2C is not setCONFIG_MFD_MADERA_SPI=y
# CONFIG_MFD_CS47L15 is not set
# CONFIG_MFD_CS47L35 is not set
# CONFIG_MFD_CS47L85 is not set
# CONFIG_MFD_CS47L90 is not set
# CONFIG_MFD_CS47L92 is not setCONFIG_PMIC_DA903X=yCONFIG_PMIC_DA9052=y
# CONFIG_MFD_DA9052_SPI is not setCONFIG_MFD_DA9052_I2C=y
# CONFIG_MFD_DA9055 is not setCONFIG_MFD_DA9062=y
# CONFIG_MFD_DA9063 is not setCONFIG_MFD_DA9150=yCONFIG_MFD_MC13XXX=y
# CONFIG_MFD_MC13XXX_SPI is not setCONFIG_MFD_MC13XXX_I2C=yCONFIG_MFD_MP2629=yCONFIG_HTC_PASIC3=yCONFIG_MFD_INTEL_QUARK_I2C_GPIO=yCONFIG_LPC_ICH=yCONFIG_LPC_SCH=y
# CONFIG_INTEL_SOC_PMIC is not setCONFIG_INTEL_SOC_PMIC_BXTWC=y
# CONFIG_INTEL_SOC_PMIC_CHTWC is not setCONFIG_INTEL_SOC_PMIC_CHTDC_TI=yCONFIG_INTEL_SOC_PMIC_MRFLD=yCONFIG_MFD_INTEL_LPSS=y
# CONFIG_MFD_INTEL_LPSS_ACPI is not setCONFIG_MFD_INTEL_LPSS_PCI=yCONFIG_MFD_INTEL_PMC_BXT=yCONFIG_MFD_IQS62X=y
# CONFIG_MFD_JANZ_CMODIO is not setCONFIG_MFD_KEMPLD=yCONFIG_MFD_88PM800=y
# CONFIG_MFD_88PM805 is not setCONFIG_MFD_88PM860X=yCONFIG_MFD_MAX14577=yCONFIG_MFD_MAX77693=y
# CONFIG_MFD_MAX77843 is not setCONFIG_MFD_MAX8907=y
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not setCONFIG_MFD_MT6360=y
# CONFIG_MFD_MT6370 is not setCONFIG_MFD_MT6397=yCONFIG_MFD_MENF21BMC=yCONFIG_MFD_OCELOT=yCONFIG_EZX_PCAP=yCONFIG_MFD_RETU=y
# CONFIG_MFD_PCF50633 is not setCONFIG_UCB1400_CORE=yCONFIG_MFD_SY7636A=yCONFIG_MFD_RDC321X=y
# CONFIG_MFD_RT4831 is not setCONFIG_MFD_RT5033=yCONFIG_MFD_RT5120=yCONFIG_MFD_RC5T583=y
# CONFIG_MFD_SI476X_CORE is not setCONFIG_MFD_SIMPLE_MFD_I2C=y
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not setCONFIG_MFD_SYSCON=yCONFIG_MFD_TI_AM335X_TSCADC=yCONFIG_MFD_LP3943=y
# CONFIG_MFD_LP8788 is not setCONFIG_MFD_TI_LMU=yCONFIG_MFD_PALMAS=y
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not setCONFIG_TPS6507X=yCONFIG_MFD_TPS65086=y
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TPS6586X is not setCONFIG_MFD_TPS65910=yCONFIG_MFD_TPS65912=yCONFIG_MFD_TPS65912_I2C=yCONFIG_MFD_TPS65912_SPI=yCONFIG_TWL4030_CORE=yCONFIG_MFD_TWL4030_AUDIO=y
# CONFIG_TWL6040_CORE is not setCONFIG_MFD_WL1273_CORE=yCONFIG_MFD_LM3533=yCONFIG_MFD_TIMBERDALE=yCONFIG_MFD_TQMX86=yCONFIG_MFD_VX855=y
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not setCONFIG_MFD_WM831X=yCONFIG_MFD_WM831X_I2C=y
# CONFIG_MFD_WM831X_SPI is not setCONFIG_MFD_WM8350=yCONFIG_MFD_WM8350_I2C=yCONFIG_MFD_WM8994=y
# CONFIG_MFD_WCD934X is not set
# CONFIG_MFD_ATC260X_I2C is not setCONFIG_MFD_INTEL_M10_BMC=y
# end of Multifunction device drivers
CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not setCONFIG_REGULATOR_FIXED_VOLTAGE=yCONFIG_REGULATOR_VIRTUAL_CONSUMER=yCONFIG_REGULATOR_USERSPACE_CONSUMER=y
# CONFIG_REGULATOR_88PG86X is not setCONFIG_REGULATOR_88PM800=yCONFIG_REGULATOR_88PM8607=yCONFIG_REGULATOR_ACT8865=y
# CONFIG_REGULATOR_AD5398 is not set
# CONFIG_REGULATOR_AAT2870 is not setCONFIG_REGULATOR_ARIZONA_LDO1=yCONFIG_REGULATOR_ARIZONA_MICSUPP=y
# CONFIG_REGULATOR_AS3711 is not setCONFIG_REGULATOR_AXP20X=yCONFIG_REGULATOR_BCM590XX=yCONFIG_REGULATOR_DA903X=yCONFIG_REGULATOR_DA9052=yCONFIG_REGULATOR_DA9062=yCONFIG_REGULATOR_DA9210=y
# CONFIG_REGULATOR_DA9211 is not setCONFIG_REGULATOR_FAN53555=yCONFIG_REGULATOR_GPIO=y
# CONFIG_REGULATOR_ISL9305 is not setCONFIG_REGULATOR_ISL6271A=yCONFIG_REGULATOR_LM363X=yCONFIG_REGULATOR_LP3971=yCONFIG_REGULATOR_LP3972=yCONFIG_REGULATOR_LP872X=y
# CONFIG_REGULATOR_LP8755 is not set
# CONFIG_REGULATOR_LTC3589 is not set
# CONFIG_REGULATOR_LTC3676 is not setCONFIG_REGULATOR_MAX14577=yCONFIG_REGULATOR_MAX1586=yCONFIG_REGULATOR_MAX8649=y
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8893 is not set
# CONFIG_REGULATOR_MAX8907 is not set
# CONFIG_REGULATOR_MAX8952 is not setCONFIG_REGULATOR_MAX20086=y
# CONFIG_REGULATOR_MAX77693 is not set
# CONFIG_REGULATOR_MAX77826 is not setCONFIG_REGULATOR_MC13XXX_CORE=yCONFIG_REGULATOR_MC13783=yCONFIG_REGULATOR_MC13892=yCONFIG_REGULATOR_MP8859=yCONFIG_REGULATOR_MT6311=y
# CONFIG_REGULATOR_MT6315 is not setCONFIG_REGULATOR_MT6323=yCONFIG_REGULATOR_MT6331=y
# CONFIG_REGULATOR_MT6332 is not setCONFIG_REGULATOR_MT6357=y
# CONFIG_REGULATOR_MT6358 is not set
# CONFIG_REGULATOR_MT6359 is not setCONFIG_REGULATOR_MT6360=yCONFIG_REGULATOR_MT6397=yCONFIG_REGULATOR_PALMAS=y
# CONFIG_REGULATOR_PCA9450 is not set
# CONFIG_REGULATOR_PCAP is not set
# CONFIG_REGULATOR_PV88060 is not setCONFIG_REGULATOR_PV88080=yCONFIG_REGULATOR_PV88090=y
# CONFIG_REGULATOR_QCOM_SPMI is not setCONFIG_REGULATOR_QCOM_USB_VBUS=y
# CONFIG_REGULATOR_RC5T583 is not set
# CONFIG_REGULATOR_RT4801 is not setCONFIG_REGULATOR_RT5033=yCONFIG_REGULATOR_RT5120=yCONFIG_REGULATOR_RT5190A=yCONFIG_REGULATOR_RT5759=yCONFIG_REGULATOR_RT6160=yCONFIG_REGULATOR_RT6190=yCONFIG_REGULATOR_RT6245=yCONFIG_REGULATOR_RTQ2134=y
# CONFIG_REGULATOR_RTMV20 is not set
# CONFIG_REGULATOR_RTQ6752 is not set
# CONFIG_REGULATOR_SLG51000 is not setCONFIG_REGULATOR_SY7636A=yCONFIG_REGULATOR_TPS51632=yCONFIG_REGULATOR_TPS62360=yCONFIG_REGULATOR_TPS65023=y
# CONFIG_REGULATOR_TPS6507X is not setCONFIG_REGULATOR_TPS65086=yCONFIG_REGULATOR_TPS65132=yCONFIG_REGULATOR_TPS6524X=yCONFIG_REGULATOR_TPS65910=yCONFIG_REGULATOR_TPS65912=yCONFIG_REGULATOR_TWL4030=yCONFIG_REGULATOR_WM831X=y
# CONFIG_REGULATOR_WM8350 is not set
# CONFIG_REGULATOR_WM8994 is not setCONFIG_REGULATOR_QCOM_LABIBB=y
# CONFIG_RC_CORE is not setCONFIG_CEC_CORE=yCONFIG_CEC_NOTIFIER=y
#
# CEC support
#
# CONFIG_MEDIA_CEC_SUPPORT is not set
# end of CEC support
CONFIG_MEDIA_SUPPORT=yCONFIG_MEDIA_SUPPORT_FILTER=y
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
#
# Media device types
#
# CONFIG_MEDIA_CAMERA_SUPPORT is not set
# CONFIG_MEDIA_ANALOG_TV_SUPPORT is not setCONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
# CONFIG_MEDIA_RADIO_SUPPORT is not set
# CONFIG_MEDIA_SDR_SUPPORT is not setCONFIG_MEDIA_PLATFORM_SUPPORT=y
# CONFIG_MEDIA_TEST_SUPPORT is not set
# end of Media device types
CONFIG_VIDEO_DEV=yCONFIG_MEDIA_CONTROLLER=yCONFIG_DVB_CORE=y
#
# Video4Linux options
#CONFIG_VIDEO_V4L2_I2C=yCONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_VIDEO_ADV_DEBUG is not setCONFIG_VIDEO_FIXED_MINOR_RANGES=yCONFIG_VIDEO_TUNER=yCONFIG_V4L2_FWNODE=yCONFIG_V4L2_ASYNC=y
# end of Video4Linux options
#
# Media controller options
#CONFIG_MEDIA_CONTROLLER_DVB=y
# end of Media controller options
#
# Digital TV options
#CONFIG_DVB_MMAP=yCONFIG_DVB_NET=yCONFIG_DVB_MAX_ADAPTERS=16CONFIG_DVB_DYNAMIC_MINORS=yCONFIG_DVB_DEMUX_SECTION_LOSS_LOG=yCONFIG_DVB_ULE_DEBUG=y
# end of Digital TV options
#
# Media drivers
#
#
# Drivers filtered as selected at 'Filter media drivers' #
#
# Media drivers
#CONFIG_MEDIA_PCI_SUPPORT=y
#
# Media capture/analog/hybrid TV support
#CONFIG_VIDEO_CX25821=yCONFIG_VIDEO_CX25821_ALSA=y
# CONFIG_VIDEO_SAA7134 is not setCONFIG_VIDEO_SAA7164=y
#
# Media digital TV PCI Adapters
#CONFIG_DVB_B2C2_FLEXCOP_PCI=y
# CONFIG_DVB_B2C2_FLEXCOP_PCI_DEBUG is not set
# CONFIG_DVB_DDBRIDGE is not setCONFIG_DVB_NETUP_UNIDVB=yCONFIG_DVB_NGENE=y
# CONFIG_DVB_PLUTO2 is not setCONFIG_DVB_PT1=y
# CONFIG_DVB_PT3 is not setCONFIG_VIDEO_IPU3_CIO2=y
# CONFIG_CIO2_BRIDGE is not set
# CONFIG_MEDIA_PLATFORM_DRIVERS is not set
#
# MMC/SDIO DVB adapters
#
# CONFIG_SMS_SDIO_DRV is not set
#
# FireWire (IEEE 1394) Adapters
#CONFIG_DVB_FIREDTV=yCONFIG_DVB_FIREDTV_INPUT=yCONFIG_VIDEO_TVEEPROM=yCONFIG_DVB_B2C2_FLEXCOP=yCONFIG_VIDEOBUF2_CORE=yCONFIG_VIDEOBUF2_V4L2=yCONFIG_VIDEOBUF2_MEMOPS=yCONFIG_VIDEOBUF2_VMALLOC=yCONFIG_VIDEOBUF2_DMA_SG=yCONFIG_VIDEOBUF2_DVB=y
# end of Media drivers
#
# Media ancillary drivers
#CONFIG_MEDIA_ATTACH=y
#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_CS3308 is not setCONFIG_VIDEO_CS5345=yCONFIG_VIDEO_CS53L32A=yCONFIG_VIDEO_MSP3400=y
# CONFIG_VIDEO_SONY_BTF_MPX is not set
# CONFIG_VIDEO_TDA1997X is not setCONFIG_VIDEO_TDA7432=yCONFIG_VIDEO_TDA9840=yCONFIG_VIDEO_TEA6415C=yCONFIG_VIDEO_TEA6420=y
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_TVAUDIO is not setCONFIG_VIDEO_UDA1342=yCONFIG_VIDEO_VP27SMPX=yCONFIG_VIDEO_WM8739=yCONFIG_VIDEO_WM8775=y
# end of Audio decoders, processors and mixers
#
# RDS decoders
#CONFIG_VIDEO_SAA6588=y
# end of RDS decoders
#
# Video decoders
#CONFIG_VIDEO_ADV7180=y
# CONFIG_VIDEO_ADV7183 is not setCONFIG_VIDEO_ADV7604=y
# CONFIG_VIDEO_ADV7604_CEC is not setCONFIG_VIDEO_ADV7842=yCONFIG_VIDEO_ADV7842_CEC=yCONFIG_VIDEO_BT819=yCONFIG_VIDEO_BT856=y
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
# CONFIG_VIDEO_SAA711X is not set
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TC358746 is not setCONFIG_VIDEO_TVP514X=y
# CONFIG_VIDEO_TVP5150 is not setCONFIG_VIDEO_TVP7002=y
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set
#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not setCONFIG_VIDEO_CX25840=y
# end of Video decoders
#
# Video encoders
#CONFIG_VIDEO_AD9389B=y
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not setCONFIG_VIDEO_ADV7343=yCONFIG_VIDEO_ADV7393=yCONFIG_VIDEO_ADV7511=y
# CONFIG_VIDEO_ADV7511_CEC is not set
# CONFIG_VIDEO_AK881X is not set
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not setCONFIG_VIDEO_THS8200=y
# end of Video encoders
#
# Video improvement chips
#CONFIG_VIDEO_UPD64031A=yCONFIG_VIDEO_UPD64083=y
# end of Video improvement chips
#
# Audio/Video compression chips
#CONFIG_VIDEO_SAA6752HS=y
# end of Audio/Video compression chips
#
# SDR tuner chips
#
# end of SDR tuner chips
#
# Miscellaneous helper chips
#
# CONFIG_VIDEO_I2C is not set
# CONFIG_VIDEO_M52790 is not setCONFIG_VIDEO_ST_MIPID02=y
# CONFIG_VIDEO_THS7303 is not set
# end of Miscellaneous helper chips
#
# Media SPI Adapters
#
# CONFIG_CXD2880_SPI_DRV is not setCONFIG_VIDEO_GS1662=y
# end of Media SPI Adapters
CONFIG_MEDIA_TUNER=y
#
# Customize TV tuners
#CONFIG_MEDIA_TUNER_E4000=yCONFIG_MEDIA_TUNER_FC0011=y
# CONFIG_MEDIA_TUNER_FC0012 is not setCONFIG_MEDIA_TUNER_FC0013=yCONFIG_MEDIA_TUNER_FC2580=yCONFIG_MEDIA_TUNER_IT913X=yCONFIG_MEDIA_TUNER_M88RS6000T=yCONFIG_MEDIA_TUNER_MAX2165=yCONFIG_MEDIA_TUNER_MC44S803=yCONFIG_MEDIA_TUNER_MSI001=yCONFIG_MEDIA_TUNER_MT2060=yCONFIG_MEDIA_TUNER_MT2063=y
# CONFIG_MEDIA_TUNER_MT20XX is not set
# CONFIG_MEDIA_TUNER_MT2131 is not setCONFIG_MEDIA_TUNER_MT2266=yCONFIG_MEDIA_TUNER_MXL301RF=yCONFIG_MEDIA_TUNER_MXL5005S=yCONFIG_MEDIA_TUNER_MXL5007T=yCONFIG_MEDIA_TUNER_QM1D1B0004=yCONFIG_MEDIA_TUNER_QM1D1C0042=y
# CONFIG_MEDIA_TUNER_QT1010 is not setCONFIG_MEDIA_TUNER_R820T=y
# CONFIG_MEDIA_TUNER_SI2157 is not setCONFIG_MEDIA_TUNER_SIMPLE=yCONFIG_MEDIA_TUNER_TDA18212=y
# CONFIG_MEDIA_TUNER_TDA18218 is not set
# CONFIG_MEDIA_TUNER_TDA18250 is not setCONFIG_MEDIA_TUNER_TDA18271=yCONFIG_MEDIA_TUNER_TDA827X=yCONFIG_MEDIA_TUNER_TDA8290=yCONFIG_MEDIA_TUNER_TDA9887=yCONFIG_MEDIA_TUNER_TEA5761=yCONFIG_MEDIA_TUNER_TEA5767=y
# CONFIG_MEDIA_TUNER_TUA9001 is not set
# CONFIG_MEDIA_TUNER_XC2028 is not setCONFIG_MEDIA_TUNER_XC4000=yCONFIG_MEDIA_TUNER_XC5000=y
# end of Customize TV tuners
#
# Customise DVB Frontends
#
#
# Multistandard (satellite) frontends
#CONFIG_DVB_M88DS3103=yCONFIG_DVB_MXL5XX=yCONFIG_DVB_STB0899=yCONFIG_DVB_STB6100=y
CONFIG_DVB_STV090x=yCONFIG_DVB_STV0910=y
CONFIG_DVB_STV6110x=yCONFIG_DVB_STV6111=y
#
# Multistandard (cable + terrestrial) frontends
#
# CONFIG_DVB_DRXK is not setCONFIG_DVB_MN88472=yCONFIG_DVB_MN88473=yCONFIG_DVB_SI2165=yCONFIG_DVB_TDA18271C2DD=y
#
# DVB-S (satellite) frontends
#
# CONFIG_DVB_CX24110 is not setCONFIG_DVB_CX24116=y
# CONFIG_DVB_CX24117 is not setCONFIG_DVB_CX24120=y
# CONFIG_DVB_CX24123 is not set
# CONFIG_DVB_DS3000 is not setCONFIG_DVB_MB86A16=y
# CONFIG_DVB_MT312 is not setCONFIG_DVB_S5H1420=y
# CONFIG_DVB_SI21XX is not setCONFIG_DVB_STB6000=yCONFIG_DVB_STV0288=yCONFIG_DVB_STV0299=yCONFIG_DVB_STV0900=yCONFIG_DVB_STV6110=y
# CONFIG_DVB_TDA10071 is not setCONFIG_DVB_TDA10086=y
# CONFIG_DVB_TDA8083 is not setCONFIG_DVB_TDA8261=yCONFIG_DVB_TDA826X=yCONFIG_DVB_TS2020=yCONFIG_DVB_TUA6100=yCONFIG_DVB_TUNER_CX24113=yCONFIG_DVB_TUNER_ITD1000=yCONFIG_DVB_VES1X93=yCONFIG_DVB_ZL10036=yCONFIG_DVB_ZL10039=y
#
# DVB-T (terrestrial) frontends
#
# CONFIG_DVB_AF9013 is not set
# CONFIG_DVB_CX22700 is not set
# CONFIG_DVB_CX22702 is not setCONFIG_DVB_CXD2820R=y
# CONFIG_DVB_CXD2841ER is not setCONFIG_DVB_DIB3000MB=y
# CONFIG_DVB_DIB3000MC is not set
# CONFIG_DVB_DIB7000M is not setCONFIG_DVB_DIB7000P=yCONFIG_DVB_DIB9000=yCONFIG_DVB_DRXD=yCONFIG_DVB_EC100=yCONFIG_DVB_L64781=y
# CONFIG_DVB_MT352 is not setCONFIG_DVB_NXT6000=y
# CONFIG_DVB_RTL2830 is not setCONFIG_DVB_RTL2832=yCONFIG_DVB_S5H1432=yCONFIG_DVB_SI2168=y
# CONFIG_DVB_SP887X is not setCONFIG_DVB_STV0367=yCONFIG_DVB_TDA10048=yCONFIG_DVB_TDA1004X=y
# CONFIG_DVB_ZD1301_DEMOD is not setCONFIG_DVB_ZL10353=yCONFIG_DVB_CXD2880=y
#
# DVB-C (cable) frontends
#
# CONFIG_DVB_STV0297 is not set
# CONFIG_DVB_TDA10021 is not setCONFIG_DVB_TDA10023=yCONFIG_DVB_VES1820=y
#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #CONFIG_DVB_AU8522=yCONFIG_DVB_AU8522_DTV=yCONFIG_DVB_AU8522_V4L=yCONFIG_DVB_BCM3510=yCONFIG_DVB_LG2160=yCONFIG_DVB_LGDT3305=yCONFIG_DVB_LGDT3306A=yCONFIG_DVB_LGDT330X=yCONFIG_DVB_MXL692=yCONFIG_DVB_NXT200X=yCONFIG_DVB_OR51132=yCONFIG_DVB_OR51211=yCONFIG_DVB_S5H1409=yCONFIG_DVB_S5H1411=y
#
# ISDB-T (terrestrial) frontends
#CONFIG_DVB_DIB8000=y
# CONFIG_DVB_MB86A20S is not setCONFIG_DVB_S921=y
#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends #CONFIG_DVB_MN88443X=yCONFIG_DVB_TC90522=y
#
# Digital terrestrial only tuners/PLL
#
# CONFIG_DVB_PLL is not set
# CONFIG_DVB_TUNER_DIB0070 is not setCONFIG_DVB_TUNER_DIB0090=y
#
# SEC control devices for DVB-S
#CONFIG_DVB_A8293=yCONFIG_DVB_AF9033=y
# CONFIG_DVB_ASCOT2E is not setCONFIG_DVB_ATBM8830=yCONFIG_DVB_HELENE=y
# CONFIG_DVB_HORUS3A is not set
# CONFIG_DVB_ISL6405 is not set
# CONFIG_DVB_ISL6421 is not set
# CONFIG_DVB_ISL6423 is not setCONFIG_DVB_IX2505V=yCONFIG_DVB_LGS8GL5=y
# CONFIG_DVB_LGS8GXX is not setCONFIG_DVB_LNBH25=y
# CONFIG_DVB_LNBH29 is not setCONFIG_DVB_LNBP21=yCONFIG_DVB_LNBP22=yCONFIG_DVB_M88RS2000=y
CONFIG_DVB_TDA665x=yCONFIG_DVB_DRX39XYJ=y
#
# Common Interface (EN50221) controller drivers
#
# CONFIG_DVB_CXD2099 is not set
# CONFIG_DVB_SP2 is not set
# end of Customise DVB Frontends # end of Media ancillary drivers
#
# Graphics support
#CONFIG_APERTURE_HELPERS=yCONFIG_VIDEO_NOMODESET=yCONFIG_AGP=yCONFIG_AGP_ALI=y
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_INTEL is not setCONFIG_AGP_NVIDIA=yCONFIG_AGP_SIS=yCONFIG_AGP_SWORKS=y
# CONFIG_AGP_VIA is not setCONFIG_AGP_EFFICEON=yCONFIG_INTEL_GTT=y
# CONFIG_VGA_SWITCHEROO is not setCONFIG_DRM=yCONFIG_DRM_MIPI_DBI=yCONFIG_DRM_MIPI_DSI=yCONFIG_DRM_DEBUG_MM=yCONFIG_DRM_KMS_HELPER=yCONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS=y
# CONFIG_DRM_DEBUG_MODESET_LOCK is not set
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not setCONFIG_DRM_DISPLAY_HELPER=yCONFIG_DRM_DISPLAY_DP_HELPER=yCONFIG_DRM_DISPLAY_HDCP_HELPER=yCONFIG_DRM_DISPLAY_HDMI_HELPER=y
# CONFIG_DRM_DP_AUX_CHARDEV is not set
# CONFIG_DRM_DP_CEC is not setCONFIG_DRM_TTM=yCONFIG_DRM_BUDDY=yCONFIG_DRM_TTM_HELPER=yCONFIG_DRM_GEM_DMA_HELPER=yCONFIG_DRM_GEM_SHMEM_HELPER=yCONFIG_DRM_SCHED=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=yCONFIG_DRM_I2C_SIL164=yCONFIG_DRM_I2C_NXP_TDA998X=yCONFIG_DRM_I2C_NXP_TDA9950=y
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not setCONFIG_DRM_I915=yCONFIG_DRM_I915_FORCE_PROBE=""
# CONFIG_DRM_I915_CAPTURE_ERROR is not setCONFIG_DRM_I915_USERPTR=y
# CONFIG_DRM_I915_PXP is not set
#
# drm/i915 Debugging # # CONFIG_DRM_I915_WERROR is not set # CONFIG_DRM_I915_DEBUG is not set # CONFIG_DRM_I915_DEBUG_MMIO is not set # CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set CONFIG_DRM_I915_SW_FENCE_CHECK_DAG=y CONFIG_DRM_I915_DEBUG_GUC=y # CONFIG_DRM_I915_SELFTEST is not set # CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set # CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set # CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set # end of drm/i915 Debugging
#
# drm/i915 Profile Guided Optimisation # CONFIG_DRM_I915_REQUEST_TIMEOUT=20000 CONFIG_DRM_I915_FENCE_TIMEOUT=10000 CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500 CONFIG_DRM_I915_PREEMPT_TIMEOUT=640 CONFIG_DRM_I915_PREEMPT_TIMEOUT_COMPUTE=7500 CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000 CONFIG_DRM_I915_STOP_TIMEOUT=100 CONFIG_DRM_I915_TIMESLICE_DURATION=1 # end of drm/i915 Profile Guided Optimisation
CONFIG_DRM_VGEM=y
# CONFIG_DRM_VKMS is not setCONFIG_DRM_VMWGFX=yCONFIG_DRM_VMWGFX_MKSSTATS=y
# CONFIG_DRM_GMA500 is not setCONFIG_DRM_AST=yCONFIG_DRM_MGAG200=y
# CONFIG_DRM_QXL is not setCONFIG_DRM_PANEL=y
#
# Display Panels
#CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=yCONFIG_DRM_PANEL_WIDECHIPS_WS2401=y
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges
CONFIG_DRM_ETNAVIV=y
# CONFIG_DRM_ETNAVIV_THERMAL is not set
# CONFIG_DRM_BOCHS is not setCONFIG_DRM_CIRRUS_QEMU=yCONFIG_DRM_PANEL_MIPI_DBI=yCONFIG_DRM_SIMPLEDRM=y
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9163 is not set
# CONFIG_TINYDRM_ILI9225 is not setCONFIG_TINYDRM_ILI9341=yCONFIG_TINYDRM_ILI9486=yCONFIG_TINYDRM_MI0283QT=y
# CONFIG_TINYDRM_REPAPER is not setCONFIG_TINYDRM_ST7586=yCONFIG_TINYDRM_ST7735R=y
# CONFIG_DRM_VBOXVIDEO is not setCONFIG_DRM_SSD130X=y
# CONFIG_DRM_SSD130X_I2C is not set
# CONFIG_DRM_SSD130X_SPI is not setCONFIG_DRM_LEGACY=yCONFIG_DRM_TDFX=yCONFIG_DRM_R128=y
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not setCONFIG_DRM_VIA=yCONFIG_DRM_SAVAGE=yCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=yCONFIG_DRM_PRIVACY_SCREEN=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=y
# CONFIG_FB is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#
# CONFIG_LCD_CLASS_DEVICE is not setCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_BACKLIGHT_KTD253=y
# CONFIG_BACKLIGHT_LM3533 is not setCONFIG_BACKLIGHT_DA903X=yCONFIG_BACKLIGHT_DA9052=y
# CONFIG_BACKLIGHT_APPLE is not setCONFIG_BACKLIGHT_QCOM_WLED=yCONFIG_BACKLIGHT_SAHARA=yCONFIG_BACKLIGHT_WM831X=yCONFIG_BACKLIGHT_ADP5520=y
# CONFIG_BACKLIGHT_ADP8860 is not setCONFIG_BACKLIGHT_ADP8870=y
# CONFIG_BACKLIGHT_88PM860X is not setCONFIG_BACKLIGHT_AAT2870=y
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_PANDORA is not set
# CONFIG_BACKLIGHT_AS3711 is not set
# CONFIG_BACKLIGHT_GPIO is not setCONFIG_BACKLIGHT_LV5207LP=yCONFIG_BACKLIGHT_BD6107=yCONFIG_BACKLIGHT_ARCXCNN=y
# end of Backlight & LCD device support
CONFIG_VIDEOMODE_HELPERS=yCONFIG_HDMI=y
# end of Graphics support
# CONFIG_DRM_ACCEL is not setCONFIG_SOUND=yCONFIG_SND=yCONFIG_SND_TIMER=yCONFIG_SND_PCM=yCONFIG_SND_PCM_ELD=yCONFIG_SND_PCM_IEC958=yCONFIG_SND_DMAENGINE_PCM=yCONFIG_SND_HWDEP=yCONFIG_SND_RAWMIDI=yCONFIG_SND_COMPRESS_OFFLOAD=yCONFIG_SND_JACK=yCONFIG_SND_JACK_INPUT_DEV=y
# CONFIG_SND_OSSEMUL is not setCONFIG_SND_PCM_TIMER=yCONFIG_SND_HRTIMER=yCONFIG_SND_DYNAMIC_MINORS=yCONFIG_SND_MAX_CARDS=32
# CONFIG_SND_SUPPORT_OLD_API is not setCONFIG_SND_PROC_FS=y
# CONFIG_SND_VERBOSE_PROCFS is not setCONFIG_SND_VERBOSE_PRINTK=yCONFIG_SND_CTL_FAST_LOOKUP=y
# CONFIG_SND_DEBUG is not set
# CONFIG_SND_CTL_INPUT_VALIDATION is not setCONFIG_SND_VMASTER=yCONFIG_SND_DMA_SGBUF=y
# CONFIG_SND_SEQUENCER is not setCONFIG_SND_MPU401_UART=yCONFIG_SND_OPL3_LIB=yCONFIG_SND_OPL4_LIB=yCONFIG_SND_AC97_CODEC=yCONFIG_SND_DRIVERS=yCONFIG_SND_PCSP=yCONFIG_SND_DUMMY=yCONFIG_SND_ALOOP=yCONFIG_SND_MTPAV=yCONFIG_SND_MTS64=yCONFIG_SND_SERIAL_U16550=y
# CONFIG_SND_MPU401 is not setCONFIG_SND_PORTMAN2X4=y
# CONFIG_SND_AC97_POWER_SAVE is not setCONFIG_SND_WSS_LIB=yCONFIG_SND_SB_COMMON=yCONFIG_SND_SB8_DSP=yCONFIG_SND_SB16_DSP=yCONFIG_SND_ISA=yCONFIG_SND_ADLIB=y
# CONFIG_SND_AD1816A is not setCONFIG_SND_AD1848=yCONFIG_SND_ALS100=yCONFIG_SND_AZT1605=yCONFIG_SND_AZT2316=yCONFIG_SND_AZT2320=yCONFIG_SND_CMI8328=yCONFIG_SND_CMI8330=yCONFIG_SND_CS4231=y
# CONFIG_SND_CS4236 is not set
# CONFIG_SND_ES1688 is not setCONFIG_SND_ES18XX=yCONFIG_SND_SC6000=yCONFIG_SND_GUSCLASSIC=yCONFIG_SND_GUSEXTREME=yCONFIG_SND_GUSMAX=yCONFIG_SND_INTERWAVE=yCONFIG_SND_INTERWAVE_STB=yCONFIG_SND_JAZZ16=y
# CONFIG_SND_OPL3SA2 is not setCONFIG_SND_OPTI92X_AD1848=yCONFIG_SND_OPTI92X_CS4231=y
# CONFIG_SND_OPTI93X is not setCONFIG_SND_MIRO=yCONFIG_SND_SB8=yCONFIG_SND_SB16=y
# CONFIG_SND_SBAWE is not setCONFIG_SND_SB16_CSP=y
# CONFIG_SND_SSCAPE is not setCONFIG_SND_WAVEFRONT=y
# CONFIG_SND_MSND_PINNACLE is not set
# CONFIG_SND_MSND_CLASSIC is not set
# CONFIG_SND_PCI is not set
#
# HD-Audio
#CONFIG_SND_HDA=yCONFIG_SND_HDA_HWDEP=yCONFIG_SND_HDA_RECONFIG=y
# CONFIG_SND_HDA_INPUT_BEEP is not setCONFIG_SND_HDA_PATCH_LOADER=yCONFIG_SND_HDA_SCODEC_CS35L41=yCONFIG_SND_HDA_CS_DSP_CONTROLS=yCONFIG_SND_HDA_SCODEC_CS35L41_I2C=yCONFIG_SND_HDA_SCODEC_CS35L41_SPI=y
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not setCONFIG_SND_HDA_CODEC_VIA=yCONFIG_SND_HDA_CODEC_HDMI=yCONFIG_SND_HDA_CODEC_CIRRUS=y
# CONFIG_SND_HDA_CODEC_CS8409 is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not setCONFIG_SND_HDA_CODEC_CA0132=y
# CONFIG_SND_HDA_CODEC_CA0132_DSP is not setCONFIG_SND_HDA_CODEC_CMEDIA=y
# CONFIG_SND_HDA_CODEC_SI3054 is not setCONFIG_SND_HDA_GENERIC=yCONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# end of HD-Audio
CONFIG_SND_HDA_CORE=yCONFIG_SND_HDA_DSP_LOADER=yCONFIG_SND_HDA_COMPONENT=yCONFIG_SND_HDA_I915=yCONFIG_SND_HDA_EXT_CORE=yCONFIG_SND_HDA_PREALLOC_SIZE=0CONFIG_SND_INTEL_NHLT=yCONFIG_SND_INTEL_DSP_CONFIG=yCONFIG_SND_INTEL_SOUNDWIRE_ACPI=y
# CONFIG_SND_SPI is not set
# CONFIG_SND_FIREWIRE is not setCONFIG_SND_SOC=yCONFIG_SND_SOC_AC97_BUS=yCONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=yCONFIG_SND_SOC_COMPRESS=yCONFIG_SND_SOC_TOPOLOGY=yCONFIG_SND_SOC_ACPI=y
# CONFIG_SND_SOC_ADI is not set
# CONFIG_SND_SOC_AMD_ACP is not set
# CONFIG_SND_SOC_AMD_ACP3x is not set
# CONFIG_SND_SOC_AMD_RENOIR is not set
# CONFIG_SND_SOC_AMD_ACP5x is not set
# CONFIG_SND_SOC_AMD_ACP6x is not set
# CONFIG_SND_AMD_ACP_CONFIG is not set
# CONFIG_SND_SOC_AMD_ACP_COMMON is not set
# CONFIG_SND_SOC_AMD_RPL_ACP6x is not set
# CONFIG_SND_SOC_AMD_PS is not set
# CONFIG_SND_ATMEL_SOC is not setCONFIG_SND_BCM63XX_I2S_WHISTLER=y
# CONFIG_SND_DESIGNWARE_I2S is not set
#
# SoC Audio for Freescale CPUs
#
#
# Common SoC Audio options for Freescale CPUs:
#
# CONFIG_SND_SOC_FSL_ASRC is not setCONFIG_SND_SOC_FSL_SAI=yCONFIG_SND_SOC_FSL_MQS=yCONFIG_SND_SOC_FSL_AUDMIX=yCONFIG_SND_SOC_FSL_SSI=y
# CONFIG_SND_SOC_FSL_SPDIF is not set
# CONFIG_SND_SOC_FSL_ESAI is not setCONFIG_SND_SOC_FSL_MICFIL=y
# CONFIG_SND_SOC_FSL_XCVR is not setCONFIG_SND_SOC_FSL_UTILS=y
# CONFIG_SND_SOC_FSL_RPMSG is not setCONFIG_SND_SOC_IMX_AUDMUX=y
# end of SoC Audio for Freescale CPUs
CONFIG_SND_I2S_HI6210_I2S=y
# CONFIG_SND_SOC_IMG is not set CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=y CONFIG_SND_SOC_INTEL_SST=y CONFIG_SND_SOC_INTEL_CATPT=y
# CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_PCI is not set # CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI is not set CONFIG_SND_SOC_INTEL_SKYLAKE=y CONFIG_SND_SOC_INTEL_SKL=y CONFIG_SND_SOC_INTEL_APL=y CONFIG_SND_SOC_INTEL_KBL=y CONFIG_SND_SOC_INTEL_GLK=y CONFIG_SND_SOC_INTEL_CNL=y CONFIG_SND_SOC_INTEL_CFL=y CONFIG_SND_SOC_INTEL_CML_H=y
# CONFIG_SND_SOC_INTEL_CML_LP is not set CONFIG_SND_SOC_INTEL_SKYLAKE_FAMILY=y CONFIG_SND_SOC_INTEL_SKYLAKE_SSP_CLK=y CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=y CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON=y CONFIG_SND_SOC_ACPI_INTEL_MATCH=y
# CONFIG_SND_SOC_INTEL_AVS is not set CONFIG_SND_SOC_INTEL_MACH=y
# CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES is not set CONFIG_SND_SOC_INTEL_HDA_DSP_COMMON=y CONFIG_SND_SOC_INTEL_SKL_RT286_MACH=y CONFIG_SND_SOC_INTEL_SKL_NAU88L25_SSM4567_MACH=y CONFIG_SND_SOC_INTEL_SKL_NAU88L25_MAX98357A_MACH=y CONFIG_SND_SOC_INTEL_DA7219_MAX98357A_GENERIC=y CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_COMMON=y CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_MACH=y # CONFIG_SND_SOC_INTEL_BXT_RT298_MACH is not set # CONFIG_SND_SOC_INTEL_KBL_RT5663_MAX98927_MACH is not set CONFIG_SND_SOC_INTEL_KBL_RT5663_RT5514_MAX98927_MACH=y CONFIG_SND_SOC_INTEL_KBL_DA7219_MAX98357A_MACH=y CONFIG_SND_SOC_INTEL_KBL_DA7219_MAX98927_MACH=y CONFIG_SND_SOC_INTEL_KBL_RT5660_MACH=y CONFIG_SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH=y CONFIG_SND_SOC_MTK_BTCVSD=y CONFIG_SND_SOC_SOF_TOPLEVEL=y CONFIG_SND_SOC_SOF_PCI=y CONFIG_SND_SOC_SOF_ACPI=y
# CONFIG_SND_SOC_SOF_AMD_TOPLEVEL is not set
# CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL is not set
#
# STMicroelectronics STM32 SOC audio support
#
# end of STMicroelectronics STM32 SOC audio support
CONFIG_SND_SOC_XILINX_I2S=yCONFIG_SND_SOC_XILINX_AUDIO_FORMATTER=yCONFIG_SND_SOC_XILINX_SPDIF=yCONFIG_SND_SOC_XTFPGA_I2S=yCONFIG_SND_SOC_I2C_AND_SPI=y
#
# CODEC drivers
#CONFIG_SND_SOC_WM_ADSP=yCONFIG_SND_SOC_AC97_CODEC=yCONFIG_SND_SOC_ADAU_UTILS=y
# CONFIG_SND_SOC_ADAU1372_I2C is not set
# CONFIG_SND_SOC_ADAU1372_SPI is not setCONFIG_SND_SOC_ADAU1701=yCONFIG_SND_SOC_ADAU17X1=yCONFIG_SND_SOC_ADAU1761=yCONFIG_SND_SOC_ADAU1761_I2C=yCONFIG_SND_SOC_ADAU1761_SPI=y
# CONFIG_SND_SOC_ADAU7002 is not setCONFIG_SND_SOC_ADAU7118=yCONFIG_SND_SOC_ADAU7118_HW=y
# CONFIG_SND_SOC_ADAU7118_I2C is not setCONFIG_SND_SOC_AK4104=yCONFIG_SND_SOC_AK4118=yCONFIG_SND_SOC_AK4375=yCONFIG_SND_SOC_AK4458=yCONFIG_SND_SOC_AK4554=yCONFIG_SND_SOC_AK4613=yCONFIG_SND_SOC_AK4642=yCONFIG_SND_SOC_AK5386=yCONFIG_SND_SOC_AK5558=y
# CONFIG_SND_SOC_ALC5623 is not setCONFIG_SND_SOC_AW8738=yCONFIG_SND_SOC_BD28623=y
# CONFIG_SND_SOC_BT_SCO is not set
# CONFIG_SND_SOC_CS35L32 is not set
# CONFIG_SND_SOC_CS35L33 is not setCONFIG_SND_SOC_CS35L34=yCONFIG_SND_SOC_CS35L35=y
# CONFIG_SND_SOC_CS35L36 is not setCONFIG_SND_SOC_CS35L41_LIB=yCONFIG_SND_SOC_CS35L41=yCONFIG_SND_SOC_CS35L41_SPI=y
# CONFIG_SND_SOC_CS35L41_I2C is not set
# CONFIG_SND_SOC_CS35L45_SPI is not set
# CONFIG_SND_SOC_CS35L45_I2C is not setCONFIG_SND_SOC_CS42L42_CORE=yCONFIG_SND_SOC_CS42L42=y
# CONFIG_SND_SOC_CS42L51_I2C is not set
# CONFIG_SND_SOC_CS42L52 is not setCONFIG_SND_SOC_CS42L56=yCONFIG_SND_SOC_CS42L73=yCONFIG_SND_SOC_CS42L83=yCONFIG_SND_SOC_CS4234=yCONFIG_SND_SOC_CS4265=y
# CONFIG_SND_SOC_CS4270 is not setCONFIG_SND_SOC_CS4271=yCONFIG_SND_SOC_CS4271_I2C=yCONFIG_SND_SOC_CS4271_SPI=yCONFIG_SND_SOC_CS42XX8=yCONFIG_SND_SOC_CS42XX8_I2C=y
# CONFIG_SND_SOC_CS43130 is not setCONFIG_SND_SOC_CS4341=y
# CONFIG_SND_SOC_CS4349 is not set
# CONFIG_SND_SOC_CS53L30 is not set
# CONFIG_SND_SOC_CX2072X is not setCONFIG_SND_SOC_DA7213=yCONFIG_SND_SOC_DA7219=yCONFIG_SND_SOC_DMIC=yCONFIG_SND_SOC_HDMI_CODEC=y
# CONFIG_SND_SOC_ES7134 is not set
# CONFIG_SND_SOC_ES7241 is not set
# CONFIG_SND_SOC_ES8316 is not setCONFIG_SND_SOC_ES8326=yCONFIG_SND_SOC_ES8328=y
# CONFIG_SND_SOC_ES8328_I2C is not setCONFIG_SND_SOC_ES8328_SPI=y
# CONFIG_SND_SOC_GTM601 is not setCONFIG_SND_SOC_HDAC_HDMI=yCONFIG_SND_SOC_HDAC_HDA=yCONFIG_SND_SOC_HDA=y
# CONFIG_SND_SOC_ICS43432 is not setCONFIG_SND_SOC_INNO_RK3036=y
# CONFIG_SND_SOC_MAX98088 is not setCONFIG_SND_SOC_MAX98357A=y
# CONFIG_SND_SOC_MAX98504 is not set
# CONFIG_SND_SOC_MAX9867 is not setCONFIG_SND_SOC_MAX98927=yCONFIG_SND_SOC_MAX98520=yCONFIG_SND_SOC_MAX98373=yCONFIG_SND_SOC_MAX98373_I2C=yCONFIG_SND_SOC_MAX98373_SDW=yCONFIG_SND_SOC_MAX98390=yCONFIG_SND_SOC_MAX98396=yCONFIG_SND_SOC_MAX9860=yCONFIG_SND_SOC_MSM8916_WCD_ANALOG=y
# CONFIG_SND_SOC_MSM8916_WCD_DIGITAL is not setCONFIG_SND_SOC_PCM1681=yCONFIG_SND_SOC_PCM1789=yCONFIG_SND_SOC_PCM1789_I2C=yCONFIG_SND_SOC_PCM179X=y
# CONFIG_SND_SOC_PCM179X_I2C is not setCONFIG_SND_SOC_PCM179X_SPI=yCONFIG_SND_SOC_PCM186X=y
# CONFIG_SND_SOC_PCM186X_I2C is not setCONFIG_SND_SOC_PCM186X_SPI=yCONFIG_SND_SOC_PCM3060=yCONFIG_SND_SOC_PCM3060_I2C=yCONFIG_SND_SOC_PCM3060_SPI=yCONFIG_SND_SOC_PCM3168A=yCONFIG_SND_SOC_PCM3168A_I2C=yCONFIG_SND_SOC_PCM3168A_SPI=yCONFIG_SND_SOC_PCM5102A=y
CONFIG_SND_SOC_PCM512x=y
CONFIG_SND_SOC_PCM512x_I2C=y
CONFIG_SND_SOC_PCM512x_SPI=y
# CONFIG_SND_SOC_RK3328 is not setCONFIG_SND_SOC_RL6231=yCONFIG_SND_SOC_RL6347A=yCONFIG_SND_SOC_RT286=y
# CONFIG_SND_SOC_RT1308_SDW is not set
# CONFIG_SND_SOC_RT1316_SDW is not set
# CONFIG_SND_SOC_RT1318_SDW is not setCONFIG_SND_SOC_RT5514=yCONFIG_SND_SOC_RT5514_SPI=yCONFIG_SND_SOC_RT5616=yCONFIG_SND_SOC_RT5631=yCONFIG_SND_SOC_RT5640=y
# CONFIG_SND_SOC_RT5659 is not setCONFIG_SND_SOC_RT5660=yCONFIG_SND_SOC_RT5663=yCONFIG_SND_SOC_RT5682=yCONFIG_SND_SOC_RT5682_SDW=yCONFIG_SND_SOC_RT700=yCONFIG_SND_SOC_RT700_SDW=y
# CONFIG_SND_SOC_RT711_SDW is not setCONFIG_SND_SOC_RT711_SDCA_SDW=y
# CONFIG_SND_SOC_RT715_SDW is not setCONFIG_SND_SOC_RT715_SDCA_SDW=y
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not setCONFIG_SND_SOC_SGTL5000=yCONFIG_SND_SOC_SIGMADSP=yCONFIG_SND_SOC_SIGMADSP_I2C=yCONFIG_SND_SOC_SIGMADSP_REGMAP=yCONFIG_SND_SOC_SIMPLE_AMPLIFIER=yCONFIG_SND_SOC_SIMPLE_MUX=yCONFIG_SND_SOC_SPDIF=yCONFIG_SND_SOC_SRC4XXX_I2C=yCONFIG_SND_SOC_SRC4XXX=y
# CONFIG_SND_SOC_SSM2305 is not setCONFIG_SND_SOC_SSM2518=yCONFIG_SND_SOC_SSM2602=yCONFIG_SND_SOC_SSM2602_SPI=yCONFIG_SND_SOC_SSM2602_I2C=yCONFIG_SND_SOC_SSM4567=yCONFIG_SND_SOC_STA32X=yCONFIG_SND_SOC_STA350=yCONFIG_SND_SOC_STI_SAS=yCONFIG_SND_SOC_TAS2552=yCONFIG_SND_SOC_TAS2562=y
# CONFIG_SND_SOC_TAS2764 is not setCONFIG_SND_SOC_TAS2770=yCONFIG_SND_SOC_TAS2780=yCONFIG_SND_SOC_TAS5086=y
# CONFIG_SND_SOC_TAS571X is not set
# CONFIG_SND_SOC_TAS5720 is not setCONFIG_SND_SOC_TAS5805M=yCONFIG_SND_SOC_TAS6424=yCONFIG_SND_SOC_TDA7419=yCONFIG_SND_SOC_TFA9879=yCONFIG_SND_SOC_TFA989X=y
# CONFIG_SND_SOC_TLV320ADC3XXX is not setCONFIG_SND_SOC_TLV320AIC23=yCONFIG_SND_SOC_TLV320AIC23_I2C=y
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC31XX is not setCONFIG_SND_SOC_TLV320AIC32X4=yCONFIG_SND_SOC_TLV320AIC32X4_I2C=yCONFIG_SND_SOC_TLV320AIC32X4_SPI=yCONFIG_SND_SOC_TLV320AIC3X=yCONFIG_SND_SOC_TLV320AIC3X_I2C=yCONFIG_SND_SOC_TLV320AIC3X_SPI=yCONFIG_SND_SOC_TLV320ADCX140=yCONFIG_SND_SOC_TS3A227E=yCONFIG_SND_SOC_TSCS42XX=yCONFIG_SND_SOC_TSCS454=y
# CONFIG_SND_SOC_UDA1334 is not setCONFIG_SND_SOC_WCD9335=yCONFIG_SND_SOC_WCD_MBHC=yCONFIG_SND_SOC_WCD938X=yCONFIG_SND_SOC_WCD938X_SDW=yCONFIG_SND_SOC_WM8510=yCONFIG_SND_SOC_WM8523=y
# CONFIG_SND_SOC_WM8524 is not setCONFIG_SND_SOC_WM8580=yCONFIG_SND_SOC_WM8711=yCONFIG_SND_SOC_WM8728=yCONFIG_SND_SOC_WM8731=y
# CONFIG_SND_SOC_WM8731_I2C is not setCONFIG_SND_SOC_WM8731_SPI=y
# CONFIG_SND_SOC_WM8737 is not set
# CONFIG_SND_SOC_WM8741 is not setCONFIG_SND_SOC_WM8750=yCONFIG_SND_SOC_WM8753=y
# CONFIG_SND_SOC_WM8770 is not setCONFIG_SND_SOC_WM8776=y
# CONFIG_SND_SOC_WM8782 is not setCONFIG_SND_SOC_WM8804=yCONFIG_SND_SOC_WM8804_I2C=yCONFIG_SND_SOC_WM8804_SPI=yCONFIG_SND_SOC_WM8903=y
# CONFIG_SND_SOC_WM8904 is not setCONFIG_SND_SOC_WM8940=yCONFIG_SND_SOC_WM8960=yCONFIG_SND_SOC_WM8961=yCONFIG_SND_SOC_WM8962=y
# CONFIG_SND_SOC_WM8974 is not setCONFIG_SND_SOC_WM8978=yCONFIG_SND_SOC_WM8985=yCONFIG_SND_SOC_WSA881X=yCONFIG_SND_SOC_WSA883X=yCONFIG_SND_SOC_ZL38060=y
# CONFIG_SND_SOC_MAX9759 is not setCONFIG_SND_SOC_MT6351=yCONFIG_SND_SOC_MT6358=yCONFIG_SND_SOC_MT6660=y
# CONFIG_SND_SOC_NAU8315 is not set
# CONFIG_SND_SOC_NAU8540 is not setCONFIG_SND_SOC_NAU8810=yCONFIG_SND_SOC_NAU8821=yCONFIG_SND_SOC_NAU8822=y
# CONFIG_SND_SOC_NAU8824 is not setCONFIG_SND_SOC_NAU8825=yCONFIG_SND_SOC_TPA6130A2=yCONFIG_SND_SOC_LPASS_MACRO_COMMON=yCONFIG_SND_SOC_LPASS_WSA_MACRO=yCONFIG_SND_SOC_LPASS_VA_MACRO=yCONFIG_SND_SOC_LPASS_RX_MACRO=yCONFIG_SND_SOC_LPASS_TX_MACRO=y
# end of CODEC drivers
CONFIG_SND_SIMPLE_CARD_UTILS=yCONFIG_SND_SIMPLE_CARD=y
# CONFIG_SND_X86 is not set
# CONFIG_SND_VIRTIO is not setCONFIG_AC97_BUS=y
#
# HID support
#CONFIG_HID=y
# CONFIG_HID_BATTERY_STRENGTH is not set
# CONFIG_HIDRAW is not setCONFIG_UHID=yCONFIG_HID_GENERIC=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=y
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not setCONFIG_HID_AUREAL=yCONFIG_HID_BELKIN=yCONFIG_HID_CHERRY=yCONFIG_HID_COUGAR=yCONFIG_HID_MACALLY=yCONFIG_HID_CMEDIA=y
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not setCONFIG_HID_EMS_FF=y
# CONFIG_HID_ELECOM is not setCONFIG_HID_EZKEY=yCONFIG_HID_GEMBIRD=yCONFIG_HID_GFRM=yCONFIG_HID_GLORIOUS=yCONFIG_HID_VIVALDI_COMMON=yCONFIG_HID_VIVALDI=yCONFIG_HID_KEYTOUCH=yCONFIG_HID_KYE=y
# CONFIG_HID_WALTOP is not setCONFIG_HID_VIEWSONIC=yCONFIG_HID_VRC2=yCONFIG_HID_XIAOMI=yCONFIG_HID_GYRATION=yCONFIG_HID_ICADE=yCONFIG_HID_ITE=yCONFIG_HID_JABRA=yCONFIG_HID_TWINHAN=y
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not setCONFIG_HID_LED=y
# CONFIG_HID_LENOVO is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not setCONFIG_HID_REDRAGON=yCONFIG_HID_MICROSOFT=yCONFIG_HID_MONTEREY=yCONFIG_HID_MULTITOUCH=yCONFIG_HID_NINTENDO=y
# CONFIG_NINTENDO_FF is not set
# CONFIG_HID_NTI is not setCONFIG_HID_ORTEK=y
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not setCONFIG_HID_PICOLCD=y
# CONFIG_HID_PICOLCD_BACKLIGHT is not set
# CONFIG_HID_PICOLCD_LEDS is not setCONFIG_HID_PLANTRONICS=yCONFIG_HID_PLAYSTATION=yCONFIG_PLAYSTATION_FF=y
# CONFIG_HID_PXRC is not set
# CONFIG_HID_RAZER is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_SAITEK is not setCONFIG_HID_SEMITEK=y
# CONFIG_HID_SPEEDLINK is not setCONFIG_HID_STEAM=yCONFIG_HID_STEELSERIES=yCONFIG_HID_SUNPLUS=yCONFIG_HID_RMI=yCONFIG_HID_GREENASIA=yCONFIG_GREENASIA_FF=y
# CONFIG_HID_SMARTJOYPLUS is not setCONFIG_HID_TIVO=yCONFIG_HID_TOPSEED=yCONFIG_HID_TOPRE=y
# CONFIG_HID_THINGM is not setCONFIG_HID_UDRAW_PS3=y
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not setCONFIG_HID_ZEROPLUS=y
# CONFIG_ZEROPLUS_FF is not set
# CONFIG_HID_ZYDACRON is not setCONFIG_HID_SENSOR_HUB=y
# CONFIG_HID_SENSOR_CUSTOM_SENSOR is not setCONFIG_HID_ALPS=y
# end of Special HID drivers
#
# I2C HID support
#CONFIG_I2C_HID_ACPI=y
# end of I2C HID support
CONFIG_I2C_HID_CORE=y
# end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_SUPPORT=y
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_USB_CONN_GPIO is not setCONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB is not setCONFIG_USB_PCI=y
#
# USB dual-mode controller drivers
#
#
# USB port drivers
#
#
# USB Physical Layer drivers
#
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_TAHVO_USB is not set
# end of USB Physical Layer drivers
# CONFIG_USB_GADGET is not set
# CONFIG_TYPEC is not set
# CONFIG_USB_ROLE_SWITCH is not setCONFIG_MMC=y
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers
#CONFIG_MMC_DEBUG=yCONFIG_MMC_SDHCI=yCONFIG_MMC_SDHCI_IO_ACCESSORS=yCONFIG_MMC_SDHCI_PCI=y
# CONFIG_MMC_RICOH_MMC is not setCONFIG_MMC_SDHCI_ACPI=yCONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_WBSD is not setCONFIG_MMC_TIFM_SD=y
# CONFIG_MMC_SPI is not setCONFIG_MMC_CB710=yCONFIG_MMC_VIA_SDMMC=yCONFIG_MMC_USDHI6ROL0=yCONFIG_MMC_REALTEK_PCI=yCONFIG_MMC_CQHCI=yCONFIG_MMC_HSQ=yCONFIG_MMC_TOSHIBA_PCI=y
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not setCONFIG_MEMSTICK=yCONFIG_MEMSTICK_DEBUG=y
#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not set
#
# MemoryStick Host Controller Drivers
#CONFIG_MEMSTICK_TIFM_MS=yCONFIG_MEMSTICK_JMICRON_38X=yCONFIG_MEMSTICK_R592=yCONFIG_MEMSTICK_REALTEK_PCI=yCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not setCONFIG_LEDS_CLASS_MULTICOLOR=yCONFIG_LEDS_BRIGHTNESS_HW_CHANGED=y
#
# LED drivers
#CONFIG_LEDS_88PM860X=yCONFIG_LEDS_LM3530=yCONFIG_LEDS_LM3532=y
# CONFIG_LEDS_LM3533 is not setCONFIG_LEDS_LM3642=yCONFIG_LEDS_MT6323=yCONFIG_LEDS_PCA9532=yCONFIG_LEDS_PCA9532_GPIO=yCONFIG_LEDS_GPIO=yCONFIG_LEDS_LP3944=yCONFIG_LEDS_LP3952=yCONFIG_LEDS_LP50XX=y
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not setCONFIG_LEDS_WM831X_STATUS=y
# CONFIG_LEDS_WM8350 is not setCONFIG_LEDS_DA903X=yCONFIG_LEDS_DA9052=yCONFIG_LEDS_DAC124S085=yCONFIG_LEDS_REGULATOR=y
# CONFIG_LEDS_BD2802 is not setCONFIG_LEDS_LT3593=yCONFIG_LEDS_ADP5520=yCONFIG_LEDS_MC13783=yCONFIG_LEDS_TCA6507=y
# CONFIG_LEDS_TLC591XX is not set
CONFIG_LEDS_LM355x=yCONFIG_LEDS_OT200=y
# CONFIG_LEDS_MENF21BMC is not setCONFIG_LEDS_IS31FL319X=y
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #
# CONFIG_LEDS_BLINKM is not set
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not setCONFIG_LEDS_NIC78BX=yCONFIG_LEDS_TI_LMU_COMMON=yCONFIG_LEDS_LM36274=y
#
# Flash and Torch LED drivers
#
#
# RGB LED drivers
#
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=yCONFIG_LEDS_TRIGGER_ONESHOT=yCONFIG_LEDS_TRIGGER_HEARTBEAT=y
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
# CONFIG_LEDS_TRIGGER_CPU is not setCONFIG_LEDS_TRIGGER_ACTIVITY=yCONFIG_LEDS_TRIGGER_GPIO=yCONFIG_LEDS_TRIGGER_DEFAULT_ON=y
#
# iptables trigger is under Netfilter config (LED target) # # CONFIG_LEDS_TRIGGER_TRANSIENT is not set CONFIG_LEDS_TRIGGER_CAMERA=y # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set CONFIG_LEDS_TRIGGER_PATTERN=y # CONFIG_LEDS_TRIGGER_AUDIO is not set # CONFIG_LEDS_TRIGGER_TTY is not set
#
# Simple LED drivers
#
# CONFIG_LEDS_SIEMENS_SIMATIC_IPC is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=yCONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
# CONFIG_RTC_SYSTOHC is not setCONFIG_RTC_DEBUG=yCONFIG_RTC_NVMEM=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=y
# CONFIG_RTC_INTF_PROC is not setCONFIG_RTC_INTF_DEV=yCONFIG_RTC_INTF_DEV_UIE_EMUL=y
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_88PM860X is not setCONFIG_RTC_DRV_88PM80X=y
# CONFIG_RTC_DRV_ABB5ZES3 is not setCONFIG_RTC_DRV_ABEOZ9=yCONFIG_RTC_DRV_ABX80X=yCONFIG_RTC_DRV_DS1307=yCONFIG_RTC_DRV_DS1307_CENTURY=y
# CONFIG_RTC_DRV_DS1374 is not setCONFIG_RTC_DRV_DS1672=yCONFIG_RTC_DRV_MAX6900=y
# CONFIG_RTC_DRV_MAX8907 is not setCONFIG_RTC_DRV_RS5C372=yCONFIG_RTC_DRV_ISL1208=y
# CONFIG_RTC_DRV_ISL12022 is not setCONFIG_RTC_DRV_X1205=yCONFIG_RTC_DRV_PCF8523=yCONFIG_RTC_DRV_PCF85063=yCONFIG_RTC_DRV_PCF85363=yCONFIG_RTC_DRV_PCF8563=y
# CONFIG_RTC_DRV_PCF8583 is not setCONFIG_RTC_DRV_M41T80=y
# CONFIG_RTC_DRV_M41T80_WDT is not setCONFIG_RTC_DRV_BQ32K=yCONFIG_RTC_DRV_PALMAS=y
# CONFIG_RTC_DRV_TPS65910 is not set
# CONFIG_RTC_DRV_RC5T583 is not setCONFIG_RTC_DRV_S35390A=yCONFIG_RTC_DRV_FM3130=y
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8581 is not setCONFIG_RTC_DRV_RX8025=yCONFIG_RTC_DRV_EM3027=yCONFIG_RTC_DRV_RV3028=y
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not setCONFIG_RTC_DRV_SD3078=y
#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not setCONFIG_RTC_DRV_M41T94=y
# CONFIG_RTC_DRV_DS1302 is not setCONFIG_RTC_DRV_DS1305=yCONFIG_RTC_DRV_DS1343=yCONFIG_RTC_DRV_DS1347=y
# CONFIG_RTC_DRV_DS1390 is not setCONFIG_RTC_DRV_MAX6916=y
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not setCONFIG_RTC_DRV_RS5C348=yCONFIG_RTC_DRV_MAX6902=yCONFIG_RTC_DRV_PCF2123=y
# CONFIG_RTC_DRV_MCP795 is not setCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=yCONFIG_RTC_DRV_DS3232_HWMON=yCONFIG_RTC_DRV_PCF2127=yCONFIG_RTC_DRV_RV3029C2=yCONFIG_RTC_DRV_RV3029_HWMON=yCONFIG_RTC_DRV_RX6110=y
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=y
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not setCONFIG_RTC_DRV_DS1685_FAMILY=y
# CONFIG_RTC_DRV_DS1685 is not set
# CONFIG_RTC_DRV_DS1689 is not set
# CONFIG_RTC_DRV_DS17285 is not setCONFIG_RTC_DRV_DS17485=y
# CONFIG_RTC_DRV_DS17885 is not setCONFIG_RTC_DRV_DS1742=y
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_DA9052 is not setCONFIG_RTC_DRV_DA9063=yCONFIG_RTC_DRV_STK17TA8=yCONFIG_RTC_DRV_M48T86=yCONFIG_RTC_DRV_M48T35=yCONFIG_RTC_DRV_M48T59=y
# CONFIG_RTC_DRV_MSM6242 is not setCONFIG_RTC_DRV_BQ4802=y
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not setCONFIG_RTC_DRV_WM831X=y
# CONFIG_RTC_DRV_WM8350 is not set
#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_FTRTC010=y
# CONFIG_RTC_DRV_PCAP is not setCONFIG_RTC_DRV_MC13XXX=yCONFIG_RTC_DRV_MT6397=y
#
# HID Sensor RTC drivers
#CONFIG_RTC_DRV_GOLDFISH=yCONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_DMA_ACPI=y
# CONFIG_ALTERA_MSGDMA is not set
# CONFIG_INTEL_IDMA64 is not setCONFIG_PCH_DMA=y
# CONFIG_PLX_DMA is not set
# CONFIG_TIMB_DMA is not setCONFIG_QCOM_HIDMA_MGMT=y
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=yCONFIG_DW_DMAC=yCONFIG_DW_DMAC_PCI=yCONFIG_HSU_DMA=yCONFIG_SF_PDMA=yCONFIG_INTEL_LDMA=y
#
# DMA Clients
#CONFIG_ASYNC_TX_DMA=yCONFIG_DMATEST=yCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=yCONFIG_SW_SYNC=yCONFIG_UDMABUF=y
# CONFIG_DMABUF_MOVE_NOTIFY is not set
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_SELFTESTS is not setCONFIG_DMABUF_HEAPS=yCONFIG_DMABUF_SYSFS_STATS=y
# CONFIG_DMABUF_HEAPS_SYSTEM is not set
# CONFIG_DMABUF_HEAPS_CMA is not set
# end of DMABUF options
CONFIG_AUXDISPLAY=yCONFIG_CHARLCD=yCONFIG_LINEDISP=yCONFIG_HD44780_COMMON=y
# CONFIG_HD44780 is not setCONFIG_KS0108=yCONFIG_KS0108_PORT=0x378CONFIG_KS0108_DELAY=2CONFIG_IMG_ASCII_LCD=yCONFIG_LCD2S=yCONFIG_PARPORT_PANEL=yCONFIG_PANEL_PARPORT=0CONFIG_PANEL_PROFILE=5
# CONFIG_PANEL_CHANGE_MESSAGE is not set
# CONFIG_CHARLCD_BL_OFF is not setCONFIG_CHARLCD_BL_ON=y
# CONFIG_CHARLCD_BL_FLASH is not setCONFIG_PANEL=yCONFIG_UIO=y
# CONFIG_UIO_CIF is not set
# CONFIG_UIO_PDRV_GENIRQ is not setCONFIG_UIO_DMEM_GENIRQ=yCONFIG_UIO_AEC=yCONFIG_UIO_SERCOS3=yCONFIG_UIO_PCI_GENERIC=y
# CONFIG_UIO_NETX is not set
# CONFIG_UIO_PRUSS is not setCONFIG_UIO_MF624=yCONFIG_VFIO=yCONFIG_VFIO_CONTAINER=yCONFIG_VFIO_IOMMU_TYPE1=y
# CONFIG_VFIO_NOIOMMU is not setCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=y
# CONFIG_VFIO_PCI is not set
# CONFIG_VFIO_MDEV is not set
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO_ANCHOR=yCONFIG_VIRTIO=y
# CONFIG_VIRTIO_MENU is not set
# CONFIG_VDPA is not setCONFIG_VHOST_IOTLB=yCONFIG_VHOST=yCONFIG_VHOST_MENU=yCONFIG_VHOST_NET=y
# CONFIG_VHOST_VSOCK is not setCONFIG_VHOST_CROSS_ENDIAN_LEGACY=y
#
# Microsoft Hyper-V guest support
#
# end of Microsoft Hyper-V guest support
CONFIG_GREYBUS=y
# CONFIG_COMEDI is not set
# CONFIG_STAGING is not setCONFIG_CHROME_PLATFORMS=y
# CONFIG_CHROMEOS_ACPI is not setCONFIG_CHROMEOS_PSTORE=yCONFIG_CHROMEOS_TBMC=y
# CONFIG_CROS_EC is not setCONFIG_CROS_KBD_LED_BACKLIGHT=yCONFIG_CROS_HPS_I2C=yCONFIG_CHROMEOS_PRIVACY_SCREEN=yCONFIG_MELLANOX_PLATFORM=y
# CONFIG_MLXREG_HOTPLUG is not setCONFIG_MLXREG_IO=yCONFIG_MLXREG_LC=yCONFIG_NVSW_SN2201=yCONFIG_SURFACE_PLATFORMS=yCONFIG_SURFACE_3_POWER_OPREGION=yCONFIG_SURFACE_HOTPLUG=yCONFIG_SURFACE_PRO3_BUTTON=yCONFIG_X86_PLATFORM_DEVICES=yCONFIG_ACPI_WMI=y
# CONFIG_WMI_BMOF is not set
# CONFIG_MXM_WMI is not set
# CONFIG_PEAQ_WMI is not setCONFIG_NVIDIA_WMI_EC_BACKLIGHT=yCONFIG_XIAOMI_WMI=yCONFIG_GIGABYTE_WMI=y
# CONFIG_YOGABOOK_WMI is not setCONFIG_ACERHDF=yCONFIG_ACER_WIRELESS=yCONFIG_ACER_WMI=y
# CONFIG_AMD_PMF is not set
# CONFIG_AMD_PMC is not setCONFIG_ADV_SWBUTTON=y
# CONFIG_APPLE_GMUX is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_ASUS_WIRELESS is not setCONFIG_ASUS_TF103C_DOCK=y
# CONFIG_MERAKI_MX100 is not setCONFIG_EEEPC_LAPTOP=y
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not setCONFIG_AMILO_RFKILL=yCONFIG_FUJITSU_LAPTOP=yCONFIG_FUJITSU_TABLET=y
# CONFIG_GPD_POCKET_FAN is not setCONFIG_X86_PLATFORM_DRIVERS_HP=y
# CONFIG_HP_ACCEL is not set
# CONFIG_HP_WMI is not setCONFIG_TC1100_WMI=yCONFIG_WIRELESS_HOTKEY=yCONFIG_IBM_RTL=yCONFIG_IDEAPAD_LAPTOP=yCONFIG_SENSORS_HDAPS=y
# CONFIG_THINKPAD_LMI is not setCONFIG_INTEL_ATOMISP2_PDX86=yCONFIG_INTEL_ATOMISP2_LED=y
# CONFIG_INTEL_ATOMISP2_PM is not set
# CONFIG_INTEL_SAR_INT1092 is not set
# CONFIG_INTEL_SKL_INT3472 is not setCONFIG_INTEL_PMC_CORE=yCONFIG_INTEL_WMI=y
# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not setCONFIG_INTEL_WMI_THUNDERBOLT=yCONFIG_INTEL_HID_EVENT=yCONFIG_INTEL_VBTN=yCONFIG_INTEL_OAKTRAIL=y
# CONFIG_INTEL_BXTWC_PMIC_TMU is not setCONFIG_INTEL_CHTDC_TI_PWRBTN=y
# CONFIG_INTEL_MRFLD_PWRBTN is not setCONFIG_INTEL_PUNIT_IPC=y
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_INTEL_VSEC is not setCONFIG_MSI_LAPTOP=y
# CONFIG_MSI_WMI is not setCONFIG_PCENGINES_APU2=yCONFIG_BARCO_P50_GPIO=y
# CONFIG_SAMSUNG_LAPTOP is not set
# CONFIG_SAMSUNG_Q10 is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_TOSHIBA_HAPS is not setCONFIG_TOSHIBA_WMI=y
# CONFIG_ACPI_CMPC is not set
# CONFIG_COMPAL_LAPTOP is not setCONFIG_PANASONIC_LAPTOP=yCONFIG_SONY_LAPTOP=y
# CONFIG_SONYPI_COMPAT is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_SERIAL_MULTI_INSTANTIATE is not setCONFIG_MLX_PLATFORM=yCONFIG_INTEL_IPS=yCONFIG_INTEL_SCU_IPC=yCONFIG_INTEL_SCU=yCONFIG_INTEL_SCU_PCI=y
# CONFIG_INTEL_SCU_PLATFORM is not setCONFIG_INTEL_SCU_IPC_UTIL=yCONFIG_SIEMENS_SIMATIC_IPC=yCONFIG_WINMATE_FM07_KEYS=yCONFIG_P2SB=yCONFIG_HAVE_CLK=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=y
# CONFIG_COMMON_CLK_WM831X is not setCONFIG_LMK04832=yCONFIG_COMMON_CLK_MAX9485=yCONFIG_COMMON_CLK_SI5341=yCONFIG_COMMON_CLK_SI5351=y
# CONFIG_COMMON_CLK_SI544 is not setCONFIG_COMMON_CLK_CDCE706=y
# CONFIG_COMMON_CLK_CS2000_CP is not setCONFIG_COMMON_CLK_PALMAS=yCONFIG_XILINX_VCU=y
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#CONFIG_CLKSRC_I8253=yCONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=y
# end of Clock Source drivers
CONFIG_MAILBOX=y
# CONFIG_PCC is not set
# CONFIG_ALTERA_MBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not setCONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not setCONFIG_IOMMU_DMA=yCONFIG_IOMMUFD=yCONFIG_VIRTIO_IOMMU=y
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#CONFIG_RPMSG=y
# CONFIG_RPMSG_CHAR is not set
# CONFIG_RPMSG_CTRL is not setCONFIG_RPMSG_NS=yCONFIG_RPMSG_QCOM_GLINK=yCONFIG_RPMSG_QCOM_GLINK_RPM=yCONFIG_RPMSG_VIRTIO=y
# end of Rpmsg drivers
CONFIG_SOUNDWIRE=y
#
# SoundWire Devices
#
# CONFIG_SOUNDWIRE_INTEL is not set
# CONFIG_SOUNDWIRE_QCOM is not set
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers
#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# fujitsu SoC drivers # # end of fujitsu SoC drivers
#
# i.MX SoC drivers
#
# end of i.MX SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#
# end of Enable LiteX SoC Builder specific drivers
#
# Qualcomm SoC drivers
#CONFIG_QCOM_QMI_HELPERS=y
# end of Qualcomm SoC drivers
CONFIG_SOC_TI=y
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
CONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=yCONFIG_DEVFREQ_GOV_PERFORMANCE=y
# CONFIG_DEVFREQ_GOV_POWERSAVE is not setCONFIG_DEVFREQ_GOV_USERSPACE=yCONFIG_DEVFREQ_GOV_PASSIVE=y
#
# DEVFREQ Drivers
#CONFIG_PM_DEVFREQ_EVENT=yCONFIG_EXTCON=y
#
# Extcon Device Drivers
#
# CONFIG_EXTCON_ADC_JACK is not set
# CONFIG_EXTCON_AXP288 is not set
# CONFIG_EXTCON_FSA9480 is not setCONFIG_EXTCON_GPIO=yCONFIG_EXTCON_INTEL_INT3496=yCONFIG_EXTCON_INTEL_MRFLD=yCONFIG_EXTCON_MAX14577=y
# CONFIG_EXTCON_MAX3355 is not setCONFIG_EXTCON_MAX77693=yCONFIG_EXTCON_PALMAS=yCONFIG_EXTCON_PTN5150=y
# CONFIG_EXTCON_RT8973A is not setCONFIG_EXTCON_SM5502=yCONFIG_EXTCON_USB_GPIO=yCONFIG_MEMORY=yCONFIG_IIO=yCONFIG_IIO_BUFFER=yCONFIG_IIO_BUFFER_CB=yCONFIG_IIO_BUFFER_DMA=yCONFIG_IIO_BUFFER_DMAENGINE=yCONFIG_IIO_BUFFER_HW_CONSUMER=yCONFIG_IIO_KFIFO_BUF=yCONFIG_IIO_TRIGGERED_BUFFER=yCONFIG_IIO_CONFIGFS=yCONFIG_IIO_TRIGGER=yCONFIG_IIO_CONSUMERS_PER_TRIGGER=2
# CONFIG_IIO_SW_DEVICE is not set
# CONFIG_IIO_SW_TRIGGER is not setCONFIG_IIO_TRIGGERED_EVENT=y
#
# Accelerometers
#CONFIG_ADIS16201=yCONFIG_ADIS16209=yCONFIG_ADXL313=yCONFIG_ADXL313_I2C=yCONFIG_ADXL313_SPI=yCONFIG_ADXL355=y
# CONFIG_ADXL355_I2C is not setCONFIG_ADXL355_SPI=yCONFIG_ADXL367=y
# CONFIG_ADXL367_SPI is not setCONFIG_ADXL367_I2C=yCONFIG_ADXL372=yCONFIG_ADXL372_SPI=y
# CONFIG_ADXL372_I2C is not setCONFIG_BMA220=yCONFIG_BMA400=yCONFIG_BMA400_I2C=yCONFIG_BMA400_SPI=yCONFIG_BMC150_ACCEL=yCONFIG_BMC150_ACCEL_I2C=yCONFIG_BMC150_ACCEL_SPI=y
# CONFIG_BMI088_ACCEL is not set
# CONFIG_DA280 is not setCONFIG_DA311=y
# CONFIG_DMARD06 is not setCONFIG_DMARD09=yCONFIG_DMARD10=yCONFIG_FXLS8962AF=yCONFIG_FXLS8962AF_I2C=y
# CONFIG_FXLS8962AF_SPI is not setCONFIG_HID_SENSOR_ACCEL_3D=yCONFIG_IIO_ST_ACCEL_3AXIS=yCONFIG_IIO_ST_ACCEL_I2C_3AXIS=yCONFIG_IIO_ST_ACCEL_SPI_3AXIS=yCONFIG_IIO_KX022A=yCONFIG_IIO_KX022A_SPI=yCONFIG_IIO_KX022A_I2C=yCONFIG_KXSD9=yCONFIG_KXSD9_SPI=yCONFIG_KXSD9_I2C=yCONFIG_KXCJK1013=yCONFIG_MC3230=yCONFIG_MMA7455=yCONFIG_MMA7455_I2C=yCONFIG_MMA7455_SPI=y
# CONFIG_MMA7660 is not setCONFIG_MMA8452=yCONFIG_MMA9551_CORE=yCONFIG_MMA9551=yCONFIG_MMA9553=yCONFIG_MSA311=y
# CONFIG_MXC4005 is not set
# CONFIG_MXC6255 is not setCONFIG_SCA3000=yCONFIG_SCA3300=y
# CONFIG_STK8312 is not setCONFIG_STK8BA50=y
# end of Accelerometers
#
# Analog to digital converters
#CONFIG_AD_SIGMA_DELTA=yCONFIG_AD4130=yCONFIG_AD7091R5=yCONFIG_AD7124=yCONFIG_AD7192=y
# CONFIG_AD7266 is not set
# CONFIG_AD7280 is not set
# CONFIG_AD7291 is not setCONFIG_AD7292=y
# CONFIG_AD7298 is not setCONFIG_AD7476=yCONFIG_AD7606=yCONFIG_AD7606_IFACE_PARALLEL=yCONFIG_AD7606_IFACE_SPI=yCONFIG_AD7766=yCONFIG_AD7768_1=yCONFIG_AD7780=yCONFIG_AD7791=yCONFIG_AD7793=yCONFIG_AD7887=yCONFIG_AD7923=y
# CONFIG_AD7949 is not setCONFIG_AD799X=y
# CONFIG_AXP20X_ADC is not setCONFIG_AXP288_ADC=y
# CONFIG_CC10001_ADC is not setCONFIG_DA9150_GPADC=y
# CONFIG_ENVELOPE_DETECTOR is not setCONFIG_HI8435=y
# CONFIG_HX711 is not set
# CONFIG_INA2XX_ADC is not setCONFIG_INTEL_MRFLD_ADC=y
# CONFIG_LTC2471 is not setCONFIG_LTC2485=yCONFIG_LTC2496=yCONFIG_LTC2497=yCONFIG_MAX1027=y
# CONFIG_MAX11100 is not set
# CONFIG_MAX1118 is not setCONFIG_MAX11205=yCONFIG_MAX11410=y
# CONFIG_MAX1241 is not setCONFIG_MAX1363=yCONFIG_MAX9611=yCONFIG_MCP320X=yCONFIG_MCP3422=yCONFIG_MCP3911=yCONFIG_MEDIATEK_MT6360_ADC=yCONFIG_MEN_Z188_ADC=y
# CONFIG_MP2629_ADC is not setCONFIG_NAU7802=yCONFIG_PALMAS_GPADC=yCONFIG_QCOM_VADC_COMMON=yCONFIG_QCOM_SPMI_IADC=yCONFIG_QCOM_SPMI_VADC=y
# CONFIG_QCOM_SPMI_ADC5 is not setCONFIG_RICHTEK_RTQ6056=yCONFIG_SD_ADC_MODULATOR=yCONFIG_TI_ADC081C=yCONFIG_TI_ADC0832=y
# CONFIG_TI_ADC084S021 is not set
# CONFIG_TI_ADC12138 is not setCONFIG_TI_ADC108S102=yCONFIG_TI_ADC128S052=y
# CONFIG_TI_ADC161S626 is not setCONFIG_TI_ADS1015=yCONFIG_TI_ADS7950=yCONFIG_TI_ADS8344=yCONFIG_TI_ADS8688=y
# CONFIG_TI_ADS124S08 is not setCONFIG_TI_ADS131E08=y
# CONFIG_TI_AM335X_ADC is not setCONFIG_TI_TLC4541=y
# CONFIG_TI_TSC2046 is not setCONFIG_TWL4030_MADC=yCONFIG_TWL6030_GPADC=yCONFIG_VF610_ADC=yCONFIG_XILINX_XADC=y
# end of Analog to digital converters
#
# Analog to digital and digital to analog converters #CONFIG_AD74115=y
# CONFIG_AD74413R is not setCONFIG_STX104=y
# end of Analog to digital and digital to analog converters
#
# Analog Front Ends
#CONFIG_IIO_RESCALE=y
# end of Analog Front Ends
#
# Amplifiers
#
# CONFIG_AD8366 is not setCONFIG_ADA4250=yCONFIG_HMC425=y
# end of Amplifiers
#
# Capacitance to digital converters
#
# CONFIG_AD7150 is not set
# CONFIG_AD7746 is not set
# end of Capacitance to digital converters
#
# Chemical Sensors
#CONFIG_ATLAS_PH_SENSOR=yCONFIG_ATLAS_EZO_SENSOR=yCONFIG_BME680=yCONFIG_BME680_I2C=yCONFIG_BME680_SPI=yCONFIG_CCS811=yCONFIG_IAQCORE=y
# CONFIG_SCD30_CORE is not set
# CONFIG_SCD4X is not set
# CONFIG_SENSIRION_SGP30 is not setCONFIG_SENSIRION_SGP40=yCONFIG_SPS30=yCONFIG_SPS30_I2C=yCONFIG_SENSEAIR_SUNRISE_CO2=yCONFIG_VZ89X=y
# end of Chemical Sensors
#
# Hid Sensor IIO Common
#CONFIG_HID_SENSOR_IIO_COMMON=yCONFIG_HID_SENSOR_IIO_TRIGGER=y
# end of Hid Sensor IIO Common
CONFIG_IIO_MS_SENSORS_I2C=y
#
# IIO SCMI Sensors
#
# end of IIO SCMI Sensors
#
# SSP Sensor Common
#
# CONFIG_IIO_SSP_SENSORHUB is not set
# end of SSP Sensor Common
CONFIG_IIO_ST_SENSORS_I2C=yCONFIG_IIO_ST_SENSORS_SPI=yCONFIG_IIO_ST_SENSORS_CORE=y
#
# Digital to analog converters
#
# CONFIG_AD3552R is not set
# CONFIG_AD5064 is not set
# CONFIG_AD5360 is not setCONFIG_AD5380=yCONFIG_AD5421=y
# CONFIG_AD5446 is not setCONFIG_AD5449=yCONFIG_AD5592R_BASE=yCONFIG_AD5592R=yCONFIG_AD5593R=yCONFIG_AD5504=y
# CONFIG_AD5624R_SPI is not set
# CONFIG_LTC2688 is not setCONFIG_AD5686=yCONFIG_AD5686_SPI=y
# CONFIG_AD5696_I2C is not setCONFIG_AD5755=yCONFIG_AD5758=yCONFIG_AD5761=yCONFIG_AD5764=yCONFIG_AD5766=yCONFIG_AD5770R=yCONFIG_AD5791=y
# CONFIG_AD7293 is not setCONFIG_AD7303=yCONFIG_AD8801=yCONFIG_CIO_DAC=yCONFIG_DPOT_DAC=yCONFIG_DS4424=yCONFIG_LTC1660=yCONFIG_LTC2632=yCONFIG_M62332=y
# CONFIG_MAX517 is not set
# CONFIG_MAX5821 is not setCONFIG_MCP4725=y
# CONFIG_MCP4922 is not setCONFIG_TI_DAC082S085=yCONFIG_TI_DAC5571=y
# CONFIG_TI_DAC7311 is not setCONFIG_TI_DAC7612=yCONFIG_VF610_DAC=y
# end of Digital to analog converters
#
# IIO dummy driver
#
# end of IIO dummy driver
#
# Filters
#
# end of Filters
#
# Frequency Synthesizers DDS/PLL
#
#
# Clock Generator/Distribution
#CONFIG_AD9523=y
# end of Clock Generator/Distribution
#
# Phase-Locked Loop (PLL) frequency synthesizers
#
# CONFIG_ADF4350 is not set
# CONFIG_ADF4371 is not setCONFIG_ADF4377=y
# CONFIG_ADMV1013 is not set
# CONFIG_ADMV4420 is not setCONFIG_ADRF6780=y
# end of Phase-Locked Loop (PLL) frequency synthesizers # end of Frequency Synthesizers DDS/PLL
#
# Digital gyroscope sensors
#
# CONFIG_ADIS16080 is not set
# CONFIG_ADIS16130 is not setCONFIG_ADIS16136=y
# CONFIG_ADIS16260 is not setCONFIG_ADXRS290=y
# CONFIG_ADXRS450 is not setCONFIG_BMG160=yCONFIG_BMG160_I2C=yCONFIG_BMG160_SPI=y
# CONFIG_FXAS21002C is not set
# CONFIG_HID_SENSOR_GYRO_3D is not set
# CONFIG_MPU3050_I2C is not setCONFIG_IIO_ST_GYRO_3AXIS=y
# CONFIG_IIO_ST_GYRO_I2C_3AXIS is not setCONFIG_IIO_ST_GYRO_SPI_3AXIS=yCONFIG_ITG3200=y
# end of Digital gyroscope sensors
#
# Health Sensors
#
#
# Heart Rate Monitors
#
# CONFIG_AFE4403 is not set
# CONFIG_AFE4404 is not setCONFIG_MAX30100=y
# CONFIG_MAX30102 is not set
# end of Heart Rate Monitors # end of Health Sensors
#
# Humidity sensors
#CONFIG_AM2315=yCONFIG_DHT11=yCONFIG_HDC100X=yCONFIG_HDC2010=y
# CONFIG_HID_SENSOR_HUMIDITY is not set
# CONFIG_HTS221 is not setCONFIG_HTU21=yCONFIG_SI7005=yCONFIG_SI7020=y
# end of Humidity sensors
#
# Inertial measurement units
#CONFIG_ADIS16400=yCONFIG_ADIS16460=yCONFIG_ADIS16475=y
# CONFIG_ADIS16480 is not setCONFIG_BMI160=yCONFIG_BMI160_I2C=y
# CONFIG_BMI160_SPI is not set
# CONFIG_BOSCH_BNO055_I2C is not setCONFIG_FXOS8700=y
# CONFIG_FXOS8700_I2C is not setCONFIG_FXOS8700_SPI=yCONFIG_KMX61=yCONFIG_INV_ICM42600=yCONFIG_INV_ICM42600_I2C=yCONFIG_INV_ICM42600_SPI=yCONFIG_INV_MPU6050_IIO=y
# CONFIG_INV_MPU6050_I2C is not setCONFIG_INV_MPU6050_SPI=y
# CONFIG_IIO_ST_LSM6DSX is not setCONFIG_IIO_ST_LSM9DS0=yCONFIG_IIO_ST_LSM9DS0_I2C=yCONFIG_IIO_ST_LSM9DS0_SPI=y
# end of Inertial measurement units
CONFIG_IIO_ADIS_LIB=yCONFIG_IIO_ADIS_LIB_BUFFER=y
#
# Light sensors
#CONFIG_ACPI_ALS=yCONFIG_ADJD_S311=yCONFIG_ADUX1020=yCONFIG_AL3010=y
# CONFIG_AL3320A is not setCONFIG_APDS9300=yCONFIG_APDS9960=yCONFIG_AS73211=yCONFIG_BH1750=y
# CONFIG_BH1780 is not setCONFIG_CM32181=yCONFIG_CM3232=yCONFIG_CM3323=yCONFIG_CM3605=yCONFIG_CM36651=y
# CONFIG_GP2AP002 is not setCONFIG_GP2AP020A00F=yCONFIG_IQS621_ALS=y
# CONFIG_SENSORS_ISL29018 is not setCONFIG_SENSORS_ISL29028=yCONFIG_ISL29125=y
# CONFIG_HID_SENSOR_ALS is not set
# CONFIG_HID_SENSOR_PROX is not setCONFIG_JSA1212=yCONFIG_RPR0521=y
# CONFIG_SENSORS_LM3533 is not setCONFIG_LTR501=yCONFIG_LTRF216A=yCONFIG_LV0104CS=yCONFIG_MAX44000=yCONFIG_MAX44009=y
# CONFIG_NOA1305 is not setCONFIG_OPT3001=yCONFIG_PA12203001=y
# CONFIG_SI1133 is not setCONFIG_SI1145=yCONFIG_STK3310=y
# CONFIG_ST_UVIS25 is not setCONFIG_TCS3414=yCONFIG_TCS3472=yCONFIG_SENSORS_TSL2563=yCONFIG_TSL2583=yCONFIG_TSL2591=y
# CONFIG_TSL2772 is not setCONFIG_TSL4531=y
# CONFIG_US5182D is not set
# CONFIG_VCNL4000 is not set
# CONFIG_VCNL4035 is not set
# CONFIG_VEML6030 is not setCONFIG_VEML6070=y
# CONFIG_VL6180 is not setCONFIG_ZOPT2201=y
# end of Light sensors
#
# Magnetometer sensors
#CONFIG_AK8974=yCONFIG_AK8975=yCONFIG_AK09911=yCONFIG_BMC150_MAGN=y
# CONFIG_BMC150_MAGN_I2C is not setCONFIG_BMC150_MAGN_SPI=yCONFIG_MAG3110=y
# CONFIG_HID_SENSOR_MAGNETOMETER_3D is not setCONFIG_MMC35240=yCONFIG_IIO_ST_MAGN_3AXIS=yCONFIG_IIO_ST_MAGN_I2C_3AXIS=yCONFIG_IIO_ST_MAGN_SPI_3AXIS=yCONFIG_SENSORS_HMC5843=y
# CONFIG_SENSORS_HMC5843_I2C is not setCONFIG_SENSORS_HMC5843_SPI=y
# CONFIG_SENSORS_RM3100_I2C is not set
# CONFIG_SENSORS_RM3100_SPI is not setCONFIG_YAMAHA_YAS530=y
# end of Magnetometer sensors
#
# Multiplexers
#
# CONFIG_IIO_MUX is not set
# end of Multiplexers
#
# Inclinometer sensors
#
# CONFIG_HID_SENSOR_INCLINOMETER_3D is not set
# CONFIG_HID_SENSOR_DEVICE_ROTATION is not set
# end of Inclinometer sensors
#
# Triggers - standalone
#CONFIG_IIO_INTERRUPT_TRIGGER=yCONFIG_IIO_SYSFS_TRIGGER=y
# end of Triggers - standalone
#
# Linear and angular position sensors
#CONFIG_IQS624_POS=yCONFIG_HID_SENSOR_CUSTOM_INTEL_HINGE=y
# end of Linear and angular position sensors
#
# Digital potentiometers
#
# CONFIG_AD5110 is not set
# CONFIG_AD5272 is not setCONFIG_DS1803=yCONFIG_MAX5432=yCONFIG_MAX5481=yCONFIG_MAX5487=y
# CONFIG_MCP4018 is not set
# CONFIG_MCP4131 is not setCONFIG_MCP4531=yCONFIG_MCP41010=y
# CONFIG_TPL0102 is not set
# end of Digital potentiometers
#
# Digital potentiostats
#CONFIG_LMP91000=y
# end of Digital potentiostats
#
# Pressure sensors
#CONFIG_ABP060MG=y
# CONFIG_BMP280 is not setCONFIG_DLHL60D=yCONFIG_DPS310=yCONFIG_HID_SENSOR_PRESS=y
# CONFIG_HP03 is not setCONFIG_ICP10100=y
# CONFIG_MPL115_I2C is not set
# CONFIG_MPL115_SPI is not setCONFIG_MPL3115=y
# CONFIG_MS5611 is not setCONFIG_MS5637=yCONFIG_IIO_ST_PRESS=yCONFIG_IIO_ST_PRESS_I2C=y
# CONFIG_IIO_ST_PRESS_SPI is not set
# CONFIG_T5403 is not setCONFIG_HP206C=yCONFIG_ZPA2326=yCONFIG_ZPA2326_I2C=yCONFIG_ZPA2326_SPI=y
# end of Pressure sensors
#
# Lightning sensors
#
# CONFIG_AS3935 is not set
# end of Lightning sensors
#
# Proximity and distance sensors
#CONFIG_ISL29501=y
# CONFIG_LIDAR_LITE_V2 is not setCONFIG_MB1232=yCONFIG_PING=yCONFIG_RFD77402=y
# CONFIG_SRF04 is not setCONFIG_SX_COMMON=yCONFIG_SX9310=yCONFIG_SX9324=y
# CONFIG_SX9360 is not set
# CONFIG_SX9500 is not setCONFIG_SRF08=y
# CONFIG_VCNL3020 is not setCONFIG_VL53L0X_I2C=y
# end of Proximity and distance sensors
#
# Resolver to digital converters
#CONFIG_AD2S90=yCONFIG_AD2S1200=y
# end of Resolver to digital converters
#
# Temperature sensors
#CONFIG_IQS620AT_TEMP=yCONFIG_LTC2983=yCONFIG_MAXIM_THERMOCOUPLE=y
# CONFIG_HID_SENSOR_TEMP is not setCONFIG_MLX90614=y
# CONFIG_MLX90632 is not setCONFIG_TMP006=yCONFIG_TMP007=y
# CONFIG_TMP117 is not setCONFIG_TSYS01=yCONFIG_TSYS02D=y
# CONFIG_MAX30208 is not setCONFIG_MAX31856=yCONFIG_MAX31865=y
# end of Temperature sensors
# CONFIG_NTB is not set
# CONFIG_PWM is not set
#
# IRQ chip support
#CONFIG_MADERA_IRQ=y
# end of IRQ chip support
# CONFIG_IPACK_BUS is not setCONFIG_RESET_CONTROLLER=yCONFIG_RESET_SIMPLE=yCONFIG_RESET_TI_SYSCON=yCONFIG_RESET_TI_TPS380X=y
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=y
# CONFIG_USB_LGM_PHY is not setCONFIG_PHY_CAN_TRANSCEIVER=y
#
# PHY drivers for Broadcom platforms
#
# CONFIG_BCM_KONA_USB2_PHY is not set
# end of PHY drivers for Broadcom platforms
CONFIG_PHY_PXA_28NM_HSIC=y
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_CPCAP_USB is not setCONFIG_PHY_INTEL_LGM_EMMC=y
# end of PHY Subsystem
# CONFIG_POWERCAP is not setCONFIG_MCB=yCONFIG_MCB_PCI=yCONFIG_MCB_LPC=y
#
# Performance monitor support
#
# end of Performance monitor support
# CONFIG_RAS is not setCONFIG_USB4=yCONFIG_USB4_DEBUGFS_WRITE=yCONFIG_USB4_DEBUGFS_MARGINING=y
# CONFIG_USB4_DMA_TEST is not set
#
# Android
#
# CONFIG_ANDROID_BINDER_IPC is not set
# end of Android
CONFIG_DAX=yCONFIG_DEV_DAX=yCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=yCONFIG_NVMEM_RMEM=yCONFIG_NVMEM_SPMI_SDAM=y
#
# HW tracing support
#CONFIG_STM=yCONFIG_STM_PROTO_BASIC=yCONFIG_STM_PROTO_SYS_T=y
# CONFIG_STM_DUMMY is not setCONFIG_STM_SOURCE_CONSOLE=yCONFIG_STM_SOURCE_HEARTBEAT=yCONFIG_STM_SOURCE_FTRACE=yCONFIG_INTEL_TH=yCONFIG_INTEL_TH_PCI=yCONFIG_INTEL_TH_ACPI=yCONFIG_INTEL_TH_GTH=yCONFIG_INTEL_TH_STH=yCONFIG_INTEL_TH_MSU=y
# CONFIG_INTEL_TH_PTI is not setCONFIG_INTEL_TH_DEBUG=y
# end of HW tracing support
CONFIG_FPGA=yCONFIG_ALTERA_PR_IP_CORE=y CONFIG_FPGA_MGR_ALTERA_PS_SPI=y CONFIG_FPGA_MGR_ALTERA_CVP=y
# CONFIG_FPGA_MGR_XILINX_SPI is not set
# CONFIG_FPGA_MGR_MACHXO2_SPI is not set
# CONFIG_FPGA_BRIDGE is not set
# CONFIG_FPGA_DFL is not set CONFIG_FPGA_M10_BMC_SEC_UPDATE=y CONFIG_FPGA_MGR_MICROCHIP_SPI=y
# CONFIG_FPGA_MGR_LATTICE_SYSCONFIG_SPI is not set CONFIG_MULTIPLEXER=y
#
# Multiplexer drivers
#CONFIG_MUX_ADG792A=yCONFIG_MUX_ADGS1408=y
# CONFIG_MUX_GPIO is not set
# end of Multiplexer drivers
CONFIG_PM_OPP=yCONFIG_SIOX=y
# CONFIG_SIOX_BUS_GPIO is not setCONFIG_SLIMBUS=yCONFIG_SLIM_QCOM_CTRL=y
# CONFIG_INTERCONNECT is not setCONFIG_COUNTER=yCONFIG_104_QUAD_8=y
# CONFIG_INTERRUPT_CNT is not setCONFIG_INTEL_QEP=y
# CONFIG_MOST is not set
# CONFIG_PECI is not setCONFIG_HTE=y
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set CONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_EXPORTFS_BLOCK_OPS=y CONFIG_FILE_LOCKING=y
# CONFIG_FS_ENCRYPTION is not set
# CONFIG_FS_VERITY is not set CONFIG_FSNOTIFY=y
# CONFIG_DNOTIFY is not set CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not setCONFIG_AUTOFS4_FS=yCONFIG_AUTOFS_FS=yCONFIG_FUSE_FS=yCONFIG_CUSE=yCONFIG_VIRTIO_FS=yCONFIG_OVERLAY_FS=y CONFIG_OVERLAY_FS_REDIRECT_DIR=y
# CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW is not set CONFIG_OVERLAY_FS_INDEX=y CONFIG_OVERLAY_FS_METACOPY=y
#
# Caches
#CONFIG_NETFS_SUPPORT=yCONFIG_NETFS_STATS=yCONFIG_FSCACHE=yCONFIG_FSCACHE_STATS=yCONFIG_FSCACHE_DEBUG=y
# end of Caches
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not setCONFIG_PROC_SYSCTL=y
# CONFIG_PROC_PAGE_MONITOR is not setCONFIG_PROC_CHILDREN=yCONFIG_PROC_PID_ARCH_STATUS=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not setCONFIG_TMPFS_XATTR=y
# CONFIG_HUGETLBFS is not setCONFIG_MEMFD_CREATE=yCONFIG_CONFIGFS_FS=y
# end of Pseudo filesystems
# CONFIG_MISC_FILESYSTEMS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=yCONFIG_NFS_V2=yCONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set CONFIG_NFS_V4=m
# CONFIG_NFS_V4_1 is not set
# CONFIG_ROOT_NFS is not set
# CONFIG_NFS_FSCACHE is not set
# CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFSD is not set CONFIG_GRACE_PERIOD=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=m
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not setCONFIG_CIFS=mCONFIG_CIFS_STATS2=y CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
# CONFIG_CIFS_UPCALL is not set
# CONFIG_CIFS_XATTR is not set CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
# CONFIG_CIFS_DFS_UPCALL is not set
# CONFIG_CIFS_SWN_UPCALL is not set
# CONFIG_CIFS_FSCACHE is not set
# CONFIG_SMB_SERVER is not set CONFIG_SMBFS_COMMON=m
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not setCONFIG_NLS=y CONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_737=y CONFIG_NLS_CODEPAGE_775=y CONFIG_NLS_CODEPAGE_850=y
# CONFIG_NLS_CODEPAGE_852 is not set CONFIG_NLS_CODEPAGE_855=y CONFIG_NLS_CODEPAGE_857=y
# CONFIG_NLS_CODEPAGE_860 is not set CONFIG_NLS_CODEPAGE_861=y CONFIG_NLS_CODEPAGE_862=y CONFIG_NLS_CODEPAGE_863=y
# CONFIG_NLS_CODEPAGE_864 is not set CONFIG_NLS_CODEPAGE_865=y CONFIG_NLS_CODEPAGE_866=y CONFIG_NLS_CODEPAGE_869=y CONFIG_NLS_CODEPAGE_936=y CONFIG_NLS_CODEPAGE_950=y CONFIG_NLS_CODEPAGE_932=y CONFIG_NLS_CODEPAGE_949=y
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set CONFIG_NLS_CODEPAGE_1250=y CONFIG_NLS_CODEPAGE_1251=y CONFIG_NLS_ASCII=y
# CONFIG_NLS_ISO8859_1 is not set CONFIG_NLS_ISO8859_2=y
# CONFIG_NLS_ISO8859_3 is not set CONFIG_NLS_ISO8859_4=y CONFIG_NLS_ISO8859_5=y CONFIG_NLS_ISO8859_6=y CONFIG_NLS_ISO8859_7=y
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set CONFIG_NLS_ISO8859_14=y
# CONFIG_NLS_ISO8859_15 is not set CONFIG_NLS_KOI8_R=yCONFIG_NLS_KOI8_U=yCONFIG_NLS_MAC_ROMAN=y CONFIG_NLS_MAC_CELTIC=y CONFIG_NLS_MAC_CENTEURO=y
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set CONFIG_NLS_MAC_GAELIC=y
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set CONFIG_NLS_MAC_INUIT=y CONFIG_NLS_MAC_ROMANIAN=y
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_DLM is not setCONFIG_UNICODE=y
# CONFIG_UNICODE_NORMALIZATION_SELFTEST is not set CONFIG_IO_WQ=y
# end of File systems
#
# Security options
#CONFIG_KEYS=y
# CONFIG_KEYS_REQUEST_CACHE is not setCONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_TRUSTED_KEYS is not set
# CONFIG_ENCRYPTED_KEYS is not setCONFIG_KEY_DH_OPERATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not setCONFIG_SECURITY=yCONFIG_SECURITYFS=yCONFIG_SECURITY_NETWORK=yCONFIG_SECURITY_PATH=yCONFIG_FORTIFY_SOURCE=y
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_SECURITY_SELINUX is not set
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not setCONFIG_SECURITY_APPARMOR=yCONFIG_SECURITY_APPARMOR_DEBUG=yCONFIG_SECURITY_APPARMOR_DEBUG_ASSERTS=y
# CONFIG_SECURITY_APPARMOR_DEBUG_MESSAGES is not set
# CONFIG_SECURITY_APPARMOR_INTROSPECT_POLICY is not set
# CONFIG_SECURITY_APPARMOR_PARANOID_LOAD is not setCONFIG_SECURITY_YAMA=y
# CONFIG_SECURITY_SAFESETID is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not set
# CONFIG_SECURITY_LANDLOCK is not set
# CONFIG_INTEGRITY is not setCONFIG_DEFAULT_SECURITY_APPARMOR=y
# CONFIG_DEFAULT_SECURITY_DAC is not set CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,integrity,apparmor,selinux,smack,tomoyo,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_INIT_STACK_NONE=yCONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not setCONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization
CONFIG_RANDSTRUCT_NONE=y
# end of Kernel hardening options # end of Security options
CONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_SKCIPHER=yCONFIG_CRYPTO_SKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_RNG_DEFAULT=yCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=yCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_KPP=yCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not setCONFIG_CRYPTO_MANAGER_DISABLE_TESTS=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=yCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=y
# CONFIG_CRYPTO_TEST is not setCONFIG_CRYPTO_SIMD=y
# end of Crypto core or helper
#
# Public-key cryptography
#CONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_DH=y
# CONFIG_CRYPTO_DH_RFC7919_GROUPS is not setCONFIG_CRYPTO_ECC=yCONFIG_CRYPTO_ECDH=yCONFIG_CRYPTO_ECDSA=yCONFIG_CRYPTO_ECRDSA=yCONFIG_CRYPTO_SM2=y
# CONFIG_CRYPTO_CURVE25519 is not set
# end of Public-key cryptography
#
# Block ciphers
#CONFIG_CRYPTO_AES=yCONFIG_CRYPTO_AES_TI=yCONFIG_CRYPTO_ARIA=yCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_BLOWFISH_COMMON=y
# CONFIG_CRYPTO_CAMELLIA is not setCONFIG_CRYPTO_CAST_COMMON=y
# CONFIG_CRYPTO_CAST5 is not setCONFIG_CRYPTO_CAST6=yCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_FCRYPT=yCONFIG_CRYPTO_SERPENT=y
# CONFIG_CRYPTO_SM4_GENERIC is not setCONFIG_CRYPTO_TWOFISH=yCONFIG_CRYPTO_TWOFISH_COMMON=y
# end of Block ciphers
#
# Length-preserving ciphers and modes
#CONFIG_CRYPTO_ADIANTUM=yCONFIG_CRYPTO_CHACHA20=y
# CONFIG_CRYPTO_CBC is not setCONFIG_CRYPTO_CFB=yCONFIG_CRYPTO_CTR=y
# CONFIG_CRYPTO_CTS is not setCONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_HCTR2 is not setCONFIG_CRYPTO_KEYWRAP=y
# CONFIG_CRYPTO_LRW is not setCONFIG_CRYPTO_OFB=y
# CONFIG_CRYPTO_PCBC is not setCONFIG_CRYPTO_XTS=yCONFIG_CRYPTO_NHPOLY1305=y
# end of Length-preserving ciphers and modes
#
# AEAD (authenticated encryption with associated data) ciphers #CONFIG_CRYPTO_AEGIS128=y
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set CONFIG_CRYPTO_CCM=yCONFIG_CRYPTO_GCM=y
# CONFIG_CRYPTO_SEQIV is not set
# CONFIG_CRYPTO_ECHAINIV is not set CONFIG_CRYPTO_ESSIV=y
# end of AEAD (authenticated encryption with associated data) ciphers
#
# Hashes, digests, and MACs
#
# CONFIG_CRYPTO_BLAKE2B is not setCONFIG_CRYPTO_CMAC=yCONFIG_CRYPTO_GHASH=yCONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=y
# CONFIG_CRYPTO_POLY1305 is not setCONFIG_CRYPTO_RMD160=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=yCONFIG_CRYPTO_SHA512=y
# CONFIG_CRYPTO_SHA3 is not setCONFIG_CRYPTO_SM3=yCONFIG_CRYPTO_SM3_GENERIC=yCONFIG_CRYPTO_STREEBOG=yCONFIG_CRYPTO_VMAC=yCONFIG_CRYPTO_WP512=yCONFIG_CRYPTO_XCBC=yCONFIG_CRYPTO_XXHASH=y
# end of Hashes, digests, and MACs
#
# CRCs (cyclic redundancy checks)
#CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32 is not setCONFIG_CRYPTO_CRCT10DIF=yCONFIG_CRYPTO_CRC64_ROCKSOFT=y
# end of CRCs (cyclic redundancy checks)
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=yCONFIG_CRYPTO_842=yCONFIG_CRYPTO_LZ4=yCONFIG_CRYPTO_LZ4HC=yCONFIG_CRYPTO_ZSTD=y
# end of Compression
#
# Random number generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not setCONFIG_CRYPTO_DRBG_MENU=yCONFIG_CRYPTO_DRBG_HMAC=yCONFIG_CRYPTO_DRBG_HASH=yCONFIG_CRYPTO_DRBG_CTR=yCONFIG_CRYPTO_DRBG=yCONFIG_CRYPTO_JITTERENTROPY=yCONFIG_CRYPTO_KDF800108_CTR=y
# end of Random number generation
#
# Userspace interface
#CONFIG_CRYPTO_USER_API=y CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_USER_API_SKCIPHER=y CONFIG_CRYPTO_USER_API_RNG=y
# CONFIG_CRYPTO_USER_API_RNG_CAVP is not set CONFIG_CRYPTO_USER_API_AEAD=y
# CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE is not set
# end of Userspace interface
CONFIG_CRYPTO_HASH_INFO=y
#
# Accelerated Cryptographic Algorithms for CPU (x86) #CONFIG_CRYPTO_AES_NI_INTEL=y
# CONFIG_CRYPTO_SERPENT_SSE2_586 is not set CONFIG_CRYPTO_TWOFISH_586=y
# CONFIG_CRYPTO_CRC32C_INTEL is not set
# CONFIG_CRYPTO_CRC32_PCLMUL is not set
# end of Accelerated Cryptographic Algorithms for CPU (x86)
# CONFIG_CRYPTO_HW is not setCONFIG_ASYMMETRIC_KEY_TYPE=yCONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=yCONFIG_X509_CERTIFICATE_PARSER=yCONFIG_PKCS8_PRIVATE_KEY_PARSER=yCONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not setCONFIG_SIGNED_PE_FILE_VERIFICATION=y
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set
#
# Certificates for signature checking
#CONFIG_SYSTEM_TRUSTED_KEYRING=yCONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not setCONFIG_SECONDARY_TRUSTED_KEYRING=y
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
# end of Certificates for signature checking
CONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_LINEAR_RANGES=yCONFIG_PACKING=yCONFIG_BITREVERSE=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=yCONFIG_GENERIC_NET_UTILS=yCONFIG_CORDIC=yCONFIG_PRIME_NUMBERS=yCONFIG_RATIONAL=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_ARCH_USE_SYM_ANNOTATIONS=y
#
# Crypto library routines
#CONFIG_CRYPTO_LIB_UTILS=yCONFIG_CRYPTO_LIB_AES=yCONFIG_CRYPTO_LIB_ARC4=yCONFIG_CRYPTO_LIB_GF128MUL=yCONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=yCONFIG_CRYPTO_LIB_CHACHA_GENERIC=yCONFIG_CRYPTO_LIB_CHACHA=yCONFIG_CRYPTO_LIB_CURVE25519_GENERIC=yCONFIG_CRYPTO_LIB_CURVE25519=yCONFIG_CRYPTO_LIB_DES=yCONFIG_CRYPTO_LIB_POLY1305_RSIZE=1CONFIG_CRYPTO_LIB_POLY1305_GENERIC=yCONFIG_CRYPTO_LIB_POLY1305=y
# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not setCONFIG_CRYPTO_LIB_SHA1=yCONFIG_CRYPTO_LIB_SHA256=y
# end of Crypto library routines
CONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC64_ROCKSOFT=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not setCONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not setCONFIG_CRC64=y
# CONFIG_CRC4 is not setCONFIG_CRC7=yCONFIG_LIBCRC32C=yCONFIG_CRC8=yCONFIG_XXHASH=yCONFIG_AUDIT_GENERIC=y
# CONFIG_RANDOM32_SELFTEST is not setCONFIG_842_COMPRESS=yCONFIG_842_DECOMPRESS=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_LZ4_COMPRESS=yCONFIG_LZ4HC_COMPRESS=yCONFIG_LZ4_DECOMPRESS=yCONFIG_ZSTD_COMMON=yCONFIG_ZSTD_COMPRESS=yCONFIG_ZSTD_DECOMPRESS=yCONFIG_XZ_DEC=y
# CONFIG_XZ_DEC_X86 is not set
# CONFIG_XZ_DEC_POWERPC is not set
# CONFIG_XZ_DEC_IA64 is not setCONFIG_XZ_DEC_ARM=y
# CONFIG_XZ_DEC_ARMTHUMB is not set
# CONFIG_XZ_DEC_SPARC is not setCONFIG_XZ_DEC_MICROLZMA=yCONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not setCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_LZMA=yCONFIG_DECOMPRESS_LZO=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_INTERVAL_TREE=yCONFIG_INTERVAL_TREE_SPAN_ITER=yCONFIG_XARRAY_MULTI=yCONFIG_ASSOCIATIVE_ARRAY=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_DMA_OPS=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_SWIOTLB=yCONFIG_DMA_CMA=yCONFIG_DMA_PERNUMA_CMA=y
#
# Default contiguous memory area size:
#CONFIG_CMA_SIZE_MBYTES=0CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not setCONFIG_CMA_SIZE_SEL_MAX=yCONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not setCONFIG_DMA_MAP_BENCHMARK=yCONFIG_SGL_ALLOC=yCONFIG_CHECK_SIGNATURE=yCONFIG_DQL=yCONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not setCONFIG_NLATTR=yCONFIG_CLZ_TAB=y
# CONFIG_IRQ_POLL is not setCONFIG_MPILIB=yCONFIG_OID_REGISTRY=yCONFIG_HAVE_GENERIC_VDSO=yCONFIG_GENERIC_GETTIMEOFDAY=yCONFIG_GENERIC_VDSO_32=yCONFIG_GENERIC_VDSO_TIME_NS=yCONFIG_ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION=yCONFIG_ARCH_STACKWALK=yCONFIG_STACKDEPOT=yCONFIG_REF_TRACKER=y
# end of Library routines
#
# Kernel hacking
#
#
# printk and dmesg options # CONFIG_PRINTK_TIME=y CONFIG_PRINTK_CALLER=y # CONFIG_STACKTRACE_BUILD_ID is not set CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_BOOT_PRINTK_DELAY is not set # CONFIG_DYNAMIC_DEBUG is not set # CONFIG_DYNAMIC_DEBUG_CORE is not set CONFIG_SYMBOLIC_ERRNAME=y CONFIG_DEBUG_BUGVERBOSE=y # end of printk and dmesg options
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_MISC=y
#
# Compile-time checks and compiler options
#CONFIG_DEBUG_INFO=yCONFIG_AS_HAS_NON_CONST_LEB128=y
# CONFIG_DEBUG_INFO_NONE is not setCONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_DWARF5 is not setCONFIG_DEBUG_INFO_REDUCED=yCONFIG_DEBUG_INFO_COMPRESSED_NONE=y
# CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
# CONFIG_DEBUG_INFO_SPLIT is not setCONFIG_PAHOLE_HAS_SPLIT_BTF=y
# CONFIG_GDB_SCRIPTS is not setCONFIG_FRAME_WARN=8192
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not setCONFIG_HEADERS_INSTALL=yCONFIG_DEBUG_SECTION_MISMATCH=yCONFIG_SECTION_MISMATCH_WARN_ONLY=yCONFIG_FRAME_POINTER=y
# CONFIG_VMLINUX_MAP is not setCONFIG_DEBUG_FORCE_WEAK_PER_CPU=y
# end of Compile-time checks and compiler options
#
# Generic Kernel Debugging Instruments
#CONFIG_MAGIC_SYSRQ=yCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1CONFIG_MAGIC_SYSRQ_SERIAL=yCONFIG_MAGIC_SYSRQ_SERIAL_SEQUENCE=""CONFIG_DEBUG_FS=y
# CONFIG_DEBUG_FS_ALLOW_ALL is not set
# CONFIG_DEBUG_FS_DISALLOW_MOUNT is not setCONFIG_DEBUG_FS_ALLOW_NONE=yCONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not setCONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=yCONFIG_UBSAN=y
# CONFIG_UBSAN_TRAP is not setCONFIG_CC_HAS_UBSAN_BOUNDS=yCONFIG_UBSAN_BOUNDS=yCONFIG_UBSAN_ONLY_BOUNDS=yCONFIG_UBSAN_SHIFT=y
# CONFIG_UBSAN_DIV_ZERO is not setCONFIG_UBSAN_UNREACHABLE=y
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
# CONFIG_UBSAN_ALIGNMENT is not setCONFIG_UBSAN_SANITIZE_ALL=y
# CONFIG_TEST_UBSAN is not setCONFIG_HAVE_KCSAN_COMPILER=y
# end of Generic Kernel Debugging Instruments
#
# Networking Debugging
#
# CONFIG_NET_DEV_REFCNT_TRACKER is not setCONFIG_NET_NS_REFCNT_TRACKER=y
# CONFIG_DEBUG_NET is not set
# end of Networking Debugging
#
# Memory Debugging
#CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not setCONFIG_PAGE_OWNER=y
# CONFIG_PAGE_POISONING is not setCONFIG_DEBUG_PAGE_REF=y
# CONFIG_DEBUG_RODATA_TEST is not setCONFIG_ARCH_HAS_DEBUG_WX=yCONFIG_DEBUG_WX=yCONFIG_GENERIC_PTDUMP=yCONFIG_PTDUMP_CORE=y
# CONFIG_PTDUMP_DEBUGFS is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SHRINKER_DEBUG is not setCONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not setCONFIG_DEBUG_STACK_USAGE=y
# CONFIG_SCHED_STACK_END_CHECK is not setCONFIG_DEBUG_VM_IRQSOFF=yCONFIG_DEBUG_VM=yCONFIG_DEBUG_VM_MAPLE_TREE=yCONFIG_DEBUG_VM_RB=yCONFIG_DEBUG_VM_PGFLAGS=yCONFIG_ARCH_HAS_DEBUG_VIRTUAL=yCONFIG_DEBUG_VIRTUAL=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_DEBUG_KMAP_LOCAL=yCONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=yCONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=yCONFIG_DEBUG_HIGHMEM=yCONFIG_HAVE_DEBUG_STACKOVERFLOW=yCONFIG_DEBUG_STACKOVERFLOW=yCONFIG_CC_HAS_KASAN_GENERIC=yCONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=yCONFIG_HAVE_ARCH_KFENCE=y
# end of Memory Debugging
CONFIG_DEBUG_SHIRQ=y
#
# Debug Oops, Lockups and Hangs
#CONFIG_PANIC_ON_OOPS=yCONFIG_PANIC_ON_OOPS_VALUE=1CONFIG_PANIC_TIMEOUT=0CONFIG_LOCKUP_DETECTOR=yCONFIG_SOFTLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not setCONFIG_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not setCONFIG_DETECT_HUNG_TASK=yCONFIG_DEFAULT_HUNG_TASK_TIMEOUT=480CONFIG_BOOTPARAM_HUNG_TASK_PANIC=yCONFIG_WQ_WATCHDOG=y
# CONFIG_TEST_LOCKUP is not set
# end of Debug Oops, Lockups and Hangs
#
# Scheduler Debugging
#CONFIG_SCHED_DEBUG=yCONFIG_SCHED_INFO=yCONFIG_SCHEDSTATS=y
# end of Scheduler Debugging
CONFIG_DEBUG_TIMEKEEPING=y
178 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
In reply to Kui-Feng LeeQuoted 4 lines · Kui-Feng Lee
BPF
struct_opsmaps are employed directly to register TCP Congestion Control algorithms. Unlike other BPF programs that terminate when their links gone, thestruct_opsprogram reduces its refcount solely upon death of its FD.
I think the refcount comment probably not needed for this patch.
include/uapi/linux/bpf.h
Quoted 10 lines
The link of a BPF
struct_opsmap provides a
uniform experience akin to other types of BPF programs. A TCP Congestion Control algorithm will be unregistered upon destroying the FD in the following patches.include/uapi/linux/bpf.h +0
-0
The existing BPF_LINK_TYPE_STRUCT_OPS enum is reused. Please explain why it can be reused in the commit message and also add comments around the existing "bpf_link_init(&link->link, BPF_LINK_TYPE_STRUCT_OPS...)" in bpf_struct_ops_map_update_elem().
include/uapi/linux/bpf.h enum bpf_attach_type { · line 1036
Quoted 5 lines
include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type {BPF_PERF_EVENT ,BPF_TRACE_KPROBE_MULTI ,BPF_LSM_CGROUP , + BPF_STRUCT_OPS_MAP,
nit. Only BPF_STRUCT_OPS. No need for "_MAP".
include/uapi/linux/bpf.h struct bpf_link_info { · line 6360
Quoted 10 lines
include/uapi/linux/bpf.h +3
-0__MAX_BPF_ATTACH_TYPE };@@ -6354,6 +6355,9 @@ struct bpf_link_info {struct {__u32 ifindex; } xdp; +struct { +__u32 map_id; + } struct_ops_map;
nit. Same here, skip the "_map";
This looks good instead of union. In case the user space tool directly uses the prog_id without checking the type.
Quoted 35 lines
include/uapi/linux/bpf.h +0
-0}; } __attribute__((aligned(8)));kernel/bpf/bpf_struct_ops.c +24
-0@@ -698,3 +698,69 @@ void bpf_struct_ops_put(const void *kdata)call_rcu (&st_map->rcu, bpf_struct_ops_put_rcu); } } + +static void bpf_struct_ops_map_link_release (struct bpf_link *link) +{ +if (link->map) { +bpf_map_put (link->map); + link->map =NULL ; + } +} + +static void bpf_struct_ops_map_link_dealloc (struct bpf_link *link) +{ +kfree (link); +} + +static void bpf_struct_ops_map_link_show_fdinfo (const struct bpf_link *link, +struct seq_file *seq) +{ +seq_printf (seq,"map_id:\t%d\n" , + link->map->id); +} + +static int bpf_struct_ops_map_link_fill_link_info (const struct bpf_link *link, +struct bpf_link_info *info) +{
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 734
Quoted 10 lines
kernel/bpf/bpf_struct_ops.c +10
-0+ info->struct_ops_map.map_id = link->map->id; +return 0 ; +} + +static const struct bpf_link_ops bpf_struct_ops_map_lops = { + .release = bpf_struct_ops_map_link_release, + .dealloc = bpf_struct_ops_map_link_dealloc, + .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, + .fill_link_info = bpf_struct_ops_map_link_fill_link_info, +};
Can .detach be supported also?
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 736
Quoted 2 lines
kernel/bpf/bpf_struct_ops.c +2
-0+ +int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr)
Does it need uattr?
nit. Rename to bpf_struct_ops_link_attach(), like how other link type's "attach" functions are named. or may be even just bpf_struct_ops_attach().
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 743
Quoted 7 lines
kernel/bpf/bpf_struct_ops.c +7
-0+{ +struct bpf_link_primer link_primer; +struct bpf_map *map; +struct bpf_link *link =NULL ; +int err; + + map =bpf_map_get (attr->link_create.prog_fd);
This one looks weird. passing prog_fd to bpf_map_get(). I think in this case it makes sense to union map_fd with prog_fd in attr->link_create ?
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 744
Quoted 1 line
kernel/bpf/bpf_struct_ops.c +1
-0+if (map->map_type !=BPF_MAP_TYPE_STRUCT_OPS )
map is leaked.
Quoted 22 lines
kernel/bpf/bpf_struct_ops.c +22
-0+return -EINVAL ; + + link =kzalloc (sizeof (*link),GFP_USER ); +if (!link) { + err = -ENOMEM ; + goto err_out; + } +bpf_link_init (link,BPF_LINK_TYPE_STRUCT_OPS , &bpf_struct_ops_map_lops,NULL ); + link->map = map; + + err =bpf_link_prime (link, &link_primer); +if (err) + goto err_out; + +return bpf_link_settle (&link_primer); + +err_out: +bpf_map_put (map); +kfree (link); +return err; +} +
[ ... ]
Quoted 1 line
+extern int
link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr);
Move it to bpf.h.
tools/lib/bpf/bpf.c
Quoted 40 lines
kernel/bpf/bpf_struct_ops.c +4
-0+#define BPF_LINK_CREATE_LAST_FIELD link_create.kprobe_multi.cookiesstatic int link_create (union bpf_attr *attr,bpfptr_t uattr) {@@ -4541,6 +4549,9 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr)if (CHECK_ATTR (BPF_LINK_CREATE ))return -EINVAL ; +if (attr->link_create.attach_type ==BPF_STRUCT_OPS_MAP ) +return link_create_struct_ops_map (attr, uattr); + prog =bpf_prog_get (attr->link_create.prog_fd);if (IS_ERR (prog))return PTR_ERR (prog);tools/include/uapi/linux/bpf.h +4
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type {BPF_PERF_EVENT ,BPF_TRACE_KPROBE_MULTI ,BPF_LSM_CGROUP , +BPF_STRUCT_OPS_MAP , __MAX_BPF_ATTACH_TYPE };@@ -6354,6 +6355,9 @@ struct bpf_link_info {struct {__u32 ifindex; } xdp; +struct { +__u32 map_id; + } struct_ops_map; }; } __attribute__((aligned(8)));tools/lib/bpf/bpf.c +0
-0
Not necessary in this set and could be a follow up. Have you thought about how to generate a skel including the struct_ops link?
Quoted 21 lines
tools/lib/bpf/bpf.c +2
-0@@ -731,6 +731,8 @@ int bpf_link_create(int prog_fd, int target_fd,if (!OPTS_ZEROED (opts, tracing))return libbpf_err (-EINVAL );break ; +case BPF_STRUCT_OPS_MAP : +break ;default :if (!OPTS_ZEROED (opts, flags))return libbpf_err (-EINVAL );tools/lib/bpf/libbpf.c +1
-0@@ -115,6 +115,7 @@ static const char * const attach_type_name[] = { [BPF_SK_REUSEPORT_SELECT_OR_MIGRATE] = "sk_reuseport_select_or_migrate", [BPF_PERF_EVENT] = "perf_event", [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", + [BPF_STRUCT_OPS_MAP] = "struct_ops_map", };static const char *const link_type_name[] = {
Re: [PATCH bpf-next 1/7] bpf: Create links for BPF struct_ops maps.
Quoted 7 lines · Martin KaFai Lau
Quoted 4 lines · Kui-Feng Lee
BPF
struct_opsmaps are employed directly to register TCP Congestion Control algorithms. Unlike other BPF programs that terminate when their links gone, thestruct_opsprogram reduces its refcount solely upon death of its FD.I think the refcount comment probably not needed for this patch.
Got it!
Quoted 7 lines
Quoted 5 lines
The link of a BPF
struct_opsmap provides a
uniform experience akin to other types of BPF programs. A TCP Congestion Control algorithm will be unregistered upon destroying the FD in the following patches.
Quoted 6 lines
include/uapi/linux/bpf.h
Quoted 4 lines
include/uapi/linux/bpf.h +0
-0The existing
BPF_LINK_TYPE_STRUCT_OPSenum is reused. Please explain why it can be reused in the commit message and also add comments around the existing "bpf_link_init(&link->link, BPF_LINK_TYPE_STRUCT_OPS...)" inbpf_struct_ops_map_update_elem().
Sure!
Quoted 9 lines
include/uapi/linux/bpf.h enum bpf_attach_type { · line 1036
Quoted 6 lines
include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type { BPF_PERF_EVENT, BPF_TRACE_KPROBE_MULTI, BPF_LSM_CGROUP, + BPF_STRUCT_OPS_MAP,nit. Only
BPF_STRUCT_OPS. No need for "_MAP".
Quoted 11 lines
include/uapi/linux/bpf.h struct bpf_link_info { · line 6360
Quoted 9 lines
__MAX_BPF_ATTACH_TYPE
};include/uapi/linux/bpf.h +3
-0@@ -6354,6 +6355,9 @@ struct bpf_link_info { struct { __u32 ifindex; } xdp; + struct { + __u32 map_id; + } struct_ops_map;nit. Same here, skip the "
_map";
Got!
Quoted 43 lines
This looks good instead of union. In case the user space tool directly uses the
prog_idwithout checking the type.Quoted 40 lines
include/uapi/linux/bpf.h +0
-0}; } __attribute__((aligned(8)));kernel/bpf/bpf_struct_ops.c +15
-0@@ -698,3 +698,69 @@ void bpf_struct_ops_put(const void *kdata) call_rcu(&st_map->rcu, bpf_struct_ops_put_rcu); } } + +static void bpf_struct_ops_map_link_release (struct bpf_link *link) +{ + if (link->map) { + bpf_map_put(link->map); + link->map = NULL; + } +} + +static void bpf_struct_ops_map_link_dealloc (struct bpf_link *link) +{ + kfree(link); +} + +static void bpf_struct_ops_map_link_show_fdinfo(const struct bpf_link*link,
+ structseq_file*seq)kernel/bpf/bpf_struct_ops.c +6
-0+{ + seq_printf(seq, "map_id:\t%d\n", + link->map->id); +} + +static int bpf_struct_ops_map_link_fill_link_info(const struct
bpf_link*link,
+ structbpf_link_info*info)kernel/bpf/bpf_struct_ops.c +5
-0+{ + info->struct_ops_map.map_id = link->map->id; + return 0; +} +
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 734
Quoted 6 lines
kernel/bpf/bpf_struct_ops.c +6
-0+static const struct bpf_link_ops bpf_struct_ops_map_lops = { + .release = bpf_struct_ops_map_link_release, + .dealloc = bpf_struct_ops_map_link_dealloc, + .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, + .fill_link_info = bpf_struct_ops_map_link_fill_link_info, +};Can .detach be supported also?
Sure!
Quoted 7 lines
kernel/bpf/bpf_struct_ops.c
Quoted 3 lines
kernel/bpf/bpf_struct_ops.c +2
-0+ +int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr)Does it need uattr?
nit. Rename to
bpf_struct_ops_link_attach(), like how other link type's "attach" functions are named. or may be even justbpf_struct_ops_attach().
Got it!
Quoted 11 lines
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 743
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c +7
-0+{ + struct bpf_link_primer link_primer; + struct bpf_map *map; + struct bpf_link *link = NULL; + int err; + + map = bpf_map_get(attr->link_create.prog_fd);This one looks weird. passing
prog_fdtobpf_map_get(). I think in this case it makes sense to unionmap_fdwithprog_fdinattr->link_create?
Quoted 3 lines
Quoted 1 line
+ if (
map->map_type!=BPF_MAP_TYPE_STRUCT_OPS)map is leaked.
Yes, I will fix it.
Quoted 64 lines
Quoted 24 lines
+ return
-EINVAL;
+
+ link =kzalloc(sizeof(*link), GFP_USER); + if (!link) {
+ err =-ENOMEM;
+ gotoerr_out;
+ }
+bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL);
+link->map= map;kernel/bpf/bpf_struct_ops.c +13
-0+ + err = bpf_link_prime(link, &link_primer); + if (err) + goto err_out; + + return bpf_link_settle(&link_primer); + +err_out: + bpf_map_put(map); + kfree(link); + return err; +} +[ ... ]
Quoted 2 lines
+extern int
link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr);Move it to
bpf.h.Quoted 32 lines
+
#defineBPF_LINK_CREATE_LAST_FIELDlink_create.kprobe_multi.cookies static intlink_create(union bpf_attr *attr, bpfptr_t uattr){kernel/bpf/bpf_struct_ops.c +3
-0@@ -4541,6 +4549,9 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr) if (CHECK_ATTR(BPF_LINK_CREATE)) return -EINVAL; + if (attr->link_create.attach_type == BPF_STRUCT_OPS_MAP) + return link_create_struct_ops_map(attr, uattr); + prog = bpf_prog_get(attr->link_create.prog_fd); if (IS_ERR(prog)) return PTR_ERR(prog);tools/include/uapi/linux/bpf.h +1
-0@@ -1033,6 +1033,7 @@ enum bpf_attach_type { BPF_PERF_EVENT, BPF_TRACE_KPROBE_MULTI, BPF_LSM_CGROUP, + BPF_STRUCT_OPS_MAP,
__MAX_BPF_ATTACH_TYPE
};tools/include/uapi/linux/bpf.h +3
-0@@ -6354,6 +6355,9 @@ struct bpf_link_info { struct { __u32 ifindex; } xdp; + struct { + __u32 map_id; + } struct_ops_map;
Quoted 8 lines
tools/lib/bpf/bpf.c
Quoted 6 lines
tools/include/uapi/linux/bpf.h +0
-0}; } __attribute__((aligned(8)));tools/lib/bpf/bpf.c +0
-0Not necessary in this set and could be a follow up. Have you thought about how to generate a skel including the
struct_opslink?
The user must now call bpf_map__set_map_flags() between XXXX__open() and XXX__load(). To simplify the process, skel should invoke bpf_map__set_map_flags() in the function of XXX__open_and _load(). Therefore, a method to indicate which struct_ops need a link is necessary. For instance,
SEC(".struct_ops")
struct tcp_congestion_ops xxx_map = {
...
.flags = BPF_F_LINK,
...
};
We probably can do it without any change to the code generator.
Quoted 22 lines
Quoted 21 lines
tools/lib/bpf/bpf.c +2
-0@@ -731,6 +731,8 @@ int bpf_link_create(int prog_fd, int target_fd, if (!OPTS_ZEROED(opts, tracing)) return libbpf_err(-EINVAL); break; + case BPF_STRUCT_OPS_MAP: + break;default:
if (!OPTS_ZEROED(opts, flags))
returnlibbpf_err(-EINVAL);tools/lib/bpf/libbpf.c +1
-0@@ -115,6 +115,7 @@ static const char * const attach_type_name[] = { [BPF_SK_REUSEPORT_SELECT_OR_MIGRATE] = "sk_reuseport_select_or_migrate", [BPF_PERF_EVENT] = "perf_event", [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", + [BPF_STRUCT_OPS_MAP] = "struct_ops_map", }; static const char * const link_type_name[] = {
PATCH 2/7 net: Update an existing TCP congestion control algorithm.
In reply to Kui-Feng LeeThis feature lets you immediately transition to another congestion control algorithm or implementation with the same name. Once a name is updated, new connections will apply this new algorithm.
--- include/linux/bpf.h | 1 + include/net/tcp.h | 2 ++ net/bpf/bpf_dummy_struct_ops.c | 6 ++++++ net/ipv4/bpf_tcp_ca.c | 6 ++++++ net/ipv4/tcp_cong.c | 39 ++++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+)
include/linux/bpf.h +1 -0
@@ -1450,6 +1450,7 @@ struct bpf_struct_ops { void *kdata, const void *udata);int (*reg)(void *kdata);void (*unreg)(void *kdata); +int (*update)(void *kdata,void *old_kdata);const struct btf_type *type;const struct btf_type *value_type;const char *name;
include/net/tcp.h +2 -0
@@ -1117,6 +1117,8 @@ struct tcp_congestion_ops {int tcp_register_congestion_control (struct tcp_congestion_ops *type);void tcp_unregister_congestion_control (struct tcp_congestion_ops *type); +int tcp_update_congestion_control (struct tcp_congestion_ops *type, +struct tcp_congestion_ops *old_type);void tcp_assign_congestion_control (struct sock *sk);void tcp_init_congestion_control (struct sock *sk);
net/bpf/bpf_dummy_struct_ops.c +6 -0
@@ -222,12 +222,18 @@ static void bpf_dummy_unreg(void *kdata) { } +static int bpf_dummy_update (void *kdata,void *old_kdata) +{ +return -EOPNOTSUPP ; +} +struct bpf_struct_ops bpf_bpf_dummy_ops = { .verifier_ops = &bpf_dummy_verifier_ops, .init = bpf_dummy_init, .check_member = bpf_dummy_ops_check_member, .init_member = bpf_dummy_init_member, .reg = bpf_dummy_reg, + .update = bpf_dummy_update, .unreg = bpf_dummy_unreg, .name ="bpf_dummy_ops" , };
net/ipv4/bpf_tcp_ca.c +6 -0
@@ -266,10 +266,16 @@ static void bpf_tcp_ca_unreg(void *kdata)tcp_unregister_congestion_control (kdata); } +static int bpf_tcp_ca_update (void *kdata,void *old_kdata) +{ +return tcp_update_congestion_control (kdata, old_kdata); +} +struct bpf_struct_ops bpf_tcp_congestion_ops = { .verifier_ops = &bpf_tcp_ca_verifier_ops, .reg = bpf_tcp_ca_reg, .unreg = bpf_tcp_ca_unreg, + .update = bpf_tcp_ca_update, .check_member = bpf_tcp_ca_check_member, .init_member = bpf_tcp_ca_init_member, .init = bpf_tcp_ca_init,
net/ipv4/tcp_cong.c +39 -0
@@ -130,6 +130,45 @@ void tcp_unregister_congestion_control(struct tcp_congestion_ops *ca) }EXPORT_SYMBOL_GPL (tcp_unregister_congestion_control); +/* Replace a registered old ca with a new one. +* +* The new ca must have the same name as the old one, that has been +* registered. +*/ +int tcp_update_congestion_control (struct tcp_congestion_ops *ca,struct tcp_congestion_ops *old_ca) +{ +struct tcp_congestion_ops *existing; +int ret =0 ; + +/* all algorithms must implement these */ +if (!ca->ssthresh || !ca->undo_cwnd || + !(ca->cong_avoid || ca->cong_control)) { +pr_err ("%s does not implement required ops\n" , old_ca->name); +return -EINVAL ; + } + + ca->key =jhash (ca->name,sizeof (ca->name),strlen (ca->name)); + +spin_lock (&tcp_cong_list_lock); + existing =tcp_ca_find_key (ca->key); +if (ca->key ==TCP_CA_UNSPEC || !existing ||strcmp (existing->name, ca->name)) { +pr_notice ("%s not registered or non-unique key\n" , + ca->name); + ret = -EINVAL ; + }else if (existing != old_ca) { +pr_notice ("invalid old congestion control algorithm to replace\n" ); + ret = -EINVAL ; + }else { +list_del_rcu (&existing->list); +list_add_tail_rcu (&ca->list, &tcp_cong_list); +pr_debug ("%s updated\n" , ca->name); + } +spin_unlock (&tcp_cong_list_lock); + +return ret; +} +EXPORT_SYMBOL_GPL (tcp_update_congestion_control); +u32 tcp_ca_get_key_by_name (struct net *net,const char *name,bool *ecn_ca) {const struct tcp_congestion_ops *ca;
Signature · 1 line
2.30.2
Re: [PATCH bpf-next 2/7] net: Update an existing TCP congestion control algorithm.
Quoted 102 lines · Kui-Feng Lee
This feature lets you immediately transition to another congestion control algorithm or implementation with the same name. Once a name is updated, new connections will apply this new algorithm.
Signed-off-by Kui-Feng Lee <[email protected]>--- include/linux/bpf.h | 1 + include/net/tcp.h | 2 ++ net/bpf/bpf_dummy_struct_ops.c | 6 ++++++ net/ipv4/bpf_tcp_ca.c | 6 ++++++ net/ipv4/tcp_cong.c | 39 ++++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+)include/linux/bpf.h +1
-0@@ -1450,6 +1450,7 @@ struct bpf_struct_ops { void *kdata, const void *udata);int (*reg)(void *kdata);void (*unreg)(void *kdata); +int (*update)(void *kdata,void *old_kdata);const struct btf_type *type;const struct btf_type *value_type;const char *name;include/net/tcp.h +2
-0@@ -1117,6 +1117,8 @@ struct tcp_congestion_ops {int tcp_register_congestion_control (struct tcp_congestion_ops *type);void tcp_unregister_congestion_control (struct tcp_congestion_ops *type); +int tcp_update_congestion_control (struct tcp_congestion_ops *type, +struct tcp_congestion_ops *old_type);void tcp_assign_congestion_control (struct sock *sk);void tcp_init_congestion_control (struct sock *sk);net/bpf/bpf_dummy_struct_ops.c +6
-0@@ -222,12 +222,18 @@ static void bpf_dummy_unreg(void *kdata) { } +static int bpf_dummy_update (void *kdata,void *old_kdata) +{ +return -EOPNOTSUPP ; +} +struct bpf_struct_ops bpf_bpf_dummy_ops = { .verifier_ops = &bpf_dummy_verifier_ops, .init = bpf_dummy_init, .check_member = bpf_dummy_ops_check_member, .init_member = bpf_dummy_init_member, .reg = bpf_dummy_reg, + .update = bpf_dummy_update, .unreg = bpf_dummy_unreg, .name ="bpf_dummy_ops" , };net/ipv4/bpf_tcp_ca.c +6
-0@@ -266,10 +266,16 @@ static void bpf_tcp_ca_unreg(void *kdata)tcp_unregister_congestion_control (kdata); } +static int bpf_tcp_ca_update (void *kdata,void *old_kdata) +{ +return tcp_update_congestion_control (kdata, old_kdata); +} +struct bpf_struct_ops bpf_tcp_congestion_ops = { .verifier_ops = &bpf_tcp_ca_verifier_ops, .reg = bpf_tcp_ca_reg, .unreg = bpf_tcp_ca_unreg, + .update = bpf_tcp_ca_update, .check_member = bpf_tcp_ca_check_member, .init_member = bpf_tcp_ca_init_member, .init = bpf_tcp_ca_init,net/ipv4/tcp_cong.c +10
-0@@ -130,6 +130,45 @@ void tcp_unregister_congestion_control(struct tcp_congestion_ops *ca) }EXPORT_SYMBOL_GPL (tcp_unregister_congestion_control); +/* Replace a registered old ca with a new one. +* +* The new ca must have the same name as the old one, that has been +* registered. +*/ +int tcp_update_congestion_control (struct tcp_congestion_ops *ca,struct tcp_congestion_ops *old_ca) +{ +struct tcp_congestion_ops *existing; +int ret =0 ; +
[..]
net/ipv4/tcp_cong.c void tcp_unregister_congestion_control(struct tcp_congestion_ops *ca) · line 150
Quoted 8 lines
net/ipv4/tcp_cong.c +8
-0+/* all algorithms must implement these */ +if (!ca->ssthresh || !ca->undo_cwnd || + !(ca->cong_avoid || ca->cong_control)) { +pr_err ("%s does not implement required ops\n" , old_ca->name); +return -EINVAL ; + } + + ca->key =jhash (ca->name,sizeof (ca->name),strlen (ca->name));
Can we have this as some common _validate method to avoid copy-paste from tcp_register_congestion_control.
Or, even better, can we can since function handle both cases?
tcp_register_congestion_control(ca, old_ca);
- when old_ca == NULL -> register
- when old_ca != NULL -> try to update
Quoted 28 lines
net/ipv4/tcp_cong.c +4
-0+ +spin_lock (&tcp_cong_list_lock); + existing =tcp_ca_find_key (ca->key); + if (ca->key == TCP_CA_UNSPEC || !existing || strcmp(existing->name,
ca->name)) {net/ipv4/tcp_cong.c +17
-0+pr_notice ("%s not registered or non-unique key\n" , + ca->name); + ret = -EINVAL ; + }else if (existing != old_ca) { +pr_notice ("invalid old congestion control algorithm to replace\n" ); + ret = -EINVAL ; + }else { +list_del_rcu (&existing->list); +list_add_tail_rcu (&ca->list, &tcp_cong_list); +pr_debug ("%s updated\n" , ca->name); + } +spin_unlock (&tcp_cong_list_lock); + +return ret; +} +EXPORT_SYMBOL_GPL (tcp_update_congestion_control); + u32 tcp_ca_get_key_by_name(struct net *net, const char *name, bool
*ecn_ca)
{
const structtcp_congestion_ops*ca;
--
2.30.2
Re: [PATCH bpf-next 2/7] net: Update an existing TCP congestion control algorithm.
Quoted 115 lines · Stanislav Fomichev
Quoted 102 lines · Kui-Feng Lee
This feature lets you immediately transition to another congestion control algorithm or implementation with the same name. Once a name is updated, new connections will apply this new algorithm.
Signed-off-by Kui-Feng Lee <[email protected]>---
include/linux/bpf.h | 1 +
include/net/tcp.h | 2 ++net/bpf/bpf_dummy_struct_ops.c| 6 ++++++ net/ipv4/bpf_tcp_ca.c | 6 ++++++ net/ipv4/tcp_cong.c | 39 ++++++++++++++++++++++++++++++++++5 files changed, 54 insertions(+)include/linux/bpf.h +1
-0@@ -1450,6 +1450,7 @@ struct bpf_struct_ops { void *kdata, const void *udata); int (*reg)(void *kdata); void (*unreg)(void *kdata); + int (*update)(void *kdata, void *old_kdata); const struct btf_type *type; const struct btf_type *value_type; const char *name;include/net/tcp.h +2
-0@@ -1117,6 +1117,8 @@ struct tcp_congestion_ops { int tcp_register_congestion_control(struct tcp_congestion_ops *type); void tcp_unregister_congestion_control(struct tcp_congestion_ops *type); +int tcp_update_congestion_control (struct tcp_congestion_ops *type, + struct tcp_congestion_ops *old_type); void tcp_assign_congestion_control(struct sock *sk); void tcp_init_congestion_control(struct sock *sk);net/bpf/bpf_dummy_struct_ops.c +6
-0@@ -222,12 +222,18 @@ static void bpf_dummy_unreg(void *kdata) { } +static int bpf_dummy_update (void *kdata,void *old_kdata) +{ + return -EOPNOTSUPP; +} + struct bpf_struct_ops bpf_bpf_dummy_ops = { .verifier_ops = &bpf_dummy_verifier_ops, .init = bpf_dummy_init, .check_member = bpf_dummy_ops_check_member, .init_member = bpf_dummy_init_member, .reg = bpf_dummy_reg, + .update = bpf_dummy_update, .unreg = bpf_dummy_unreg, .name = "bpf_dummy_ops", };net/ipv4/bpf_tcp_ca.c +6
-0@@ -266,10 +266,16 @@ static void bpf_tcp_ca_unreg(void *kdata) tcp_unregister_congestion_control(kdata); } +static int bpf_tcp_ca_update (void *kdata,void *old_kdata) +{ + return tcp_update_congestion_control(kdata, old_kdata); +} + struct bpf_struct_ops bpf_tcp_congestion_ops = { .verifier_ops = &bpf_tcp_ca_verifier_ops, .reg = bpf_tcp_ca_reg, .unreg = bpf_tcp_ca_unreg, + .update = bpf_tcp_ca_update, .check_member = bpf_tcp_ca_check_member, .init_member = bpf_tcp_ca_init_member, .init = bpf_tcp_ca_init,net/ipv4/tcp_cong.c +10
-0@@ -130,6 +130,45 @@ void tcp_unregister_congestion_control(struct tcp_congestion_ops *ca) } EXPORT_SYMBOL_GPL(tcp_unregister_congestion_control); +/* Replace a registered old ca with a new one. +* +* The new ca must have the same name as the old one, that has been +* registered. +*/ +int tcp_update_congestion_control (struct tcp_congestion_ops *ca,struct tcp_congestion_ops *old_ca) +{ + struct tcp_congestion_ops *existing; + int ret = 0; +[..]
Quoted 8 lines
+ /* all algorithms must implement these */
+ if (!ca->ssthresh || !ca->undo_cwnd ||
+ !(ca->cong_avoid ||ca->cong_control)) {
+pr_err("%s does not implement required ops\n", old_ca->name); + return-EINVAL;
+ }
+
+ca->key=jhash(ca->name, sizeof(ca->name), strlen(ca->name));
Quoted 2 lines
Can we have this as some common
_validatemethod to avoid copy-paste fromtcp_register_congestion_control.
Sure!
Quoted 6 lines
Or, even better, can we can since function handle both cases?
tcp_register_congestion_control(ca, old_ca);
- whenold_ca== NULL -> register
- whenold_ca!= NULL -> try to update
We use this function in a lot of different places. To make it easier, I added a new function instead of changing the old one.
Quoted 30 lines
Quoted 29 lines
+
+spin_lock(&tcp_cong_list_lock);
+ existing =tcp_ca_find_key(ca->key);
+ if (ca->key==TCP_CA_UNSPEC|| !existing ||strcmp(existing->name, ca->name)) {
+pr_notice("%s not registered or non-unique key\n", + ca->name);
+ ret =-EINVAL;
+ } else if (existing !=old_ca) {
+pr_notice("invalid old congestion control algorithm to replace\n");
+ ret =-EINVAL;
+ } else {
+list_del_rcu(&existing->list);
+list_add_tail_rcu(&ca->list, &tcp_cong_list); +pr_debug("%s updated\n", ca->name);
+ }
+spin_unlock(&tcp_cong_list_lock);net/ipv4/tcp_cong.c +5
-0+ + return ret; +} +EXPORT_SYMBOL_GPL (tcp_update_congestion_control); +u32
tcp_ca_get_key_by_name(struct net *net, const char *name, bool *ecn_ca){
const structtcp_congestion_ops*ca;Signature · 1 line
2.30.2
PATCH 3/7 bpf: Register and unregister a struct_ops by their bpf_links.
In reply to Kui-Feng LeeRegistration via bpf_links ensures a uniform behavior, just like other BPF programs. BPF struct_ops were registered/unregistered when updating/deleting their values. Only the maps of struct_ops having the BPF_F_LINK flag are allowed to back a bpf_link.
--- include/uapi/linux/bpf.h | 3 ++ kernel/bpf/bpf_struct_ops.c | 59 +++++++++++++++++++++++++++++++--- tools/include/uapi/linux/bpf.h | 3 ++ 3 files changed, 61 insertions(+), 4 deletions(-)
include/uapi/linux/bpf.h +3 -0
@@ -1267,6 +1267,9 @@ enum {/* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U <<12 ), + +/* Create a map that will be registered/unregesitered by the backed bpf_link */ + BPF_F_LINK = (1U << 13), };/* Flags for BPF_PROG_QUERY. */
kernel/bpf/bpf_struct_ops.c +55 -4
122 lines not on this page · raw message
tools/include/uapi/linux/bpf.h +3 -0
@@ -1267,6 +1267,9 @@ enum {/* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U <<12 ), + +/* Create a map that will be registered/unregesitered by the backed bpf_link */ + BPF_F_LINK = (1U << 13), };/* Flags for BPF_PROG_QUERY. */
Signature · 1 line
2.30.2
Re: [PATCH bpf-next 3/7] bpf: Register and unregister a struct_ops by their bpf_links.
Quoted 56 lines · Kui-Feng Lee
Registration via
bpf_linksensures a uniform behavior, just like other BPF programs. BPFstruct_opswere registered/unregistered when updating/deleting their values. Only the maps ofstruct_opshaving theBPF_F_LINKflag are allowed to back abpf_link.Signed-off-by Kui-Feng Lee <[email protected]>--- include/uapi/linux/bpf.h | 3 ++ kernel/bpf/bpf_struct_ops.c | 59 +++++++++++++++++++++++++++++++--- tools/include/uapi/linux/bpf.h | 3 ++ 3 files changed, 61 insertions(+), 4 deletions(-)include/uapi/linux/bpf.h +0
-0@@ -1267,6 +1267,9 @@ enum {/* Create a map that is suitable to be an inner map with dynamic max entries */
BPF_F_INNER_MAP= (1U << 12),include/uapi/linux/bpf.h +2
-0+ +/* Create a map that will be registered/unregesitered by the backed
bpf_link*/include/uapi/linux/bpf.h +1
-0+ BPF_F_LINK = (1U << 13), };/* Flags for BPF_PROG_QUERY. */ kernel/bpf/bpf_struct_ops.c +1
-1@@ -390,7 +390,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key,mutex_lock (&st_map->lock); -if (kvalue->state !=BPF_STRUCT_OPS_STATE_INIT ) { +if (kvalue->state !=BPF_STRUCT_OPS_STATE_INIT ||refcount_read (&kvalue->refcnt)) { err = -EBUSY ;goto unlock; }kernel/bpf/bpf_struct_ops.c +6
-0@@ -491,6 +491,12 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, *(unsigned long *)(udata + moff) = prog->aux->id; } +if (st_map->map.map_flags &BPF_F_LINK ) { +/* Let bpf_link handle registration & unregistration. */ +smp_store_release (&kvalue->state,BPF_STRUCT_OPS_STATE_INUSE ); + goto unlock; + } +refcount_set (&kvalue->refcnt,1 );bpf_map_inc (map);
[..]
Quoted 9 lines
kernel/bpf/bpf_struct_ops.c +1
-0@@ -522,6 +528,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key,kfree (tlinks);mutex_unlock (&st_map->lock);return err; + }static int
bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key)
Seems like a left over hunk?
Quoted 24 lines
kernel/bpf/bpf_struct_ops.c +2
-0@@ -535,6 +542,8 @@ static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) BPF_STRUCT_OPS_STATE_TOBEFREE);switch (prev_state) {case BPF_STRUCT_OPS_STATE_INUSE : +if (st_map->map.map_flags &BPF_F_LINK ) +return 0 ; st_map->st_ops->unreg (&st_map->kvalue.data);if (refcount_dec_and_test (&st_map->kvalue.refcnt))bpf_map_put(map);kernel/bpf/bpf_struct_ops.c +1
-1@@ -585,7 +594,7 @@ static void bpf_struct_ops_map_free(struct bpf_map *map)static int bpf_struct_ops_map_alloc_check (union bpf_attr *attr) {if (attr->key_size !=sizeof (unsigned int ) || attr->max_entries !=1 || - attr->map_flags || !attr->btf_vmlinux_value_type_id) + (attr->map_flags & ~BPF_F_LINK ) || !attr->btf_vmlinux_value_type_id)return -EINVAL ;return 0 ;}kernel/bpf/bpf_struct_ops.c +0
-0@@ -638,6 +647,8 @@ static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) set_vm_flush_reset_perms(st_map->image);bpf_map_init_from_attr (map, attr);
[..]
kernel/bpf/bpf_struct_ops.c static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) · line 650
Quoted 1 line
kernel/bpf/bpf_struct_ops.c +1
-0+ map->map_flags |= attr->map_flags &BPF_F_LINK ;
You seem to have the following check above:
if (.... (attr->map_flags & ~BPF_F_LINK) ...) return -EINVAL;
And here you do:
map->map_flags |= attr->map_flags & BPF_F_LINK;
So maybe we can simplify to:map->map_flags |= attr->map_flags;
?
Quoted 56 lines
kernel/bpf/bpf_struct_ops.c +17
-1+return map; }@@ -699,10 +710,25 @@ void bpf_struct_ops_put(const void *kdata) } } +static void bpf_struct_ops_kvalue_put (struct bpf_struct_ops_value *kvalue) +{ +struct bpf_struct_ops_map *st_map; + +if (refcount_dec_and_test (&kvalue->refcnt)) { + st_map = container_of(kvalue, struct bpf_struct_ops_map, + kvalue); +bpf_map_put (&st_map->map); + } +} +static void bpf_struct_ops_map_link_release (struct bpf_link *link) { +struct bpf_struct_ops_map *st_map; +if (link->map) { -bpf_map_put (link->map); + st_map = (struct bpf_struct_ops_map *)link->map; + st_map->st_ops->unreg (&st_map->kvalue.data); +bpf_struct_ops_kvalue_put (&st_map->kvalue); link->map =NULL ; }}kernel/bpf/bpf_struct_ops.c +3
-1@@ -735,13 +761,15 @@ static const struct bpf_link_ops bpf_struct_ops_map_lops = {int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr) { +struct bpf_struct_ops_map *st_map;struct bpf_link_primer link_primer; +struct bpf_struct_ops_value *kvalue;struct bpf_map *map;struct bpf_link *link =NULL ;int err; map =bpf_map_get (attr->link_create.prog_fd); -if (map->map_type !=BPF_MAP_TYPE_STRUCT_OPS ) +if (map->map_type !=BPF_MAP_TYPE_STRUCT_OPS || !(map->map_flags &BPF_F_LINK ))return -EINVAL ;link = kzalloc(sizeof(*link), GFP_USER);kernel/bpf/bpf_struct_ops.c +0
-0@@ -752,6 +780,29 @@ int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL); link->map = map;
[..]
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 783
Quoted 1 line
kernel/bpf/bpf_struct_ops.c +1
-0+if (map->map_flags &BPF_F_LINK ) {
We seem to bail out above when we don't have BPF_F_LINK flags above?
if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS || !(map->map_flags & BPF_F_LINK))
return -EINVAL;
So why check this 'if (map->map_flags & BPF_F_LINK)' condition here?
Quoted 43 lines
kernel/bpf/bpf_struct_ops.c +22
-0+ st_map = (struct bpf_struct_ops_map *)map; + kvalue = (struct bpf_struct_ops_value *)&st_map->kvalue; + +if (kvalue->state !=BPF_STRUCT_OPS_STATE_INUSE || +refcount_read (&kvalue->refcnt) !=0 ) { + err = -EINVAL ; + goto err_out; + } + +refcount_set (&kvalue->refcnt,1 ); + +set_memory_rox ((long )st_map->image,1 ); + err = st_map->st_ops->reg (kvalue->data); +if (err) { +refcount_set (&kvalue->refcnt,0 ); + +set_memory_nx ((long )st_map->image,1 ); +set_memory_rw ((long )st_map->image,1 ); + goto err_out; + } + } + err =bpf_link_prime (link, &link_primer);if (err) goto err_out;tools/include/uapi/linux/bpf.h +0
-0@@ -1267,6 +1267,9 @@ enum {/* Create a map that is suitable to be an inner map with dynamic max entries */
BPF_F_INNER_MAP= (1U << 12),tools/include/uapi/linux/bpf.h +2
-0+ +/* Create a map that will be registered/unregesitered by the backed
bpf_link*/tools/include/uapi/linux/bpf.h +1
-1+ BPF_F_LINK = (1U << 13), };/* Flags for BPF_PROG_QUERY. */ --2.30.2
Re: [PATCH bpf-next 3/7] bpf: Register and unregister a struct_ops by their bpf_links.
Quoted 68 lines · Stanislav Fomichev
Quoted 55 lines · Kui-Feng Lee
Registration via
bpf_linksensures a uniform behavior, just like other BPF programs. BPFstruct_opswere registered/unregistered when updating/deleting their values. Only the maps ofstruct_opshaving theBPF_F_LINKflag are allowed to back abpf_link.Signed-off-by Kui-Feng Lee <[email protected]>---
include/uapi/linux/bpf.h | 3 ++ kernel/bpf/bpf_struct_ops.c | 59 +++++++++++++++++++++++++++++++---tools/include/uapi/linux/bpf.h| 3 ++3 files changed, 61 insertions(+), 4 deletions(-)include/uapi/linux/bpf.h +2
-0@@ -1267,6 +1267,9 @@ enum { /* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U << 12), + +/* Create a map that will be registered/unregesitered by the backed
bpf_link*/
+ BPF_F_LINK = (1U << 13),
};/* Flags for
BPF_PROG_QUERY. */kernel/bpf/bpf_struct_ops.c +1
-1@@ -390,7 +390,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, mutex_lock(&st_map->lock); - if (kvalue->state != BPF_STRUCT_OPS_STATE_INIT) { + if (kvalue->state != BPF_STRUCT_OPS_STATE_INIT ||refcount_read (&kvalue->refcnt)) { err = -EBUSY;goto unlock;
}kernel/bpf/bpf_struct_ops.c +6
-0@@ -491,6 +491,12 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, *(unsigned long *)(udata + moff) = prog->aux->id; } + if (st_map->map.map_flags & BPF_F_LINK) { + /* Let bpf_link handle registration & unregistration. */ + smp_store_release(&kvalue->state, BPF_STRUCT_OPS_STATE_INUSE); + goto unlock; + } + refcount_set(&kvalue->refcnt, 1); bpf_map_inc(map);[..]
Quoted 7 lines
kernel/bpf/bpf_struct_ops.c +1
-0@@ -522,6 +528,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, kfree(tlinks); mutex_unlock(&st_map->lock); return err; + }
Quoted 3 lines
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, · line 534
Quoted 1 line
kernel/bpf/bpf_struct_ops.c +0
-0static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key)Seems like a left over hunk?
You are right. I will remove it.
Quoted 36 lines
Quoted 26 lines
kernel/bpf/bpf_struct_ops.c +0
-0@@ -535,6 +542,8 @@ static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) BPF_STRUCT_OPS_STATE_TOBEFREE); switch (prev_state) {case
BPF_STRUCT_OPS_STATE_INUSE:
+ if (st_map->map.map_flags&BPF_F_LINK)
+ return 0;st_map->st_ops->unreg(&st_map->kvalue.data);
if (refcount_dec_and_test(&st_map->kvalue.refcnt))bpf_map_put(map);kernel/bpf/bpf_struct_ops.c +0
-0@@ -585,7 +594,7 @@ static void bpf_struct_ops_map_free(struct bpf_map *map) static int bpf_struct_ops_map_alloc_check(union bpf_attr *attr) {if (
attr->key_size!= sizeof(unsigned int) ||attr->max_entries!= 1 || -attr->map_flags|| !attr->btf_vmlinux_value_type_id)
+ (attr->map_flags& ~BPF_F_LINK) || !attr->btf_vmlinux_value_type_id)
return-EINVAL;
return 0;
}kernel/bpf/bpf_struct_ops.c +0
-0@@ -638,6 +647,8 @@ static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) set_vm_flush_reset_perms(st_map->image); bpf_map_init_from_attr(map, attr);[..]
Quoted 1 line
+
map->map_flags|=attr->map_flags&BPF_F_LINK;You seem to have the following check above:
if (.... (
attr->map_flags& ~BPF_F_LINK) ...) return-EINVAL;
Quoted 8 lines
And here you do:
map->map_flags|=attr->map_flags&BPF_F_LINK;So maybe we can simplify to:
map->map_flags|=attr->map_flags;?
Great catch!
Quoted 60 lines
Quoted 56 lines
+
return map;
}kernel/bpf/bpf_struct_ops.c +16
-1@@ -699,10 +710,25 @@ void bpf_struct_ops_put(const void *kdata) } } +static void bpf_struct_ops_kvalue_put (struct bpf_struct_ops_value *kvalue) +{ + struct bpf_struct_ops_map *st_map; + + if (refcount_dec_and_test(&kvalue->refcnt)) { + st_map = container_of(kvalue, struct bpf_struct_ops_map, + kvalue); + bpf_map_put(&st_map->map); + } +} + static void bpf_struct_ops_map_link_release(struct bpf_link *link) { + struct bpf_struct_ops_map *st_map; + if (link->map) { - bpf_map_put(link->map); + st_map = (struct bpf_struct_ops_map *)link->map; + st_map->st_ops->unreg (&st_map->kvalue.data); + bpf_struct_ops_kvalue_put(&st_map->kvalue); link->map = NULL; }}
kernel/bpf/bpf_struct_ops.c +3
-1@@ -735,13 +761,15 @@ static const struct bpf_link_ops bpf_struct_ops_map_lops = { int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) { + struct bpf_struct_ops_map *st_map; struct bpf_link_primer link_primer; + struct bpf_struct_ops_value *kvalue; struct bpf_map *map; struct bpf_link *link = NULL; int err; map = bpf_map_get(attr->link_create.prog_fd); - if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS) + if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS || !(map->map_flags &BPF_F_LINK )) return -EINVAL;link =
kzalloc(sizeof(*link), GFP_USER);kernel/bpf/bpf_struct_ops.c +0
-0@@ -752,6 +780,29 @@ int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL); link->map = map;[..]
Quoted 8 lines
Quoted 1 line
+ if (
map->map_flags&BPF_F_LINK) {We seem to bail out above when we don't have
BPF_F_LINKflags above?if (
map->map_type!=BPF_MAP_TYPE_STRUCT_OPS|| !(map->map_flags &BPF_F_LINK)) return-EINVAL;So why check this 'if (
map->map_flags&BPF_F_LINK)' condition here?
You are right! This check is not necessary anymore.
Quoted 45 lines
Quoted 44 lines
+
st_map= (structbpf_struct_ops_map*)map;
+ kvalue = (structbpf_struct_ops_value*)&st_map->kvalue;kernel/bpf/bpf_struct_ops.c +20
-0+ + if (kvalue->state != BPF_STRUCT_OPS_STATE_INUSE || + refcount_read(&kvalue->refcnt) != 0) { + err = -EINVAL; + goto err_out; + } + + refcount_set(&kvalue->refcnt, 1); + + set_memory_rox((long)st_map->image, 1); + err = st_map->st_ops->reg(kvalue->data); + if (err) { + refcount_set(&kvalue->refcnt, 0); + + set_memory_nx((long)st_map->image, 1); + set_memory_rw((long)st_map->image, 1); + goto err_out; + } + } +err =
bpf_link_prime(link, &link_primer);
if (err)
gotoerr_out;tools/include/uapi/linux/bpf.h +2
-0@@ -1267,6 +1267,9 @@ enum { /* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U << 12), + +/* Create a map that will be registered/unregesitered by the backed
bpf_link*/
+ BPF_F_LINK = (1U << 13),
};/* Flags for
BPF_PROG_QUERY. */Signature · 1 line
2.30.2
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 3/7] bpf: Register and unregister a struct_ops by their bpf_links.
In reply to Kui-Feng LeeQuoted 31 lines · Kui-Feng Lee
Registration via
bpf_linksensures a uniform behavior, just like other BPF programs. BPFstruct_opswere registered/unregistered when updating/deleting their values. Only the maps ofstruct_opshaving theBPF_F_LINKflag are allowed to back abpf_link.Signed-off-by Kui-Feng Lee <[email protected]>--- include/uapi/linux/bpf.h | 3 ++ kernel/bpf/bpf_struct_ops.c | 59 +++++++++++++++++++++++++++++++--- tools/include/uapi/linux/bpf.h | 3 ++ 3 files changed, 61 insertions(+), 4 deletions(-)include/uapi/linux/bpf.h +3
-0@@ -1267,6 +1267,9 @@ enum {/* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U <<12 ), + +/* Create a map that will be registered/unregesitered by the backed bpf_link */ + BPF_F_LINK = (1U << 13), };/* Flags for BPF_PROG_QUERY. */ kernel/bpf/bpf_struct_ops.c +0
-0
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, · line 393
Quoted 5 lines
kernel/bpf/bpf_struct_ops.c +1
-1@@ -390,7 +390,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key,mutex_lock (&st_map->lock); -if (kvalue->state !=BPF_STRUCT_OPS_STATE_INIT ) { +if (kvalue->state !=BPF_STRUCT_OPS_STATE_INIT ||refcount_read (&kvalue->refcnt)) {
Why it needs a new refcount_read(&kvalue->refcnt) check?
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, · line 496
Quoted 10 lines
kernel/bpf/bpf_struct_ops.c +3
-0err = -EBUSY ; goto unlock; }@@ -491,6 +491,12 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, *(unsigned long *)(udata + moff) = prog->aux->id; } +if (st_map->map.map_flags &BPF_F_LINK ) { +/* Let bpf_link handle registration & unregistration. */ +smp_store_release (&kvalue->state,BPF_STRUCT_OPS_STATE_INUSE );
INUSE is for registered struct_ops. It needs a new UNREG state to mean initialized but not registered. The kvalue->state is not in uapi but the user space can still introspect it (thanks to BTF), so having a correct semantic state is useful. Try 'bpftool struct_ops dump ...':
"bpf_struct_ops_tcp_congestion_ops": {
"refcnt": {
"refs": {
"counter": 1
}
},
"state": "BPF_STRUCT_OPS_STATE_INUSE",kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, · line 531
Quoted 11 lines
kernel/bpf/bpf_struct_ops.c +4
-0+ goto unlock; + } +refcount_set (&kvalue->refcnt,1 );bpf_map_inc (map);@@ -522,6 +528,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key,kfree (tlinks);mutex_unlock (&st_map->lock);return err; +
Unnecessary new line.
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) · line 546
Quoted 9 lines
kernel/bpf/bpf_struct_ops.c +2
-0}static int bpf_struct_ops_map_delete_elem (struct bpf_map *map,void *key)@@ -535,6 +542,8 @@ static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) BPF_STRUCT_OPS_STATE_TOBEFREE);switch (prev_state) {case BPF_STRUCT_OPS_STATE_INUSE : +if (st_map->map.map_flags &BPF_F_LINK ) +return 0 ;
This should be a -ENOTSUPP.
Quoted 13 lines
kernel/bpf/bpf_struct_ops.c +1
-1st_map->st_ops->unreg (&st_map->kvalue.data);if (refcount_dec_and_test (&st_map->kvalue.refcnt))bpf_map_put (map);@@ -585,7 +594,7 @@ static void bpf_struct_ops_map_free(struct bpf_map *map)static int bpf_struct_ops_map_alloc_check (union bpf_attr *attr) {if (attr->key_size !=sizeof (unsigned int ) || attr->max_entries !=1 || - attr->map_flags || !attr->btf_vmlinux_value_type_id) + (attr->map_flags & ~BPF_F_LINK ) || !attr->btf_vmlinux_value_type_id)return -EINVAL ;return 0 ; }
kernel/bpf/bpf_struct_ops.c static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) · line 650
Quoted 4 lines
kernel/bpf/bpf_struct_ops.c +1
-0@@ -638,6 +647,8 @@ static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr)set_vm_flush_reset_perms (st_map->image);bpf_map_init_from_attr (map, attr); + map->map_flags |= attr->map_flags &BPF_F_LINK ;
This should have already been done in bpf_map_init_from_attr().
Quoted 19 lines
kernel/bpf/bpf_struct_ops.c +12
-0+return map; }@@ -699,10 +710,25 @@ void bpf_struct_ops_put(const void *kdata) } } +static void bpf_struct_ops_kvalue_put (struct bpf_struct_ops_value *kvalue) +{ +struct bpf_struct_ops_map *st_map; + +if (refcount_dec_and_test (&kvalue->refcnt)) { + st_map = container_of(kvalue, struct bpf_struct_ops_map, + kvalue); +bpf_map_put (&st_map->map); + } +} +
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 732
Quoted 10 lines
kernel/bpf/bpf_struct_ops.c +5
-1static void bpf_struct_ops_map_link_release (struct bpf_link *link) { +struct bpf_struct_ops_map *st_map; +if (link->map) { -bpf_map_put (link->map); + st_map = (struct bpf_struct_ops_map *)link->map; + st_map->st_ops->unreg (&st_map->kvalue.data); +bpf_struct_ops_kvalue_put (&st_map->kvalue); link->map =NULL ;
Does it need a lock or something to protect the link_release? or I am missing something and lock is not needed?
The kvalue->value state should become UNREG.
After UNREG, can the struct_ops map be used in creating a new link again?
Quoted 20 lines
kernel/bpf/bpf_struct_ops.c +3
-1} }@@ -735,13 +761,15 @@ static const struct bpf_link_ops bpf_struct_ops_map_lops = {int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr) { +struct bpf_struct_ops_map *st_map;struct bpf_link_primer link_primer; +struct bpf_struct_ops_value *kvalue;struct bpf_map *map;struct bpf_link *link =NULL ;int err; map =bpf_map_get (attr->link_create.prog_fd); -if (map->map_type !=BPF_MAP_TYPE_STRUCT_OPS ) +if (map->map_type !=BPF_MAP_TYPE_STRUCT_OPS || !(map->map_flags &BPF_F_LINK ))return -EINVAL ; link =kzalloc (sizeof (*link),GFP_USER );
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 788
Quoted 9 lines
kernel/bpf/bpf_struct_ops.c +6
-0@@ -752,6 +780,29 @@ int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr)bpf_link_init (link,BPF_LINK_TYPE_STRUCT_OPS , &bpf_struct_ops_map_lops,NULL ); link->map = map; +if (map->map_flags &BPF_F_LINK ) { + st_map = (struct bpf_struct_ops_map *)map; + kvalue = (struct bpf_struct_ops_value *)&st_map->kvalue; + +if (kvalue->state !=BPF_STRUCT_OPS_STATE_INUSE || +refcount_read (&kvalue->refcnt) !=0 ) {
The refcount_read(&kvalue->refcnt) is to ensure it is not registered? It seems the UNREG state is useful here.
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 793
Quoted 5 lines
kernel/bpf/bpf_struct_ops.c +5
-0+ err = -EINVAL ; + goto err_out; + } + +refcount_set (&kvalue->refcnt,1 );
If a struct_ops map is used to create multiple links in parallel, is it safe?
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 796
Quoted 3 lines
kernel/bpf/bpf_struct_ops.c +3
-0+ +set_memory_rox ((long )st_map->image,1 ); + err = st_map->st_ops->reg (kvalue->data);
After successful reg, the state can be changed from UNREG to INUSE.
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 804
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c +8
-0+if (err) { +refcount_set (&kvalue->refcnt,0 ); + +set_memory_nx ((long )st_map->image,1 ); +set_memory_rw ((long )st_map->image,1 ); + goto err_out; + } + }
This patch should be combined with patch 1. Otherwise, patch 1 is quite hard to understand without link_create_struct_ops_map() doing the actual "attach".
Quoted 18 lines
kernel/bpf/bpf_struct_ops.c +1
-0+ err =bpf_link_prime (link, &link_primer);if (err) goto err_out;tools/include/uapi/linux/bpf.h +3
-0@@ -1267,6 +1267,9 @@ enum {/* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U <<12 ), + +/* Create a map that will be registered/unregesitered by the backed bpf_link */ + BPF_F_LINK = (1U << 13), };/* Flags for BPF_PROG_QUERY. */
Re: [PATCH bpf-next 3/7] bpf: Register and unregister a struct_ops by their bpf_links.
Quoted 30 lines · Martin KaFai Lau
Quoted 29 lines · Kui-Feng Lee
Registration via
bpf_linksensures a uniform behavior, just like other BPF programs. BPFstruct_opswere registered/unregistered when updating/deleting their values. Only the maps ofstruct_opshaving theBPF_F_LINKflag are allowed to back abpf_link.Signed-off-by Kui-Feng Lee <[email protected]>---
include/uapi/linux/bpf.h | 3 ++ kernel/bpf/bpf_struct_ops.c | 59 +++++++++++++++++++++++++++++++---tools/include/uapi/linux/bpf.h| 3 ++3 files changed, 61 insertions(+), 4 deletions(-)include/uapi/linux/bpf.h +2
-0@@ -1267,6 +1267,9 @@ enum { /* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U << 12), + +/* Create a map that will be registered/unregesitered by the backed
bpf_link*/
+ BPF_F_LINK = (1U << 13),
};
/* Flags forBPF_PROG_QUERY. */kernel/bpf/bpf_struct_ops.c +0
-0
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct · line 393
Quoted 6 lines
kernel/bpf/bpf_struct_ops.c +1
-1@@ -390,7 +390,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, mutex_lock(&st_map->lock); - if (kvalue->state != BPF_STRUCT_OPS_STATE_INIT) { + if (kvalue->state != BPF_STRUCT_OPS_STATE_INIT ||refcount_read (&kvalue->refcnt)) {Why it needs a new
refcount_read(&kvalue->refcnt)check?
It prohibits updating the value once it is registered. This refcnt is set to 1 when register it.
But, yes, it is confusing since we never reset it back to *_INIT.
The purpose of this refcount_read() will be clear once add *_UNREG, and reset it back to *_INIT properly.
Quoted 14 lines
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct · line 496
Quoted 11 lines
kernel/bpf/bpf_struct_ops.c +3
-0err = -EBUSY; goto unlock; }@@ -491,6 +491,12 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, *(unsigned long *)(udata + moff) = prog->aux->id; } + if (st_map->map.map_flags & BPF_F_LINK) { + /* Let bpf_link handle registration & unregistration. */ + smp_store_release(&kvalue->state, BPF_STRUCT_OPS_STATE_INUSE);INUSE is for registered
struct_ops. It needs a new UNREG state to mean initialized but not registered. Thekvalue->stateis not in uapi but the user space can still introspect it (thanks to BTF), so having a correct semantic state is useful. Try 'bpftoolstruct_opsdump ...':
Quoted 7 lines
"
bpf_struct_ops_tcp_congestion_ops": {
"refcnt": {
"refs": {
"counter": 1
}
},
"state": "BPF_STRUCT_OPS_STATE_INUSE",
Ok! That make sense.
Quoted 15 lines
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_update_elem(struct · line 532
Quoted 12 lines
kernel/bpf/bpf_struct_ops.c +4
-0+ goto unlock; + } + refcount_set(&kvalue->refcnt, 1); bpf_map_inc(map);@@ -522,6 +528,7 @@ static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, kfree(tlinks); mutex_unlock(&st_map->lock); return err; +Unnecessary new line.
Quoted 11 lines
Quoted 9 lines
kernel/bpf/bpf_struct_ops.c +0
-0} static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key)@@ -535,6 +542,8 @@ static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) BPF_STRUCT_OPS_STATE_TOBEFREE); switch (prev_state) {case
BPF_STRUCT_OPS_STATE_INUSE:
+ if (st_map->map.map_flags&BPF_F_LINK)
+ return 0;This should be a
-ENOTSUPP.
Sure!
Quoted 14 lines
Quoted 14 lines
st_map->st_ops->unreg(&st_map->kvalue.data); if (refcount_dec_and_test(&st_map->kvalue.refcnt))bpf_map_put(map);kernel/bpf/bpf_struct_ops.c +0
-0@@ -585,7 +594,7 @@ static void bpf_struct_ops_map_free(struct bpf_map *map) static int bpf_struct_ops_map_alloc_check(union bpf_attr *attr) {if (
attr->key_size!= sizeof(unsigned int) ||attr->max_entries!= 1 || -attr->map_flags|| !attr->btf_vmlinux_value_type_id)
+ (attr->map_flags& ~BPF_F_LINK) || !attr->btf_vmlinux_value_type_id)
return-EINVAL;
return 0;
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c static struct bpf_map · line 650
Quoted 6 lines
}
kernel/bpf/bpf_struct_ops.c +1
-0@@ -638,6 +647,8 @@ static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) set_vm_flush_reset_perms(st_map->image); bpf_map_init_from_attr(map, attr); + map->map_flags |= attr->map_flags & BPF_F_LINK;This should have already been done in
bpf_map_init_from_attr().
bpf_map_init_from_attr() will filter out all flags except BPF_F_RDONLY & BPF_F_WRONLY. But, I can move it to bpf_map_init_from_attr() by not filtering out it.
Quoted 23 lines
Quoted 23 lines
kernel/bpf/bpf_struct_ops.c +14
-0+ return map; }@@ -699,10 +710,25 @@ void bpf_struct_ops_put(const void *kdata) } } +static void bpf_struct_ops_kvalue_put (struct bpf_struct_ops_value *kvalue) +{ + struct bpf_struct_ops_map *st_map; + + if (refcount_dec_and_test(&kvalue->refcnt)) { + st_map = container_of(kvalue, struct bpf_struct_ops_map, + kvalue); + bpf_map_put(&st_map->map); + } +} + static void bpf_struct_ops_map_link_release(struct bpf_link *link) { + struct bpf_struct_ops_map *st_map; +
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c void bpf_struct_ops_put(const void *kdata) · line 732
Quoted 6 lines
kernel/bpf/bpf_struct_ops.c +3
-1if (link->map) { - bpf_map_put(link->map); + st_map = (struct bpf_struct_ops_map *)link->map; + st_map->st_ops->unreg(&st_map->kvalue.data); + bpf_struct_ops_kvalue_put(&st_map->kvalue); link->map = NULL;Does it need a lock or something to protect the
link_release? or I am missing something and lock is not needed?
This function will be called by bpf_link_free() following the pointer in bpf_link_ops. And bpf_link_free() is called by bpf_link_put(). The refcnt of bpf_link is maintained by bpf_link_put(), and the function here indirectly only if the refcnt reachs 0. If I don't miss anything, it should be safe to release a link without a lock.
Quoted 5 lines
The
kvalue->valuestate should become UNREG.After UNREG, can the
struct_opsmap be used in creating a new link again?
It should be.
Quoted 23 lines
Quoted 23 lines
kernel/bpf/bpf_struct_ops.c +4
-1} }@@ -735,13 +761,15 @@ static const struct bpf_link_ops bpf_struct_ops_map_lops = { int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) { + struct bpf_struct_ops_map *st_map; struct bpf_link_primer link_primer; + struct bpf_struct_ops_value *kvalue; struct bpf_map *map; struct bpf_link *link = NULL; int err; map = bpf_map_get(attr->link_create.prog_fd); - if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS) + if (map->map_type != BPF_MAP_TYPE_STRUCT_OPS || !(map->map_flags &BPF_F_LINK )) return -EINVAL; link = kzalloc(sizeof(*link), GFP_USER);@@ -752,6 +780,29 @@ int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) bpf_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_map_lops, NULL); link->map = map; + if (map->map_flags & BPF_F_LINK) {
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 788
Quoted 5 lines
kernel/bpf/bpf_struct_ops.c +5
-0+ st_map = (struct bpf_struct_ops_map *)map; + kvalue = (struct bpf_struct_ops_value *)&st_map->kvalue; + + if (kvalue->state != BPF_STRUCT_OPS_STATE_INUSE || + refcount_read(&kvalue->refcnt) != 0) {The
refcount_read(&kvalue->refcnt)is to ensure it is not registered? It seems the UNREG state is useful here.
Yes!
Quoted 24 lines
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 793
Quoted 6 lines
kernel/bpf/bpf_struct_ops.c +5
-0+ err = -EINVAL; + goto err_out; + } + + refcount_set(&kvalue->refcnt, 1);If a
struct_opsmap is used to create multiple links in parallel, is it safe?kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 796
Quoted 3 lines
kernel/bpf/bpf_struct_ops.c +3
-0+ + set_memory_rox((long)st_map->image, 1); + err = st_map->st_ops->reg(kvalue->data);After successful reg, the state can be changed from UNREG to INUSE.
kernel/bpf/bpf_struct_ops.c int link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr) · line 804
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c +8
-0+ if (err) { + refcount_set(&kvalue->refcnt, 0); + + set_memory_nx((long)st_map->image, 1); + set_memory_rw((long)st_map->image, 1); + goto err_out; + } + }
Quoted 1 line
This patch should be combined with patch 1. Otherwise, patch 1 is quite hard to understand without
link_create_struct_ops_map()doing the actual "attach".
Ok!
Quoted 19 lines
Quoted 18 lines
kernel/bpf/bpf_struct_ops.c +1
-0+ err = bpf_link_prime(link, &link_primer); if (err) goto err_out;tools/include/uapi/linux/bpf.h +2
-0@@ -1267,6 +1267,9 @@ enum { /* Create a map that is suitable to be an inner map with dynamic max entries */ BPF_F_INNER_MAP = (1U << 12), + +/* Create a map that will be registered/unregesitered by the backed
bpf_link*/
+ BPF_F_LINK = (1U << 13),
};
/* Flags forBPF_PROG_QUERY. */
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 3/7] bpf: Register and unregister a struct_ops by their bpf_links.
Quoted 9 lines · Kui-Feng Lee
Quoted 7 lines
kernel/bpf/bpf_struct_ops.c static struct bpf_map *bpf_struct_ops_map_alloc(union · line 650
Quoted 5 lines
kernel/bpf/bpf_struct_ops.c +1
-0@@ -638,6 +647,8 @@ static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) set_vm_flush_reset_perms(st_map->image); bpf_map_init_from_attr(map, attr); + map->map_flags |= attr->map_flags & BPF_F_LINK;This should have already been done in
bpf_map_init_from_attr().
bpf_map_init_from_attr()will filter out all flags exceptBPF_F_RDONLY&BPF_F_WRONLY.
should be the opposite:
static u32 bpf_map_flags_retain_permanent(u32 flags)
{
/* Some map creation flags are not tied to the map object but
* rather to the map fd instead, so they have no meaning upon
* map object inspection since multiple file descriptors with
* different (access) properties can exist here. Thus, given
* this has zero meaning for the map itself, lets clear these
* from here.
*/
return flags & ~(BPF_F_RDONLY | BPF_F_WRONLY);
}
Re: [PATCH bpf-next 3/7] bpf: Register and unregister a struct_ops by their bpf_links.
Quoted 13 lines · Martin KaFai Lau
Quoted 9 lines · Kui-Feng Lee
Quoted 7 lines
kernel/bpf/bpf_struct_ops.c static struct bpf_map · line 650
Quoted 5 lines
kernel/bpf/bpf_struct_ops.c +1
-0@@ -638,6 +647,8 @@ static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) set_vm_flush_reset_perms(st_map->image); bpf_map_init_from_attr(map, attr); + map->map_flags |= attr->map_flags & BPF_F_LINK;This should have already been done in
bpf_map_init_from_attr().
bpf_map_init_from_attr()will filter out all flags exceptBPF_F_RDONLY&BPF_F_WRONLY.should be the opposite:
Quoted 11 lines
static u32
bpf_map_flags_retain_permanent(u32 flags)
{
/* Some map creation flags are not tied to the map object but
* rather to the map fd instead, so they have no meaning upon
* map object inspection since multiple file descriptors with
* different (access) properties can exist here. Thus, given
* this has zero meaning for the map itself, lets clear these
* from here.
*/
return flags & ~(BPF_F_RDONLY |BPF_F_WRONLY);
}
Got it! Thank you!
PATCH 4/7 libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
In reply to Kui-Feng Leebpf_map__attach_struct_ops() was creating a dummy bpf_link as a placeholder, but now it is constructing an authentic one by calling bpf_link_create() if the map has the BPF_F_LINK flag.
You can flag a struct_ops map with BPF_F_LINK by calling bpf_map__set_map_flags().
--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)
tools/lib/bpf/libbpf.c +58 -15
@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; } +struct bpf_link_struct_ops_map { +struct bpf_link link; +int map_fd; +}; +static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))return -errno;return 0 ; } -struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map) {struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i =0 ; i <btf_vlen (st_ops->type); i++) {
@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) { +/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } + + fd =bpf_link_create (map->fd,-1 ,BPF_STRUCT_OPS_MAP ,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return libbpf_err_ptr (err); + } + + link->link.fd = fd; + link->map_fd = map->fd; + +return &link->link; } typedef enum bpf_perf_event_ret (*bpf_perf_event_print_t)(struct perf_event_header *hdr,
Signature · 1 line
2.30.2
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
Quoted 17 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const · line 11437
Quoted 8 lines
tools/lib/bpf/libbpf.c +4
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; } +struct bpf_link_struct_ops_map { +struct bpf_link link; +int map_fd; +};
Ah, ok, now you're adding bpf_link_struct_ops_map. I guess I'm now confused why you haven't done it in the first patch :-/
And what are these fake bpf_links? Can you share more about it means?
Quoted 102 lines
tools/lib/bpf/libbpf.c +19
-11+static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))return -errno;return 0 ; } -struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map) {struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i = 0; i < btf_vlen(st_ops->type); i++) {tools/lib/bpf/libbpf.c +35
-4@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) { +/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } + + fd =bpf_link_create (map->fd,-1 ,BPF_STRUCT_OPS_MAP ,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return libbpf_err_ptr (err); + } + + link->link.fd = fd; + link->map_fd = map->fd; + +return &link->link; }typedef enum
bpf_perf_event_ret(*bpf_perf_event_print_t)(structperf_event_header*hdr,
--
2.30.2
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
Quoted 22 lines · Stanislav Fomichev
Quoted 20 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>---
tools/lib/bpf/libbpf.c| 73 +++++++++++++++++++++++++++++++++---------1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog) return link; }
Quoted 7 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11436
Quoted 4 lines
tools/lib/bpf/libbpf.c +4
-0+struct bpf_link_struct_ops_map { + struct bpf_link link; + int map_fd; +};Ah, ok, now you're adding
bpf_link_struct_ops_map. I guess I'm now confused why you haven't done it in the first patch :-/
Just won't to mix the libbpf part and kernel part in one patch.
Quoted 2 lines
And what are these fake
bpf_links? Can you share more about it means?
For the next version, I will detail it in the commit log. In a nutshell, before this point, there was no bpf_link for struct_ops. Libbpf attempted to create an equivalent interface to other BPF programs by providing a simulated bpf_link instead of a true one from the kernel; that fake bpf_link stores FDs associated with struct_ops maps rather than real bpf_links.
Quoted 103 lines
Quoted 102 lines
tools/lib/bpf/libbpf.c +54
-15+ static int bpf_link__detach_struct_ops(struct bpf_link *link) { + struct bpf_link_struct_ops_map *st_link; __u32 zero = 0; - if (bpf_map_delete_elem(link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + + if (st_link->map_fd < 0) { + /* Fake bpf_link */ + if (bpf_map_delete_elem(link->fd, &zero)) + return -errno; + return 0; + } + + if (bpf_map_delete_elem(st_link->map_fd, &zero)) + return -errno; + + if (close(link->fd)) return -errno; return 0; } -struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map) { struct bpf_struct_ops *st_ops; - struct bpf_link *link; __u32 i, zero = 0; - int err; - - if (!bpf_map__is_struct_ops(map) || map->fd == -1) - return libbpf_err_ptr(-EINVAL); - - link = calloc(1, sizeof(*link)); - if (!link) - return libbpf_err_ptr(-EINVAL); st_ops = map->st_ops; for (i = 0; i < btf_vlen(st_ops->type); i++) {@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err = bpf_map_update_elem(map->fd, &zero, st_ops->kern_vdata, 0); + return bpf_map_update_elem(map->fd, &zero, st_ops->kern_vdata, 0); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ + struct bpf_link_struct_ops_map *link; + int err, fd; + + if (!bpf_map__is_struct_ops(map) || map->fd == -1) + return libbpf_err_ptr(-EINVAL); + + link = calloc(1, sizeof(*link)); + if (!link) + return libbpf_err_ptr(-EINVAL); + + err = bpf_map__update_vdata(map); if (err) { err = -errno; free(link); return libbpf_err_ptr(err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; - return link; + if (!(map->def.map_flags & BPF_F_LINK)) { + /* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd = -1; + return &link->link; + } + + fd = bpf_link_create(map->fd, -1, BPF_STRUCT_OPS_MAP, NULL); + if (fd < 0) { + err = -errno; + free(link); + return libbpf_err_ptr(err); + } + + link->link.fd = fd; + link->map_fd = map->fd; + + return &link->link; }typedef enum
bpf_perf_event_ret(*bpf_perf_event_print_t)(structperf_event_header*hdr,Signature · 1 line
2.30.2
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
Quoted 33 lines · Kui-Feng Lee
Quoted 22 lines · Stanislav Fomichev
Quoted 20 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; }Quoted 7 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11436
Quoted 4 lines
tools/lib/bpf/libbpf.c +4
-0+struct bpf_link_struct_ops_map { +struct bpf_link link; +int map_fd; +};Ah, ok, now you're adding
bpf_link_struct_ops_map. I guess I'm now confused why you haven't done it in the first patch :-/
Quoted 1 line
Just won't to mix the libbpf part and kernel part in one patch.
Ah, shoot, I completely missed that it's libbpf. So in this case, can we use the same strategy for the kernel links? Instead of a union, have an outer struct + container_of? If not, why not?
Quoted 116 lines
Quoted 3 lines
And what are these fake
bpf_links? Can you share more about it means?For the next version, I will detail it in the commit log. In a nutshell, before this point, there was no
bpf_linkforstruct_ops. Libbpf attempted to create an equivalent interface to other BPF programs by providing a simulatedbpf_linkinstead of a true one from the kernel; that fakebpf_linkstores FDs associated withstruct_opsmaps rather than realbpf_links.Quoted 104 lines
Quoted 103 lines
tools/lib/bpf/libbpf.c +54
-15+static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))return -errno;return 0 ; } -struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map) {struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i =0 ; i <btf_vlen (st_ops->type); i++) {@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) { +/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } + + fd =bpf_link_create (map->fd,-1 ,BPF_STRUCT_OPS_MAP ,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return libbpf_err_ptr (err); + } + + link->link.fd = fd; + link->map_fd = map->fd; + +return &link->link; }typedef enum
bpf_perf_event_ret(*bpf_perf_event_print_t)(structperf_event_header*hdr,
--
2.30.2
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
Quoted 34 lines · Stanislav Fomichev
Quoted 33 lines · Kui-Feng Lee
Quoted 29 lines · Stanislav Fomichev
Quoted 17 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const · line 11437
Quoted 8 lines
tools/lib/bpf/libbpf.c +4
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; } +struct bpf_link_struct_ops_map { +struct bpf_link link; +int map_fd; +};Ah, ok, now you're adding
bpf_link_struct_ops_map. I guess I'm now confused why you haven't done it in the first patch :-/
Quoted 5 lines
Quoted 1 line
Just won't to mix the libbpf part and kernel part in one patch.
Ah, shoot, I completely missed that it's libbpf. So in this case, can we use the same strategy for the kernel links? Instead of a union, have an outer struct +
container_of? If not, why not?
The reason I use container_of here is we need both FDs in libbpf to keep it as consistent with its existing behavior as possible. The value of the struct_ops map should be deleted if a bpf_link is detached.
Back to your question. We can go the container_of approach. Only concern I have is additional few bytes although it is not a big issue. I will move to this approach in the next version.
Quoted 118 lines
Quoted 118 lines
Quoted 5 lines
And what are these fake
bpf_links? Can you share more about it means?For the next version, I will detail it in the commit log. In a nutshell, before this point, there was no
bpf_linkforstruct_ops. Libbpf attempted to create an equivalent interface to other BPF programs by providing a simulatedbpf_linkinstead of a true one from the kernel; that fakebpf_linkstores FDs associated withstruct_opsmaps rather than realbpf_links.Quoted 104 lines
Quoted 103 lines
tools/lib/bpf/libbpf.c +19
-11+static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))return -errno;return 0 ; } -struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map) {struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i = 0; i < btf_vlen(st_ops->type); i++) {tools/lib/bpf/libbpf.c +35
-4@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) { +/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } + + fd =bpf_link_create (map->fd,-1 ,BPF_STRUCT_OPS_MAP ,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return libbpf_err_ptr (err); + } + + link->link.fd = fd; + link->map_fd = map->fd; + +return &link->link; }typedef enum
bpf_perf_event_ret(*bpf_perf_event_print_t)(structperf_event_header*hdr,
--
2.30.2
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
In reply to Kui-Feng LeeQuoted 18 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11433
Quoted 4 lines
tools/lib/bpf/libbpf.c +1
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; } +struct bpf_link_struct_ops_map {
let's drop the "_map" suffix? struct_ops is always a map, so no need to point this out
Quoted 23 lines
tools/lib/bpf/libbpf.c +18
-1+struct bpf_link link; +int map_fd; +}; +static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11464
Quoted 10 lines
tools/lib/bpf/libbpf.c +4
-1return -errno;return 0 ; } -struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map)
this is internal helper, so let's not use double underscores, just bpf_map_update_vdata()
Quoted 38 lines
tools/lib/bpf/libbpf.c +16
-10{struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i =0 ; i <btf_vlen (st_ops->type); i++) {@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11507
Quoted 10 lines
tools/lib/bpf/libbpf.c +2
-3free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) {
So this will always require a programmatic bpf_map__set_map_flags() call, there is currently no declarative way to do this, right?
Is there any way to avoid this BPF_F_LINK flag approach? How bad would it be if kernel just always created bpf_link-backed struct_ops?
Alternatively, should we think about SEC(".struct_ops.link") or something like that to instruct libbpf to add this BPF_F_LINK flag automatically?
Quoted 6 lines
tools/lib/bpf/libbpf.c +6
-0+/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } +
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
Quoted 5 lines · Andrii Nakryiko
So this will always require a programmatic
bpf_map__set_map_flags()call, there is currently no declarative way to do this, right?Is there any way to avoid this
BPF_F_LINKflag approach? How bad would it be if kernel just always created bpf_link-backedstruct_ops?
It still needs to support the per-link behavior.
Quoted 3 lines
Alternatively, should we think about
SEC(".struct_ops.link")or something like that to instruct libbpf to add thisBPF_F_LINKflag automatically?
I like this idea. Easier for users that is always link only. The users can also stay with SEC(".struct_ops") and decide later if BPF_F_LINK should be set depending on the runtime config and environment like kernel version...etc.
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
In reply to Andrii NakryikoQuoted 22 lines · Andrii Nakryiko
Quoted 21 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; }
Quoted 4 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11433
Quoted 1 line
tools/lib/bpf/libbpf.c +1
-0+struct bpf_link_struct_ops_map {let's drop the "
_map" suffix?struct_opsis always a map, so no need to point this out
Sure!
Quoted 29 lines
Quoted 29 lines
tools/lib/bpf/libbpf.c +18
-1+struct bpf_link link; +int map_fd; +}; +static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))return -errno;return 0 ; }
Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11464
Quoted 5 lines
tools/lib/bpf/libbpf.c +4
-1-struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map)this is internal helper, so let's not use double underscores, just
bpf_map_update_vdata()
Ok!
Quoted 53 lines
Quoted 39 lines
tools/lib/bpf/libbpf.c +16
-10{struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i =0 ; i <btf_vlen (st_ops->type); i++) {@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11507
Quoted 10 lines
tools/lib/bpf/libbpf.c +2
-3free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) {So this will always require a programmatic
bpf_map__set_map_flags()call, there is currently no declarative way to do this, right?
Quoted 6 lines
Is there any way to avoid this
BPF_F_LINKflag approach? How bad would it be if kernel just always created bpf_link-backedstruct_ops?Alternatively, should we think about
SEC(".struct_ops.link")or something like that to instruct libbpf to add thisBPF_F_LINKflag automatically?
Agree!
The other solution is to add a flag when declare a struct_ops.
SEC(".struct_ops")
tcp_congestion_ops ops = {
...
.flags = WITH_LINK,
}
Quoted 7 lines
Quoted 7 lines
tools/lib/bpf/libbpf.c +6
-0+/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } +
Re: [PATCH bpf-next 4/7] libbpf: Create a bpf_link in bpf_map__attach_struct_ops().
Quoted 135 lines · Kui-Feng Lee
Quoted 22 lines · Andrii Nakryiko
Quoted 21 lines · Kui-Feng Lee
bpf_map__attach_struct_ops()was creating a dummybpf_linkas a placeholder, but now it is constructing an authentic one by callingbpf_link_create()if the map has theBPF_F_LINKflag.You can flag a
struct_opsmap withBPF_F_LINKby callingbpf_map__set_map_flags().Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 73 +++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 15 deletions(-)tools/lib/bpf/libbpf.c +0
-0@@ -11430,29 +11430,41 @@ struct bpf_link *bpf_program__attach(const struct bpf_program *prog)return link; }Quoted 4 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11433
Quoted 1 line
tools/lib/bpf/libbpf.c +1
-0+struct bpf_link_struct_ops_map {let's drop the "
_map" suffix?struct_opsis always a map, so no need to point this outSure!
Quoted 29 lines
Quoted 29 lines
tools/lib/bpf/libbpf.c +18
-1+struct bpf_link link; +int map_fd; +}; +static int bpf_link__detach_struct_ops (struct bpf_link *link) { +struct bpf_link_struct_ops_map *st_link;__u32 zero =0 ; -if (bpf_map_delete_elem (link->fd, &zero)) + st_link = container_of(link, struct bpf_link_struct_ops_map, link); + +if (st_link->map_fd <0 ) { +/* Fake bpf_link */ +if (bpf_map_delete_elem (link->fd, &zero)) +return -errno; +return 0 ; + } + +if (bpf_map_delete_elem (st_link->map_fd, &zero)) +return -errno; + +if (close (link->fd))return -errno;return 0 ; }Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_program__attach(const struct bpf_program *prog) · line 11464
Quoted 5 lines
tools/lib/bpf/libbpf.c +4
-1-struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +/* +* Update the map with the prepared vdata. +*/ +static int bpf_map__update_vdata (const struct bpf_map *map)this is internal helper, so let's not use double underscores, just
bpf_map_update_vdata()Ok!
Quoted 53 lines
Quoted 39 lines
tools/lib/bpf/libbpf.c +16
-10{struct bpf_struct_ops *st_ops; -struct bpf_link *link;__u32 i, zero =0 ; -int err; - -if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) -return libbpf_err_ptr (-EINVAL ); - - link =calloc (1 ,sizeof (*link)); -if (!link) -return libbpf_err_ptr (-EINVAL ); st_ops = map->st_ops;for (i =0 ; i <btf_vlen (st_ops->type); i++) {@@ -11468,17 +11480,48 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) *(unsigned long *)kern_data = prog_fd; } - err =bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +return bpf_map_update_elem (map->fd, &zero, st_ops->kern_vdata,0 ); +} + +struct bpf_link *bpf_map__attach_struct_ops (const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return libbpf_err_ptr (-EINVAL ); + + link =calloc (1 ,sizeof (*link)); +if (!link) +return libbpf_err_ptr (-EINVAL ); + + err =bpf_map__update_vdata (map);if (err) { err = -errno;tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11507
Quoted 10 lines
tools/lib/bpf/libbpf.c +2
-3free (link);return libbpf_err_ptr (err); } - link->detach = bpf_link__detach_struct_ops; - link->fd = map->fd; + link->link.detach = bpf_link__detach_struct_ops; -return link; +if (!(map->def.map_flags &BPF_F_LINK )) {So this will always require a programmatic
bpf_map__set_map_flags()call, there is currently no declarative way to do this, right?Quoted 6 lines
Is there any way to avoid this
BPF_F_LINKflag approach? How bad would it be if kernel just always created bpf_link-backedstruct_ops?Alternatively, should we think about
SEC(".struct_ops.link")or something like that to instruct libbpf to add thisBPF_F_LINKflag automatically?Agree!
Quoted 8 lines
The other solution is to add a flag when declare a
struct_ops.SEC(".struct_ops") tcp_congestion_ops ops = { ... .flags = WITH_LINK, }
tcp_congestion_ops is defined in kernel and used by kernel internal code. I don't think randomly setting and passing extra flag is generic solution that will work for all struct_ops kinds.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tools/lib/bpf/libbpf.c +6
-0+/* Fake bpf_link */ + link->link.fd = map->fd; + link->map_fd =-1 ; +return &link->link; + } +
PATCH 5/7 bpf: Update the struct_ops of a bpf_link.
In reply to Kui-Feng LeeBy improving the BPF_LINK_UPDATE command of bpf(), it should allow you to conveniently switch between different struct_ops on a single bpf_link. This would enable smoother transitions from one struct_ops to another.
The struct_ops maps passing along with BPF_LINK_UPDATE should have the BPF_F_LINK flag.
--- include/linux/bpf.h | 1 + include/uapi/linux/bpf.h | 8 ++++-- kernel/bpf/bpf_struct_ops.c | 55 +++++++++++++++++++++++++++++++++++++ kernel/bpf/syscall.c | 31 +++++++++++++++++++++ net/ipv4/bpf_tcp_ca.c | 2 -- 5 files changed, 93 insertions(+), 4 deletions(-)
include/linux/bpf.h +1 -0
@@ -1408,6 +1408,7 @@ struct bpf_link_ops {void (*show_fdinfo)(const struct bpf_link *link,struct seq_file *seq);int (*fill_link_info)(const struct bpf_link *link,struct bpf_link_info *info); +int (*update_struct_ops)(struct bpf_link *link,struct bpf_map *new_map); };struct bpf_tramp_link {
include/uapi/linux/bpf.h +6 -2
@@ -1552,8 +1552,12 @@ union bpf_attr {struct {/* struct used by BPF_LINK_UPDATE command */ __u32 link_fd;/* link fd */ -/* new program fd to update link with */ -__u32 new_prog_fd; +union { +/* new program fd to update link with */ +__u32 new_prog_fd; +/* new struct_ops map fd to update link with */ +__u32 new_map_fd; + };__u32 flags;/* extra flags */ /* expected link's program fd; is specified only if * BPF_F_REPLACE flag is set in flags */
kernel/bpf/bpf_struct_ops.c +55 -0
66 lines not on this page · raw message
kernel/bpf/syscall.c +31 -0
@@ -4650,6 +4650,32 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr)return ret; } +#define BPF_LINK_UPDATE_STRUCT_OPS_LAST_FIELD link_update_struct_ops.new_map_fd + +static int link_update_struct_ops (struct bpf_link *link,union bpf_attr *attr) +{ +struct bpf_map *new_map; +int ret =0 ; + + new_map =bpf_map_get (attr->link_update.new_map_fd); +if (IS_ERR (new_map)) +return -EINVAL ; + +if (new_map->map_type !=BPF_MAP_TYPE_STRUCT_OPS ) { + ret = -EINVAL ; + goto out_put_map; + } + +if (link->ops->update_struct_ops) + ret = link->ops->update_struct_ops (link, new_map); +else + ret = -EINVAL ; + +out_put_map: +bpf_map_put (new_map); +return ret; +} +#define BPF_LINK_UPDATE_LAST_FIELD link_update.old_prog_fdstatic int link_update (union bpf_attr *attr)
@@ -4670,6 +4696,11 @@ static int link_update(union bpf_attr *attr)if (IS_ERR (link))return PTR_ERR (link); +if (link->type ==BPF_LINK_TYPE_STRUCT_OPS ) { + ret =link_update_struct_ops (link, attr); + goto out_put_link; + } + new_prog =bpf_prog_get (attr->link_update.new_prog_fd);if (IS_ERR (new_prog)) { ret =PTR_ERR (new_prog);
net/ipv4/bpf_tcp_ca.c +0 -2
@@ -239,8 +239,6 @@ static int bpf_tcp_ca_init_member(const struct btf_type *t,if (bpf_obj_name_cpy (tcp_ca->name, utcp_ca->name,sizeof (tcp_ca->name)) <=0 )return -EINVAL ; -if (tcp_ca_find (utcp_ca->name)) -return -EEXIST ;return 1 ; }
Signature · 1 line
2.30.2
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 5/7] bpf: Update the struct_ops of a bpf_link.
Quoted 46 lines · Kui-Feng Lee
kernel/bpf/bpf_struct_ops.c +38
-0@@ -752,11 +752,66 @@ static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link,return 0 ; } +static int bpf_struct_ops_map_link_update (struct bpf_link *link,struct bpf_map *new_map) +{ +struct bpf_struct_ops_value *kvalue; +struct bpf_struct_ops_map *st_map, *old_st_map; +struct bpf_map *old_map; +int err; + +if (new_map->map_type !=BPF_MAP_TYPE_STRUCT_OPS || !(new_map->map_flags &BPF_F_LINK )) +return -EINVAL ; + + old_map = link->map; + +/* It does nothing if the new map is the same as the old one. +* A struct_ops that backs a bpf_link can not be updated or +* its kvalue would be updated and causes inconsistencies. +*/ +if (old_map == new_map) +return 0 ; + +/* The new and old struct_ops must be the same type. */ + st_map = (struct bpf_struct_ops_map *)new_map; + old_st_map = (struct bpf_struct_ops_map *)old_map; +if (st_map->st_ops != old_st_map->st_ops) +return -EINVAL ; + +/* Assure the struct_ops is updated (has value) and not +* backing any other link. +*/ + kvalue = &st_map->kvalue; +if (kvalue->state !=BPF_STRUCT_OPS_STATE_INUSE || +refcount_read (&kvalue->refcnt) !=0 ) +return -EINVAL ; + +bpf_map_inc (new_map); +refcount_set (&kvalue->refcnt,1 ); + +set_memory_rox ((long )st_map->image,1 ); + err = st_map->st_ops->update (kvalue->data, old_st_map->kvalue.data);
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link, · line 802
Quoted 10 lines
kernel/bpf/bpf_struct_ops.c +10
-0+if (err) { +refcount_set (&kvalue->refcnt,0 ); + +set_memory_nx ((long )st_map->image,1 ); +set_memory_rw ((long )st_map->image,1 ); +bpf_map_put (new_map); +return err; + } + + link->map = new_map;
Similar here, does this link_update operation needs a lock?
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link, · line 814
Quoted 12 lines
kernel/bpf/bpf_struct_ops.c +7
-0+ +bpf_struct_ops_kvalue_put (&old_st_map->kvalue); + +return 0 ; +} +static const struct bpf_link_ops bpf_struct_ops_map_lops = { .release = bpf_struct_ops_map_link_release, .dealloc = bpf_struct_ops_map_link_dealloc, .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, .fill_link_info = bpf_struct_ops_map_link_fill_link_info, + .update_struct_ops = bpf_struct_ops_map_link_update,
This seems a little non-intuitive to add a struct_ops specific thing to the generic bpf_link_ops. May be avoid adding ".update_struct_ops" and directly call the bpf_struct_ops_map_link_update() from link_update()?
kernel/bpf/syscall.c static int link_create(union bpf_attr *attr, bpfptr_t uattr) · line 4653
Quoted 12 lines
kernel/bpf/bpf_struct_ops.c +0
-0};int link_create_struct_ops_map (union bpf_attr *attr,bpfptr_t uattr)kernel/bpf/syscall.c +1
-0@@ -4650,6 +4650,32 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr)return ret; } +#define BPF_LINK_UPDATE_STRUCT_OPS_LAST_FIELD link_update_struct_ops.new_map_fd
Why it is needed? Does it hit error without it?
Quoted 4 lines
kernel/bpf/syscall.c +4
-0+ +static int link_update_struct_ops (struct bpf_link *link,union bpf_attr *attr) +{ +struct bpf_map *new_map;
kernel/bpf/syscall.c static int link_create(union bpf_attr *attr, bpfptr_t uattr) · line 4667
Quoted 10 lines
kernel/bpf/syscall.c +10
-0+int ret =0 ; + + new_map =bpf_map_get (attr->link_update.new_map_fd); +if (IS_ERR (new_map)) +return -EINVAL ; + +if (new_map->map_type !=BPF_MAP_TYPE_STRUCT_OPS ) { + ret = -EINVAL ; + goto out_put_map; + }
How about BPF_F_REPLACE?
Quoted 30 lines
kernel/bpf/syscall.c +15
-0+ +if (link->ops->update_struct_ops) + ret = link->ops->update_struct_ops(link, new_map); > + else + ret = -EINVAL; + +out_put_map: +bpf_map_put (new_map); +return ret; +} +#define BPF_LINK_UPDATE_LAST_FIELD link_update.old_prog_fdstatic int link_update (union bpf_attr *attr)@@ -4670,6 +4696,11 @@ static int link_update(union bpf_attr *attr)if (IS_ERR (link))return PTR_ERR (link); +if (link->type ==BPF_LINK_TYPE_STRUCT_OPS ) { + ret =link_update_struct_ops (link, attr); + goto out_put_link; + } + new_prog =bpf_prog_get (attr->link_update.new_prog_fd);if (IS_ERR (new_prog)) { ret =PTR_ERR (new_prog);net/ipv4/bpf_tcp_ca.c +0
-0
net/ipv4/bpf_tcp_ca.c static int bpf_tcp_ca_init_member(const struct btf_type *t, · line 243
Quoted 5 lines
net/ipv4/bpf_tcp_ca.c +0
-2@@ -239,8 +239,6 @@ static int bpf_tcp_ca_init_member(const struct btf_type *t,if (bpf_obj_name_cpy (tcp_ca->name, utcp_ca->name,sizeof (tcp_ca->name)) <=0 )return -EINVAL ; -if (tcp_ca_find (utcp_ca->name)) -return -EEXIST ;
This change is not obvious. Please put some comment in the commit message about this change.
Re: [PATCH bpf-next 5/7] bpf: Update the struct_ops of a bpf_link.
Quoted 53 lines · Martin KaFai Lau
Quoted 52 lines · Kui-Feng Lee
kernel/bpf/bpf_struct_ops.c +42
-0@@ -752,11 +752,66 @@ static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link, return 0; } +static int bpf_struct_ops_map_link_update (struct bpf_link *link,struct bpf_map *new_map) +{ + struct bpf_struct_ops_value *kvalue; + struct bpf_struct_ops_map *st_map, *old_st_map; + struct bpf_map *old_map; + int err; + + if (new_map->map_type != BPF_MAP_TYPE_STRUCT_OPS || !(new_map->map_flags &BPF_F_LINK )) + return -EINVAL; + + old_map = link->map; + + /* It does nothing if the new map is the same as the old one. + * A struct_ops that backs a bpf_link can not be updated or + * its kvalue would be updated and causes inconsistencies. + */ + if (old_map == new_map) + return 0; + + /* The new and old struct_ops must be the same type. */ + st_map = (struct bpf_struct_ops_map *)new_map; + old_st_map = (struct bpf_struct_ops_map *)old_map; + if (st_map->st_ops != old_st_map->st_ops) + return -EINVAL; + + /* Assure the struct_ops is updated (has value) and not + * backing any other link. + */ + kvalue = &st_map->kvalue; + if (kvalue->state != BPF_STRUCT_OPS_STATE_INUSE || + refcount_read(&kvalue->refcnt) != 0) + return -EINVAL; + + bpf_map_inc(new_map); + refcount_set(&kvalue->refcnt, 1); + + set_memory_rox((long)st_map->image, 1); + err = st_map->st_ops->update(kvalue->data, old_st_map->kvalue.data); + if (err) { + refcount_set(&kvalue->refcnt, 0); + + set_memory_nx((long)st_map->image, 1);
Quoted 8 lines
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link, · line 802
Quoted 6 lines
kernel/bpf/bpf_struct_ops.c +6
-0+ set_memory_rw((long)st_map->image, 1); + bpf_map_put(new_map); + return err; + } + + link->map = new_map;Similar here, does this
link_updateoperation needs a lock?
The update function of tcp_ca checks if the name is unique with the protection of a lock. bpf_struct_ops_map_update_elem() also check and update state of the kvalue to prevent changing kvalue. Only one of thread will success to register or update at any moment.
Quoted 15 lines
kernel/bpf/bpf_struct_ops.c static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link, · line 814
Quoted 13 lines
kernel/bpf/bpf_struct_ops.c +7
-0+ + bpf_struct_ops_kvalue_put(&old_st_map->kvalue); + + return 0; +} + static const struct bpf_link_ops bpf_struct_ops_map_lops = { .release = bpf_struct_ops_map_link_release, .dealloc = bpf_struct_ops_map_link_dealloc, .show_fdinfo = bpf_struct_ops_map_link_show_fdinfo, .fill_link_info = bpf_struct_ops_map_link_fill_link_info, + .update_struct_ops = bpf_struct_ops_map_link_update,This seems a little non-intuitive to add a
struct_opsspecific thing to the genericbpf_link_ops. May be avoid adding ".update_struct_ops" and directly call thebpf_struct_ops_map_link_update()fromlink_update()?
It has .update_prog for BPF programs so .update_struct_ops or .update_map is not that weird for me. It would be better to have a .update_link to receive either a bpf_prog or bpf_map, and remove .update_prog.
Quoted 16 lines
Quoted 13 lines
kernel/bpf/bpf_struct_ops.c +0
-0};int
link_create_struct_ops_map(union bpf_attr *attr, bpfptr_t uattr)kernel/bpf/syscall.c +1
-0@@ -4650,6 +4650,32 @@ static int link_create(union bpf_attr *attr, bpfptr_t uattr) return ret; } +#define BPF_LINK_UPDATE_STRUCT_OPS_LAST_FIELD Quoted 1 line
link_update_struct_ops.new_map_fd
Why it is needed? Does it hit error without it?
It can be removed now.
Quoted 10 lines
Quoted 10 lines
kernel/bpf/syscall.c +2
-0+ +static int link_update_struct_ops(struct bpf_link *link, union
bpf_attr*attr)kernel/bpf/syscall.c +6
-0+{ + struct bpf_map *new_map; + int ret = 0; + + new_map = bpf_map_get(attr->link_update.new_map_fd); + if (IS_ERR(new_map))
Quoted 8 lines
Quoted 6 lines
+ return
-EINVAL;
+
+ if (new_map->map_type!=BPF_MAP_TYPE_STRUCT_OPS) { + ret =-EINVAL;
+ gotoout_put_map;
+ }How about
BPF_F_REPLACE?
Do you mean the new_map should be labeled with BPF_F_REPLACE to replace the old one?
Quoted 29 lines
Quoted 29 lines
kernel/bpf/syscall.c +10
-0+ + if (link->ops->update_struct_ops) + ret = link->ops->update_struct_ops(link, new_map); > + else + ret = -EINVAL; + +out_put_map: + bpf_map_put(new_map); + return ret; +} +#define
BPF_LINK_UPDATE_LAST_FIELDlink_update.old_prog_fd static intlink_update(union bpf_attr *attr)kernel/bpf/syscall.c +5
-0@@ -4670,6 +4696,11 @@ static int link_update(union bpf_attr *attr) if (IS_ERR(link)) return PTR_ERR(link); + if (link->type == BPF_LINK_TYPE_STRUCT_OPS) { + ret = link_update_struct_ops(link, attr); + goto out_put_link; + } + new_prog = bpf_prog_get(attr->link_update.new_prog_fd); if (IS_ERR(new_prog)) { ret = PTR_ERR(new_prog);net/ipv4/bpf_tcp_ca.c +0
-0@@ -239,8 +239,6 @@ static int bpf_tcp_ca_init_member(const struct
Quoted 9 lines
net/ipv4/bpf_tcp_ca.c static int bpf_tcp_ca_init_member(const struct btf_type *t, · line 243
Quoted 6 lines
net/ipv4/bpf_tcp_ca.c +0
-2btf_type *t, if (bpf_obj_name_cpy(tcp_ca->name, utcp_ca->name, sizeof(tcp_ca->name)) <= 0) return -EINVAL; - if (tcp_ca_find(utcp_ca->name)) - return -EEXIST;This change is not obvious. Please put some comment in the commit message about this change.
sure!
Martin KaFai Lau
reviewerRe: [PATCH bpf-next 5/7] bpf: Update the struct_ops of a bpf_link.
Quoted 53 lines · Kui-Feng Lee
Quoted 44 lines
Quoted 44 lines
+static int
bpf_struct_ops_map_link_update(struct bpf_link *link, struct bpf_map *new_map)kernel/bpf/bpf_struct_ops.c +7
-0+{ + struct bpf_struct_ops_value *kvalue; + struct bpf_struct_ops_map *st_map, *old_st_map; + struct bpf_map *old_map; + int err; + + if (new_map->map_type != BPF_MAP_TYPE_STRUCT_OPS || !(new_map->map_flags&
BPF_F_LINK))
+ return-EINVAL;kernel/bpf/bpf_struct_ops.c +33
-0+ + old_map = link->map; + + /* It does nothing if the new map is the same as the old one. + * A struct_ops that backs a bpf_link can not be updated or + * its kvalue would be updated and causes inconsistencies. + */ + if (old_map == new_map) + return 0; + + /* The new and old struct_ops must be the same type. */ + st_map = (struct bpf_struct_ops_map *)new_map; + old_st_map = (struct bpf_struct_ops_map *)old_map; + if (st_map->st_ops != old_st_map->st_ops) + return -EINVAL; + + /* Assure the struct_ops is updated (has value) and not + * backing any other link. + */ + kvalue = &st_map->kvalue; + if (kvalue->state != BPF_STRUCT_OPS_STATE_INUSE || + refcount_read(&kvalue->refcnt) != 0) + return -EINVAL; + + bpf_map_inc(new_map); + refcount_set(&kvalue->refcnt, 1); + + set_memory_rox((long)st_map->image, 1); + err = st_map->st_ops->update(kvalue->data, old_st_map->kvalue.data); + if (err) { + refcount_set(&kvalue->refcnt, 0); + + set_memory_nx((long)st_map->image, 1);Quoted 8 lines
Quoted 6 lines
+
set_memory_rw((long)st_map->image, 1);
+bpf_map_put(new_map);
+ return err;
+ }
+
+link->map=new_map;Similar here, does this
link_updateoperation needs a lock?
Quoted 1 line
The update function of
tcp_cachecks if the name is unique with the protection of a lock.bpf_struct_ops_map_update_elem()also check and update state of the kvalue to prevent changing kvalue. Only one of thread will success to register or update at any moment.
hmm... meaning the lock inside the "->update()" function? There are many variables outside of update() that this function (bpf_struct_ops_map_link_update) is setting and testing without a lock. eg. the succeeded thread will set refcnt to 1 while the failed thread will set it back to 0...
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
kernel/bpf/syscall.c +8
-0+ +static int link_update_struct_ops (struct bpf_link *link,union bpf_attr *attr) +{ + struct bpf_map *new_map; + int ret = 0; + + new_map = bpf_map_get(attr->link_update.new_map_fd); + if (IS_ERR(new_map))Quoted 8 lines
Quoted 6 lines
+ return
-EINVAL;
+
+ if (new_map->map_type!=BPF_MAP_TYPE_STRUCT_OPS) { + ret =-EINVAL;
+ gotoout_put_map;
+ }How about
BPF_F_REPLACE?
Quoted 1 line
Do you mean the
new_mapshould be labeled withBPF_F_REPLACEto replace the old one?
was asking if BPF_F_REPLACE is supported.
PATCH 6/7 libbpf: Update a bpf_link with another struct_ops.
In reply to Kui-Feng LeeIntroduce bpf_link__update_struct_ops(), which will allow you to effortlessly transition the struct_ops map of any given bpf_link into an alternative.
--- tools/lib/bpf/libbpf.c | 35 +++++++++++++++++++++++++++++++++++ tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + 3 files changed, 37 insertions(+)
tools/lib/bpf/libbpf.c +35 -0
@@ -11524,6 +11524,41 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)return &link->link; } +/* +* Swap the back struct_ops of a link with a new struct_ops map. +*/ +int bpf_link__update_struct_ops (struct bpf_link *link,const struct bpf_map *map) +{ +struct bpf_link_struct_ops_map *st_ops_link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return -EINVAL ; + +/* Ensure the type of a link is correct */ +if (link->detach != bpf_link__detach_struct_ops) +return -EINVAL ; + + err =bpf_map__update_vdata (map); +if (err) { + err = -errno; +free (link); +return err; + } + + fd =bpf_link_update (link->fd, map->fd,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return err; + } + + st_ops_link = container_of(link, struct bpf_link_struct_ops_map, link); + st_ops_link->map_fd = map->fd; + +return 0 ; +} +typedef enum bpf_perf_event_ret (*bpf_perf_event_print_t )(struct perf_event_header *hdr,void *private_data);
tools/lib/bpf/libbpf.h +1 -0
@@ -695,6 +695,7 @@ bpf_program__attach_freplace(const struct bpf_program *prog,struct bpf_map ; LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map); +LIBBPF_API int bpf_link__update_struct_ops(struct bpf_link *link, const struct bpf_map *map);struct bpf_iter_attach_opts {size_t sz;/* size of this struct for forward/backward compatibility */
tools/lib/bpf/libbpf.map +1 -0
@@ -373,6 +373,7 @@ LIBBPF_1.1.0 { global: bpf_btf_get_fd_by_id_opts; bpf_link_get_fd_by_id_opts; + bpf_link__update_struct_ops; bpf_map_get_fd_by_id_opts; bpf_prog_get_fd_by_id_opts; user_ring_buffer__discard;
Signature · 1 line
2.30.2
Re: [PATCH bpf-next 6/7] libbpf: Update a bpf_link with another struct_ops.
Quoted 17 lines · Kui-Feng Lee
Introduce
bpf_link__update_struct_ops(), which will allow you to effortlessly transition thestruct_opsmap of any givenbpf_linkinto an alternative.Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 35 +++++++++++++++++++++++++++++++++++ tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + 3 files changed, 37 insertions(+)tools/lib/bpf/libbpf.c +0
-0
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11530
Quoted 7 lines
tools/lib/bpf/libbpf.c +4
-0@@ -11524,6 +11524,41 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)return &link->link; } +/* +* Swap the back struct_ops of a link with a new struct_ops map. +*/ +int bpf_link__update_struct_ops (struct bpf_link *link,const struct bpf_map *map)
we have bpf_link__update_program(), and so the generic counterpart for map-based links would be bpf_link__update_map(). Let's call it that. And it shouldn't probably assume so much struct_ops specific things.
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11542
Quoted 12 lines
tools/lib/bpf/libbpf.c +12
-0+{ +struct bpf_link_struct_ops_map *st_ops_link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return -EINVAL ; + +/* Ensure the type of a link is correct */ +if (link->detach != bpf_link__detach_struct_ops) +return -EINVAL ; + + err =bpf_map__update_vdata (map);
it's a bit weird we do this at attach time, not when bpf_map is actually instantiated. Should we move this map contents initialization to bpf_object__load() phase? Same for bpf_map__attach_struct_ops(). What do we lose by doing it after all the BPF programs are loaded in load phase?
Quoted 27 lines
tools/lib/bpf/libbpf.c +19
-0+if (err) { + err = -errno; +free (link); +return err; + } + + fd =bpf_link_update (link->fd, map->fd,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return err; + } + + st_ops_link = container_of(link, struct bpf_link_struct_ops_map, link); + st_ops_link->map_fd = map->fd; + +return 0 ; +} +typedef enum bpf_perf_event_ret (*bpf_perf_event_print_t )(struct perf_event_header *hdr,void *private_data);tools/lib/bpf/libbpf.h +0
-0
tools/lib/bpf/libbpf.h bpf_program__attach_freplace(const struct bpf_program *prog, · line 698
Quoted 4 lines
tools/lib/bpf/libbpf.h +1
-0@@ -695,6 +695,7 @@ bpf_program__attach_freplace(const struct bpf_program *prog,struct bpf_map ; LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map); +LIBBPF_API int bpf_link__update_struct_ops(struct bpf_link *link, const struct bpf_map *map);
let's rename to bpf_link__update_map() and put it next to bpf_link__update_program() in libbpf.h
Quoted 8 lines
tools/lib/bpf/libbpf.h +0
-0struct bpf_iter_attach_opts {size_t sz;/* size of this struct for forward/backward compatibility */ tools/lib/bpf/libbpf.map +0
-0
tools/lib/bpf/libbpf.map LIBBPF_1.1.0 { · line 379
Quoted 7 lines
tools/lib/bpf/libbpf.map +1
-0@@ -373,6 +373,7 @@ LIBBPF_1.1.0 { global: bpf_btf_get_fd_by_id_opts; bpf_link_get_fd_by_id_opts; + bpf_link__update_struct_ops; bpf_map_get_fd_by_id_opts; bpf_prog_get_fd_by_id_opts; user_ring_buffer__discard;
we are in LIBBPF_1.2.0 already, please move
Quoted 3 lines
--
2.30.2
Re: [PATCH bpf-next 6/7] libbpf: Update a bpf_link with another struct_ops.
Quoted 21 lines · Andrii Nakryiko
Quoted 20 lines · Kui-Feng Lee
Introduce
bpf_link__update_struct_ops(), which will allow you to effortlessly transition thestruct_opsmap of any givenbpf_linkinto an alternative.Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 35 +++++++++++++++++++++++++++++++++++ tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + 3 files changed, 37 insertions(+)tools/lib/bpf/libbpf.c +0
-0@@ -11524,6 +11524,41 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)return &link->link; }
Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11530
Quoted 4 lines
tools/lib/bpf/libbpf.c +4
-0+/* +* Swap the back struct_ops of a link with a new struct_ops map. +*/ +int bpf_link__update_struct_ops (struct bpf_link *link,const struct bpf_map *map)we have
bpf_link__update_program(), and so the generic counterpart for map-based links would bebpf_link__update_map(). Let's call it that. And it shouldn't probably assume so muchstruct_opsspecific things.
Sure
Quoted 11 lines
Quoted 11 lines
tools/lib/bpf/libbpf.c +10
-0+{ +struct bpf_link_struct_ops_map *st_ops_link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return -EINVAL ; + +/* Ensure the type of a link is correct */ +if (link->detach != bpf_link__detach_struct_ops) +return -EINVAL ;
Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11542
Quoted 2 lines
tools/lib/bpf/libbpf.c +2
-0+ + err =bpf_map__update_vdata (map);it's a bit weird we do this at attach time, not when
bpf_mapis actually instantiated. Should we move this map contents initialization tobpf_object__load()phase? Same forbpf_map__attach_struct_ops(). What do we lose by doing it after all the BPF programs are loaded in load phase?
With the current behavior (w/o links), a struct_ops will be registered when updating its value. If we move bpf_map__update_vdata() to bpf_object__load(), a congestion control algorithm will be activated at the moment loading it before attaching it. However, we should activate an algorithm at attach time.
Quoted 58 lines
Quoted 28 lines
tools/lib/bpf/libbpf.c +19
-0+if (err) { + err = -errno; +free (link); +return err; + } + + fd =bpf_link_update (link->fd, map->fd,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return err; + } + + st_ops_link = container_of(link, struct bpf_link_struct_ops_map, link); + st_ops_link->map_fd = map->fd; + +return 0 ; +} +typedef enum bpf_perf_event_ret (*bpf_perf_event_print_t )(struct perf_event_header *hdr,void *private_data);tools/lib/bpf/libbpf.h +0
-0tools/lib/bpf/libbpf.h bpf_program__attach_freplace(const struct bpf_program *prog, · line 698
Quoted 4 lines
tools/lib/bpf/libbpf.h +1
-0@@ -695,6 +695,7 @@ bpf_program__attach_freplace(const struct bpf_program *prog,struct bpf_map ; LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map); +LIBBPF_API int bpf_link__update_struct_ops(struct bpf_link *link, const struct bpf_map *map);let's rename to
bpf_link__update_map()and put it next tobpf_link__update_program()inlibbpf.hQuoted 8 lines
tools/lib/bpf/libbpf.h +0
-0struct bpf_iter_attach_opts {size_t sz;/* size of this struct for forward/backward compatibility */ tools/lib/bpf/libbpf.map +0
-0tools/lib/bpf/libbpf.map LIBBPF_1.1.0 { · line 379
Quoted 7 lines
tools/lib/bpf/libbpf.map +1
-0@@ -373,6 +373,7 @@ LIBBPF_1.1.0 { global: bpf_btf_get_fd_by_id_opts; bpf_link_get_fd_by_id_opts; + bpf_link__update_struct_ops; bpf_map_get_fd_by_id_opts; bpf_prog_get_fd_by_id_opts; user_ring_buffer__discard;we are in LIBBPF_1.2.0 already, please move
Quoted 3 lines
--
2.30.2
Re: [PATCH bpf-next 6/7] libbpf: Update a bpf_link with another struct_ops.
Quoted 56 lines · Kui-Feng Lee
Quoted 21 lines · Andrii Nakryiko
Quoted 20 lines · Kui-Feng Lee
Introduce
bpf_link__update_struct_ops(), which will allow you to effortlessly transition thestruct_opsmap of any givenbpf_linkinto an alternative.Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 35 +++++++++++++++++++++++++++++++++++ tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + 3 files changed, 37 insertions(+)tools/lib/bpf/libbpf.c +0
-0@@ -11524,6 +11524,41 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)return &link->link; }Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11530
Quoted 4 lines
tools/lib/bpf/libbpf.c +4
-0+/* +* Swap the back struct_ops of a link with a new struct_ops map. +*/ +int bpf_link__update_struct_ops (struct bpf_link *link,const struct bpf_map *map)we have
bpf_link__update_program(), and so the generic counterpart for map-based links would bebpf_link__update_map(). Let's call it that. And it shouldn't probably assume so muchstruct_opsspecific things.Sure
Quoted 11 lines
Quoted 11 lines
tools/lib/bpf/libbpf.c +10
-0+{ +struct bpf_link_struct_ops_map *st_ops_link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return -EINVAL ; + +/* Ensure the type of a link is correct */ +if (link->detach != bpf_link__detach_struct_ops) +return -EINVAL ;Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11542
Quoted 2 lines
tools/lib/bpf/libbpf.c +2
-0+ + err =bpf_map__update_vdata (map);it's a bit weird we do this at attach time, not when
bpf_mapis actually instantiated. Should we move this map contents initialization tobpf_object__load()phase? Same forbpf_map__attach_struct_ops(). What do we lose by doing it after all the BPF programs are loaded in load phase?
Quoted 6 lines
With the current behavior (w/o links), a
struct_opswill be registered when updating its value. If we movebpf_map__update_vdata()tobpf_object__load(), a congestion control algorithm will be activated at the moment loading it before attaching it. However, we should activate an algorithm at attach time.
Of course. But I was thinking to move bpf_map_update_elem(map->fd, &zero, st_ops->kern_vdata, 0); part out of bpf_map__update_vdata() and make update_vdata() just prepare st_ops->kern_vdata only.
Quoted 59 lines
Quoted 59 lines
Quoted 29 lines
tools/lib/bpf/libbpf.c +19
-0+if (err) { + err = -errno; +free (link); +return err; + } + + fd =bpf_link_update (link->fd, map->fd,NULL ); +if (fd <0 ) { + err = -errno; +free (link); +return err; + } + + st_ops_link = container_of(link, struct bpf_link_struct_ops_map, link); + st_ops_link->map_fd = map->fd; + +return 0 ; +} +typedef enum bpf_perf_event_ret (*bpf_perf_event_print_t )(struct perf_event_header *hdr,void *private_data);tools/lib/bpf/libbpf.h +0
-0tools/lib/bpf/libbpf.h bpf_program__attach_freplace(const struct bpf_program *prog, · line 698
Quoted 4 lines
tools/lib/bpf/libbpf.h +1
-0@@ -695,6 +695,7 @@ bpf_program__attach_freplace(const struct bpf_program *prog,struct bpf_map ; LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map); +LIBBPF_API int bpf_link__update_struct_ops(struct bpf_link *link, const struct bpf_map *map);let's rename to
bpf_link__update_map()and put it next tobpf_link__update_program()inlibbpf.hQuoted 8 lines
tools/lib/bpf/libbpf.h +0
-0struct bpf_iter_attach_opts {size_t sz;/* size of this struct for forward/backward compatibility */ tools/lib/bpf/libbpf.map +0
-0tools/lib/bpf/libbpf.map LIBBPF_1.1.0 { · line 379
Quoted 7 lines
tools/lib/bpf/libbpf.map +1
-0@@ -373,6 +373,7 @@ LIBBPF_1.1.0 { global: bpf_btf_get_fd_by_id_opts; bpf_link_get_fd_by_id_opts; + bpf_link__update_struct_ops; bpf_map_get_fd_by_id_opts; bpf_prog_get_fd_by_id_opts; user_ring_buffer__discard;we are in LIBBPF_1.2.0 already, please move
Quoted 3 lines
--
2.30.2
Re: [PATCH bpf-next 6/7] libbpf: Update a bpf_link with another struct_ops.
Quoted 64 lines · Andrii Nakryiko
Quoted 56 lines · Kui-Feng Lee
Quoted 21 lines · Andrii Nakryiko
Quoted 20 lines · Kui-Feng Lee
Introduce
bpf_link__update_struct_ops(), which will allow you to effortlessly transition thestruct_opsmap of any givenbpf_linkinto an alternative.Signed-off-by Kui-Feng Lee <[email protected]>--- tools/lib/bpf/libbpf.c | 35 +++++++++++++++++++++++++++++++++++ tools/lib/bpf/libbpf.h | 1 + tools/lib/bpf/libbpf.map | 1 + 3 files changed, 37 insertions(+)tools/lib/bpf/libbpf.c +0
-0@@ -11524,6 +11524,41 @@ struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)return &link->link; }Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11530
Quoted 4 lines
tools/lib/bpf/libbpf.c +4
-0+/* +* Swap the back struct_ops of a link with a new struct_ops map. +*/ +int bpf_link__update_struct_ops (struct bpf_link *link,const struct bpf_map *map)we have
bpf_link__update_program(), and so the generic counterpart for map-based links would bebpf_link__update_map(). Let's call it that. And it shouldn't probably assume so muchstruct_opsspecific things.Sure
Quoted 11 lines
Quoted 11 lines
tools/lib/bpf/libbpf.c +10
-0+{ +struct bpf_link_struct_ops_map *st_ops_link; +int err, fd; + +if (!bpf_map__is_struct_ops (map) || map->fd ==-1 ) +return -EINVAL ; + +/* Ensure the type of a link is correct */ +if (link->detach != bpf_link__detach_struct_ops) +return -EINVAL ;Quoted 8 lines
tools/lib/bpf/libbpf.c struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map) · line 11542
Quoted 2 lines
tools/lib/bpf/libbpf.c +2
-0+ + err =bpf_map__update_vdata (map);it's a bit weird we do this at attach time, not when
bpf_mapis actually instantiated. Should we move this map contents initialization tobpf_object__load()phase? Same forbpf_map__attach_struct_ops(). What do we lose by doing it after all the BPF programs are loaded in load phase?Quoted 6 lines
With the current behavior (w/o links), a
struct_opswill be registered when updating its value. If we movebpf_map__update_vdata()tobpf_object__load(), a congestion control algorithm will be activated at the moment loading it before attaching it. However, we should activate an algorithm at attach time.
Quoted 3 lines
Of course. But I was thinking to move
bpf_map_update_elem(map->fd, &zero, st_ops->kern_vdata, 0);part out ofbpf_map__update_vdata()and makeupdate_vdata()just preparest_ops->kern_vdataonly.
Ok! I will rename it as bpf_map_prepare_vdata(), and call bpf_map_update_elem() separately.
PATCH 7/7 selftests/bpf: Test switching TCP Congestion Control algorithms.
In reply to Kui-Feng LeeCreate a pair of sockets that utilize the congestion control algorithm under a particular name. Then switch up this congestion control algorithm to another implementation and check whether newly created connections using the same cc name now run the new implementation.
--- .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 48 ++++++++++++ .../selftests/bpf/progs/tcp_ca_update.c | 75 +++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 tools/testing/selftests/bpf/progs/tcp_ca_update.c
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c +48 -0
@@ -8,6 +8,7 @@#include "bpf_dctcp.skel.h" #include "bpf_cubic.skel.h" #include "bpf_tcp_nogpl.skel.h" +#include "tcp_ca_update.skel.h" #include "bpf_dctcp_release.skel.h" #include "tcp_ca_write_sk_pacing.skel.h" #include "tcp_ca_incompl_cong_ops.skel.h"
@@ -381,6 +382,51 @@ static void test_unsupp_cong_op(void)libbpf_set_print (old_print_fn); } +static void test_update_ca (void ) +{ +struct tcp_ca_update *skel; +struct bpf_link *link; +int saved_ca1_cnt; +int err; + + skel =tcp_ca_update__open (); +if (!ASSERT_OK_PTR (skel,"open" )) +return ; + + err =bpf_map__set_map_flags (skel->maps.ca_update_1, +bpf_map__map_flags (skel->maps.ca_update_1) |BPF_F_LINK ); +if (!ASSERT_OK (err,"set_map_flags_1" )) +return ; + + err =bpf_map__set_map_flags (skel->maps.ca_update_2, +bpf_map__map_flags (skel->maps.ca_update_2) |BPF_F_LINK ); +if (!ASSERT_OK (err,"set_map_flags_2" )) +return ; + + err =tcp_ca_update__load (skel); +if (!ASSERT_OK (err,"load" )) { +tcp_ca_update__destroy (skel); +return ; + } + + link =bpf_map__attach_struct_ops (skel->maps.ca_update_1); +ASSERT_OK_PTR (link,"attach_struct_ops" ); + +do_test ("tcp_ca_update" ,NULL ); + saved_ca1_cnt = skel->bss->ca1_cnt; +ASSERT_GT (saved_ca1_cnt,0 ,"ca1_ca1_cnt" ); + + err =bpf_link__update_struct_ops (link, skel->maps.ca_update_2); +ASSERT_OK (err,"update_struct_ops" ); + +do_test ("tcp_ca_update" ,NULL ); +ASSERT_EQ (skel->bss->ca1_cnt, saved_ca1_cnt,"ca2_ca1_cnt" ); +ASSERT_GT (skel->bss->ca2_cnt,0 ,"ca2_ca2_cnt" ); + +bpf_link__destroy (link); +tcp_ca_update__destroy (skel); +} +void test_bpf_tcp_ca (void ) {if (test__start_subtest ("dctcp" ))
@@ -399,4 +445,6 @@ void test_bpf_tcp_ca(void)test_incompl_cong_ops ();if (test__start_subtest ("unsupp_cong_op" ))test_unsupp_cong_op (); +if (test__start_subtest ("update_ca" )) +test_update_ca (); }
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +75 -0
75 lines not on this page · raw message
Signature · 1 line
2.30.2
Re: [PATCH bpf-next 7/7] selftests/bpf: Test switching TCP Congestion Control algorithms.
Quoted 13 lines · Kui-Feng Lee
Create a pair of sockets that utilize the congestion control algorithm under a particular name. Then switch up this congestion control algorithm to another implementation and check whether newly created connections using the same cc name now run the new implementation.
Signed-off-by Kui-Feng Lee <[email protected]>--- .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 48 ++++++++++++ .../selftests/bpf/progs/tcp_ca_update.c | 75 +++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 tools/testing/selftests/bpf/progs/tcp_ca_update.c
[...]
Quoted 21 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +15
-0@@ -0,0 +1,75 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "vmlinux.h" + +#include <bpf/bpf_helpers.h> +#include <bpf/bpf_tracing.h> + +char _license[] SEC("license") = "GPL"; + +int ca1_cnt =0 ; +int ca2_cnt =0 ; + +#define USEC_PER_SEC 1000000UL + +#define min (a, b) ((a) < (b) ? (a) : (b))
tools/testing/selftests/bpf/progs/tcp_ca_update.c line 25
Quoted 10 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +10
-0+ +static inline struct tcp_sock *tcp_sk (const struct sock *sk) +{ +return (struct tcp_sock *)sk; +} + +SEC("struct_ops/ca_update_init") +void BPF_PROG (ca_update_init ,struct sock *sk) +{ +#ifdef ENABLE_ATOMICS_TESTS
it's been 2 years since atomics were added to Clang, I think it's fine to just assume atomic operations are supported and not do the ENABLE_ATOMICS_TEST (and I'd clean up ENABLE_ATOMICS_TESTS now as well)
Quoted 53 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +50
-1+__sync_bool_compare_and_swap (&sk->sk_pacing_status,SK_PACING_NONE , +SK_PACING_NEEDED ); +#else + sk->sk_pacing_status =SK_PACING_NEEDED ; +#endif +} + +SEC("struct_ops/ca_update_1_cong_control") +void BPF_PROG (ca_update_1_cong_control ,struct sock *sk, +const struct rate_sample *rs) +{ + ca1_cnt++; +} + +SEC("struct_ops/ca_update_2_cong_control") +void BPF_PROG (ca_update_2_cong_control ,struct sock *sk, +const struct rate_sample *rs) +{ + ca2_cnt++; +} + +SEC("struct_ops/ca_update_ssthresh") +__u32 BPF_PROG (ca_update_ssthresh ,struct sock *sk) +{ +return tcp_sk (sk)->snd_ssthresh; +} + +SEC("struct_ops/ca_update_undo_cwnd") +__u32 BPF_PROG (ca_update_undo_cwnd ,struct sock *sk) +{ +return tcp_sk (sk)->snd_cwnd; +} + +SEC(".struct_ops") +struct tcp_congestion_ops ca_update_1 = { + .init = (void *)ca_update_init, + .cong_control = (void *)ca_update_1_cong_control, + .ssthresh = (void *)ca_update_ssthresh, + .undo_cwnd = (void *)ca_update_undo_cwnd, + .name ="tcp_ca_update" , +}; + +SEC(".struct_ops") +struct tcp_congestion_ops ca_update_2 = { + .init = (void *)ca_update_init, + .cong_control = (void *)ca_update_2_cong_control, + .ssthresh = (void *)ca_update_ssthresh, + .undo_cwnd = (void *)ca_update_undo_cwnd, + .name ="tcp_ca_update" , +}; --2.30.2
Re: [PATCH bpf-next 7/7] selftests/bpf: Test switching TCP Congestion Control algorithms.
Quoted 45 lines · Andrii Nakryiko
Quoted 13 lines · Kui-Feng Lee
Create a pair of sockets that utilize the congestion control algorithm under a particular name. Then switch up this congestion control algorithm to another implementation and check whether newly created connections using the same cc name now run the new implementation.
Signed-off-by Kui-Feng Lee <[email protected]>--- .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 48 ++++++++++++ .../selftests/bpf/progs/tcp_ca_update.c | 75 +++++++++++++++++++ 2 files changed, 123 insertions(+)create mode 100644
tools/testing/selftests/bpf/progs/tcp_ca_update.c[...]
Quoted 28 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +22
-0@@ -0,0 +1,75 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "vmlinux.h" + +#include <bpf/bpf_helpers.h> +#include <bpf/bpf_tracing.h> + +char _license[] SEC("license") = "GPL"; + +int ca1_cnt =0 ; +int ca2_cnt =0 ; + +#define USEC_PER_SEC 1000000UL + +#define min (a, b) ((a) < (b) ? (a) : (b)) + +static inline struct tcp_sock *tcp_sk (const struct sock *sk) +{ +return (struct tcp_sock *)sk; +} + +SEC ("struct_ops/ca_update_init" )
Quoted 8 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c line 25
Quoted 3 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +3
-0+void BPF_PROG (ca_update_init ,struct sock *sk) +{ +#ifdef ENABLE_ATOMICS_TESTS it's been 2 years since atomics were added to Clang, I think it's fine to just assume atomic operations are supported and not do the
ENABLE_ATOMICS_TEST(and I'd clean upENABLE_ATOMICS_TESTSnow as well)
Sure!
Quoted 54 lines
Quoted 54 lines
tools/testing/selftests/bpf/progs/tcp_ca_update.c new file +50
-1+__sync_bool_compare_and_swap (&sk->sk_pacing_status,SK_PACING_NONE , +SK_PACING_NEEDED ); +#else + sk->sk_pacing_status =SK_PACING_NEEDED ; +#endif +} + +SEC("struct_ops/ca_update_1_cong_control") +void BPF_PROG (ca_update_1_cong_control ,struct sock *sk, +const struct rate_sample *rs) +{ + ca1_cnt++; +} + +SEC("struct_ops/ca_update_2_cong_control") +void BPF_PROG (ca_update_2_cong_control ,struct sock *sk, +const struct rate_sample *rs) +{ + ca2_cnt++; +} + +SEC("struct_ops/ca_update_ssthresh") +__u32 BPF_PROG (ca_update_ssthresh ,struct sock *sk) +{ +return tcp_sk (sk)->snd_ssthresh; +} + +SEC("struct_ops/ca_update_undo_cwnd") +__u32 BPF_PROG (ca_update_undo_cwnd ,struct sock *sk) +{ +return tcp_sk (sk)->snd_cwnd; +} + +SEC(".struct_ops") +struct tcp_congestion_ops ca_update_1 = { + .init = (void *)ca_update_init, + .cong_control = (void *)ca_update_1_cong_control, + .ssthresh = (void *)ca_update_ssthresh, + .undo_cwnd = (void *)ca_update_undo_cwnd, + .name ="tcp_ca_update" , +}; + +SEC(".struct_ops") +struct tcp_congestion_ops ca_update_2 = { + .init = (void *)ca_update_init, + .cong_control = (void *)ca_update_2_cong_control, + .ssthresh = (void *)ca_update_ssthresh, + .undo_cwnd = (void *)ca_update_undo_cwnd, + .name ="tcp_ca_update" , +}; --2.30.2