diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index c0c21b1ce1ec..6af54f2d0da0 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -718,6 +718,13 @@ static int fib_rules_event(struct notifier_block *this, unsigned long event, attach_rules(&ops->rules_list, dev); break; + case NETDEV_CHANGENAME: + list_for_each_entry(ops, &net->rules_ops, list) { + detach_rules(&ops->rules_list, dev); + attach_rules(&ops->rules_list, dev); + } + break; + case NETDEV_UNREGISTER: list_for_each_entry(ops, &net->rules_ops, list) detach_rules(&ops->rules_list, dev);