Ren Wei <[email protected]> wrote: > From: Haoze Xie <[email protected]> > > The bridge netfilter fake rtable is currently embedded in struct > net_bridge even though packets can keep using it after bridge teardown.
How? Please elaborate a bit, it is unexpected. > Give the fake rtable its own allocated lifetime and make > bridge_parent_rtable() return a referenced dst. This way the bridge and > any packets that still carry the fake dst each hold their own reference, > so bridge teardown no longer leaves a dangling fake dst behind. If we have to do this it would be better to move this kludge into br_netfilter.c completely and get rid of the fake rtable hack in bridge for good. Please also see various AI comments at https://sashiko.dev/#/patchset/783d76ac83917b7302c1ec647794bd773bb1875a.1778687139.git.royenheart%40gmail.com [ I would like to zap bridge_netfilter but it seems its too popular ... ]
