netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] rtnetlink: use the new rtnl_get_event() interface
@ 2017-05-30 14:07 Vladislav Yasevich
  2017-05-30 14:14 ` David Ahern
  2017-05-31 17:08 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Vladislav Yasevich @ 2017-05-30 14:07 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, Vladislav Yasevich

Small clean-up to rtmsg_ifinfo() to use the rtnl_get_event()
interface instead of using 'internal' values directly.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
---
 net/core/rtnetlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 9da53e4..7084f1d 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2896,7 +2896,7 @@ static void rtmsg_ifinfo_event(int type, struct net_device *dev,
 void rtmsg_ifinfo(int type, struct net_device *dev, unsigned int change,
 		  gfp_t flags)
 {
-	rtmsg_ifinfo_event(type, dev, change, IFLA_EVENT_NONE, flags);
+	rtmsg_ifinfo_event(type, dev, change, rtnl_get_event(0), flags);
 }
 EXPORT_SYMBOL(rtmsg_ifinfo);
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] rtnetlink: use the new rtnl_get_event() interface
  2017-05-30 14:07 [PATCH net-next] rtnetlink: use the new rtnl_get_event() interface Vladislav Yasevich
@ 2017-05-30 14:14 ` David Ahern
  2017-05-31 17:08 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Ahern @ 2017-05-30 14:14 UTC (permalink / raw)
  To: Vladislav Yasevich, netdev; +Cc: Vladislav Yasevich

On 5/30/17 8:07 AM, Vladislav Yasevich wrote:
> Small clean-up to rtmsg_ifinfo() to use the rtnl_get_event()
> interface instead of using 'internal' values directly.
> 
> Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
> ---
>  net/core/rtnetlink.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: David Ahern <dsahern@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] rtnetlink: use the new rtnl_get_event() interface
  2017-05-30 14:07 [PATCH net-next] rtnetlink: use the new rtnl_get_event() interface Vladislav Yasevich
  2017-05-30 14:14 ` David Ahern
@ 2017-05-31 17:08 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-05-31 17:08 UTC (permalink / raw)
  To: vyasevich; +Cc: netdev, dsahern, vyasevic

From: Vladislav Yasevich <vyasevich@gmail.com>
Date: Tue, 30 May 2017 10:07:02 -0400

> Small clean-up to rtmsg_ifinfo() to use the rtnl_get_event()
> interface instead of using 'internal' values directly.
> 
> Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>

Applied, thanks Vlad.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-31 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-30 14:07 [PATCH net-next] rtnetlink: use the new rtnl_get_event() interface Vladislav Yasevich
2017-05-30 14:14 ` David Ahern
2017-05-31 17:08 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).