Searched hist:"40077 e0cf62206ac3c315b6991d8dcddb3703286" (Results 1 – 7 of 7) sorted by relevance
/linux/kernel/bpf/ |
H A D | lpm_trie.c | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | stackmap.c | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | arraymap.c | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | hashtab.c | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | syscall.c | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/include/linux/ |
H A D | bpf_types.h | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | bpf.h | diff 40077e0cf62206ac3c315b6991d8dcddb3703286 Tue Apr 11 15:34:58 CEST 2017 Johannes Berg <johannes.berg@intel.com> bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it.
In order to save duplicating the list, move it to the types header file added by the previous patch and include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
|