Dňa 16. januára 2012 16:13, Eric Dumazet [off-list ref] napísal/a:
Le lundi 16 janvier 2012 à 15:47 +0100, Štefan Gula a écrit :
quoted
File: net/birdge/br_fdb.c
Functions:
__br_fdb_get
br_fdb_get
My analogy fuctions:
__ipgre_tap_bridge_get
ipgre_tap_bridge_get
There is no br_fdb_get(), you copied some buggy code I am afraid.
Read again your patch.
If you use atomic_inc_not_zero(&x->use_count), then you must do the
atomic_dec() or leak entries.
Current bridge code doesnt use atomic_inc_not_zero()
You are right, new bridge code doesn't have such function, I will adjust that