On 24/09/17 20:22, Jiri Pirko wrote: > From: Yotam Gigi <yot...@mellanox.com> > > Next commits will introduce MFC notifications through the atomic > fib_notification chain, thus allowing modules to be aware of MFC entries. > > Due to the fact that modules may need to hold a reference to an MFC entry, > add reference count to MFC entries to prevent them from being freed while > these modules use them. > > The reference counting is done only on resolved MFC entries currently. > > Signed-off-by: Yotam Gigi <yot...@mellanox.com> > Reviewed-by: Ido Schimmel <ido...@mellanox.com> > Signed-off-by: Jiri Pirko <j...@mellanox.com> > --- > v1->v2: > - Add comment for the mfc_cache.mfc_un.res.refcount field, similarly to > all other fields in the struct > --- > include/linux/mroute.h | 21 +++++++++++++++++++++ > net/ipv4/ipmr.c | 8 +++++--- > 2 files changed, 26 insertions(+), 3 deletions(-) >
Reviewed-by: Nikolay Aleksandrov <niko...@cumulusnetworks.com>