File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -168,23 +168,23 @@ struct bpf_map {
168
168
u32 key_size ;
169
169
u32 value_size ;
170
170
u32 max_entries ;
171
- u32 map_flags ;
172
171
u64 map_extra ; /* any per-map-type extra fields */
172
+ u32 map_flags ;
173
173
int spin_lock_off ; /* >=0 valid offset, <0 error */
174
174
int timer_off ; /* >=0 valid offset, <0 error */
175
175
u32 id ;
176
176
int numa_node ;
177
177
u32 btf_key_type_id ;
178
178
u32 btf_value_type_id ;
179
+ u32 btf_vmlinux_value_type_id ;
179
180
struct btf * btf ;
180
181
#ifdef CONFIG_MEMCG_KMEM
181
182
struct mem_cgroup * memcg ;
182
183
#endif
183
184
char name [BPF_OBJ_NAME_LEN ];
184
- u32 btf_vmlinux_value_type_id ;
185
185
bool bypass_spec_v1 ;
186
186
bool frozen ; /* write-once; write-protected by freeze_mutex */
187
- /* 22 bytes hole */
187
+ /* 14 bytes hole */
188
188
189
189
/* The 3rd and 4th cacheline with misc members to avoid false sharing
190
190
* particularly with refcounting.
Original file line number Diff line number Diff line change @@ -5662,6 +5662,7 @@ struct bpf_map_info {
5662
5662
__u32 btf_id ;
5663
5663
__u32 btf_key_type_id ;
5664
5664
__u32 btf_value_type_id ;
5665
+ __u32 :32 ; /* alignment pad */
5665
5666
__u64 map_extra ;
5666
5667
} __attribute__((aligned (8 )));
5667
5668
Original file line number Diff line number Diff line change @@ -5662,6 +5662,7 @@ struct bpf_map_info {
5662
5662
__u32 btf_id ;
5663
5663
__u32 btf_key_type_id ;
5664
5664
__u32 btf_value_type_id ;
5665
+ __u32 :32 ; /* alignment pad */
5665
5666
__u64 map_extra ;
5666
5667
} __attribute__((aligned (8 )));
5667
5668
You can’t perform that action at this time.
0 commit comments