nexthop.c (833a1065eeb14437a9a0dfa9dad06ea09894e0b5) | nexthop.c (ce7e9c8a080b6daca646a7740d916ed547503a12) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Generic nexthop implementation 3 * 4 * Copyright (c) 2017-19 Cumulus Networks 5 * Copyright (c) 2017-19 David Ahern <dsa@cumulusnetworks.com> 6 */ 7 8#include <linux/nexthop.h> --- 2104 unchanged lines hidden (view full) --- 2113 } 2114 return NOTIFY_DONE; 2115} 2116 2117static struct notifier_block nh_netdev_notifier = { 2118 .notifier_call = nh_netdev_event, 2119}; 2120 | 1// SPDX-License-Identifier: GPL-2.0 2/* Generic nexthop implementation 3 * 4 * Copyright (c) 2017-19 Cumulus Networks 5 * Copyright (c) 2017-19 David Ahern <dsa@cumulusnetworks.com> 6 */ 7 8#include <linux/nexthop.h> --- 2104 unchanged lines hidden (view full) --- 2113 } 2114 return NOTIFY_DONE; 2115} 2116 2117static struct notifier_block nh_netdev_notifier = { 2118 .notifier_call = nh_netdev_event, 2119}; 2120 |
2121int register_nexthop_notifier(struct net *net, struct notifier_block *nb) | 2121int register_nexthop_notifier(struct net *net, struct notifier_block *nb, 2122 struct netlink_ext_ack *extack) |
2122{ 2123 return blocking_notifier_chain_register(&net->nexthop.notifier_chain, 2124 nb); 2125} 2126EXPORT_SYMBOL(register_nexthop_notifier); 2127 2128int unregister_nexthop_notifier(struct net *net, struct notifier_block *nb) 2129{ --- 72 unchanged lines hidden --- | 2123{ 2124 return blocking_notifier_chain_register(&net->nexthop.notifier_chain, 2125 nb); 2126} 2127EXPORT_SYMBOL(register_nexthop_notifier); 2128 2129int unregister_nexthop_notifier(struct net *net, struct notifier_block *nb) 2130{ --- 72 unchanged lines hidden --- |