Skip to content

Commit

Permalink
bpf: avoid bitfield in maps
Browse files Browse the repository at this point in the history
Linux 6.11 seems to have a regression with bitfield in nested struct in maps: "map 'mimic_conns' has to have BTF in order to use bpf_spin_lock".
  • Loading branch information
hack3ric committed Oct 12, 2024
1 parent c0faf83 commit cbcd1e2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions common/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,10 @@ struct connection {
CONN_SYN_SENT,
CONN_SYN_RECV,
CONN_ESTABLISHED,
} state : 3;
__u8 cooldown_mul : 4;
bool keepalive_sent : 1;
bool initiator : 1;
__u32 : 23;
} state;
__u8 cooldown_mul;
bool keepalive_sent;
bool initiator;
};
struct {
struct filter_settings settings;
Expand Down

0 comments on commit cbcd1e2

Please sign in to comment.