Lines Matching refs:test_bit
74 return !test_bit(BR_FDB_STATIC, &fdb->flags) && in has_expired()
75 !test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags) && in has_expired()
89 if (test_bit(BR_FDB_LOCAL, &fdb->flags)) in fdb_to_nud()
91 else if (test_bit(BR_FDB_STATIC, &fdb->flags)) in fdb_to_nud()
122 if (test_bit(BR_FDB_OFFLOADED, &fdb->flags)) in fdb_fill_info()
124 if (test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags)) in fdb_fill_info()
126 if (test_bit(BR_FDB_STICKY, &fdb->flags)) in fdb_fill_info()
144 if (test_bit(BR_FDB_NOTIFY, &fdb->flags)) { in fdb_fill_info()
150 if (test_bit(BR_FDB_NOTIFY_INACTIVE, &fdb->flags)) in fdb_fill_info()
319 if (test_bit(BR_FDB_STATIC, &f->flags)) in fdb_delete()
372 if (f && test_bit(BR_FDB_LOCAL, &f->flags) && in br_fdb_find_delete_local()
373 !test_bit(BR_FDB_ADDED_BY_USER, &f->flags) && f->dst == p) in br_fdb_find_delete_local()
421 if (test_bit(BR_FDB_LOCAL, &fdb->flags)) in fdb_add_local()
448 if (f->dst == p && test_bit(BR_FDB_LOCAL, &f->flags) && in br_fdb_changeaddr()
449 !test_bit(BR_FDB_ADDED_BY_USER, &f->flags)) { in br_fdb_changeaddr()
490 if (f && test_bit(BR_FDB_LOCAL, &f->flags) && in br_fdb_change_mac_address()
491 !f->dst && !test_bit(BR_FDB_ADDED_BY_USER, &f->flags)) in br_fdb_change_mac_address()
506 if (f && test_bit(BR_FDB_LOCAL, &f->flags) && in br_fdb_change_mac_address()
507 !f->dst && !test_bit(BR_FDB_ADDED_BY_USER, &f->flags)) in br_fdb_change_mac_address()
532 if (test_bit(BR_FDB_STATIC, &f->flags) || in br_fdb_cleanup()
533 test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &f->flags)) { in br_fdb_cleanup()
534 if (test_bit(BR_FDB_NOTIFY, &f->flags)) { in br_fdb_cleanup()
569 if (!test_bit(BR_FDB_STATIC, &f->flags)) in br_fdb_flush()
593 if (test_bit(BR_FDB_STATIC, &f->flags) || in br_fdb_delete_by_port()
594 (test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &f->flags) && in br_fdb_delete_by_port()
595 !test_bit(BR_FDB_OFFLOADED, &f->flags)) || in br_fdb_delete_by_port()
599 if (test_bit(BR_FDB_LOCAL, &f->flags)) in br_fdb_delete_by_port()
673 fe->is_local = test_bit(BR_FDB_LOCAL, &f->flags); in br_fdb_fillbuf()
674 if (!test_bit(BR_FDB_STATIC, &f->flags)) in br_fdb_fillbuf()
699 return !!(test_bit(BR_FDB_NOTIFY_INACTIVE, &fdb->flags) && in __fdb_mark_active()
715 if (unlikely(test_bit(BR_FDB_LOCAL, &fdb->flags))) { in br_fdb_update()
730 !test_bit(BR_FDB_STICKY, &fdb->flags))) { in br_fdb_update()
735 if (unlikely(test_bit(BR_FDB_ADDED_BY_EXT_LEARN, in br_fdb_update()
741 if (unlikely(test_bit(BR_FDB_ADDED_BY_USER, &flags))) in br_fdb_update()
937 if (is_sticky != test_bit(BR_FDB_STICKY, &fdb->flags)) { in fdb_add_entry()
1170 if (!test_bit(BR_FDB_STATIC, &f->flags)) in br_fdb_sync_static()
1184 if (!test_bit(BR_FDB_STATIC, &tmp->flags)) in br_fdb_sync_static()
1203 if (!test_bit(BR_FDB_STATIC, &f->flags)) in br_fdb_unsync_static()
1247 if (test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags)) { in br_fdb_external_learn_add()
1250 } else if (!test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags)) { in br_fdb_external_learn_add()
1282 if (fdb && test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags)) in br_fdb_external_learn_del()
1300 if (fdb && offloaded != test_bit(BR_FDB_OFFLOADED, &fdb->flags)) in br_fdb_offloaded_set()