hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/ipv4/fib_notifier.c
....@@ -9,12 +9,12 @@
99 #include <net/netns/ipv4.h>
1010 #include <net/ip_fib.h>
1111
12
-int call_fib4_notifier(struct notifier_block *nb, struct net *net,
12
+int call_fib4_notifier(struct notifier_block *nb,
1313 enum fib_event_type event_type,
1414 struct fib_notifier_info *info)
1515 {
1616 info->family = AF_INET;
17
- return call_fib_notifier(nb, net, event_type, info);
17
+ return call_fib_notifier(nb, event_type, info);
1818 }
1919
2020 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
....@@ -34,17 +34,16 @@
3434 return net->ipv4.fib_seq + fib4_rules_seq_read(net);
3535 }
3636
37
-static int fib4_dump(struct net *net, struct notifier_block *nb)
37
+static int fib4_dump(struct net *net, struct notifier_block *nb,
38
+ struct netlink_ext_ack *extack)
3839 {
3940 int err;
4041
41
- err = fib4_rules_dump(net, nb);
42
+ err = fib4_rules_dump(net, nb, extack);
4243 if (err)
4344 return err;
4445
45
- fib_notify(net, nb);
46
-
47
- return 0;
46
+ return fib_notify(net, nb, extack);
4847 }
4948
5049 static const struct fib_notifier_ops fib4_notifier_ops_template = {