search for: br_fdb_dynamic_learned

Displaying 2 results from an estimated 2 matches for "br_fdb_dynamic_learned".

2023 Jun 20
1
[Bridge] [PATCH net-next v2 2/3] bridge: Add a limit on learned FDB entries
...esn't > block all learning or requires a lock. At the time of writing v2, this seemed difficult because we want to test multiple bits and increment a counter, but remembering that clear_bit is never called for the bits I care about I came up with the following approach: a) Add a new flag BR_FDB_DYNAMIC_LEARNED, which is set to 1 iff BR_FDB_ADDED_BY_USER or BR_FDB_LOCAL are set in br_create. Every time BR_FDB_ADDED_BY_USER or BR_FDB_LOCAL is set, also clear BR_FDB_DYNAMIC_LEARNED, and decrement the count if it was 1 before. This solves the problem of testing two bits at once, and would...
2023 Jun 22
1
[Bridge] [PATCH net-next v2 2/3] bridge: Add a limit on learned FDB entries
...r requires a lock. > > At the time of writing v2, this seemed difficult because we want to test > multiple bits and increment a counter, but remembering that clear_bit > is never called for the bits I care about I came up with the following > approach: > > a) Add a new flag BR_FDB_DYNAMIC_LEARNED, which is set to 1 iff > BR_FDB_ADDED_BY_USER or BR_FDB_LOCAL are set in br_create. > Every time BR_FDB_ADDED_BY_USER or BR_FDB_LOCAL is set, also clear > BR_FDB_DYNAMIC_LEARNED, and decrement the count if it was 1 before. > This solves the problem of testing two bit...