net: add fib_rules_ops to flush_cache method
This is required to pass namespace context into rt_cache_flush called from ->flush_cache. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
76e6ebfb40
commit
ae299fc051
@ -69,7 +69,7 @@ static void rules_ops_put(struct fib_rules_ops *ops)
|
||||
static void flush_route_cache(struct fib_rules_ops *ops)
|
||||
{
|
||||
if (ops->flush_cache)
|
||||
ops->flush_cache();
|
||||
ops->flush_cache(ops);
|
||||
}
|
||||
|
||||
int fib_rules_register(struct fib_rules_ops *ops)
|
||||
|
Reference in New Issue
Block a user