diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2022-10-28 10:42:21 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-01 02:10:21 +0100 |
commit | 1d997f1013079c05b642c739901e3584a3ae558d (patch) | |
tree | da4284d4c659d2654f9b3b48a022452cfe6baeb7 /net/ipv4/ip_gre.c | |
parent | net: dpaa2: Add some debug prints on deferred probe (diff) | |
download | linux-1d997f1013079c05b642c739901e3584a3ae558d.tar.xz linux-1d997f1013079c05b642c739901e3584a3ae558d.zip |
rtnetlink: pass netlink message header and portid to rtnl_configure_link()
This patch pass netlink message header and portid to rtnl_configure_link()
All the functions in this call chain need to add the parameters so we can
use them in the last call rtnl_notify(), and notify the userspace about
the new link info if NLM_F_ECHO flag is set.
- rtnl_configure_link()
- __dev_notify_flags()
- rtmsg_ifinfo()
- rtmsg_ifinfo_event()
- rtmsg_ifinfo_build_skb()
- rtmsg_ifinfo_send()
- rtnl_notify()
Also move __dev_notify_flags() declaration to net/core/dev.h, as Jakub
suggested.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r-- | net/ipv4/ip_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index f866d6282b2b..d8ee5238c395 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -1665,7 +1665,7 @@ struct net_device *gretap_fb_dev_create(struct net *net, const char *name, if (err) goto out; - err = rtnl_configure_link(dev, NULL); + err = rtnl_configure_link(dev, NULL, 0, NULL); if (err < 0) goto out; |