]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: Add support for netdev event to link messages
authorVlad Yasevich <vyasevich@gmail.com>
Sat, 27 May 2017 14:14:34 +0000 (10:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 May 2017 22:51:41 +0000 (18:51 -0400)
commit92af09c841f0ed41c9446a9597b5719cc7265c87
tree7ce9936b3dec86669b1fdc7723a3344892f95127
parente25f73d08c63930358b1a5841aa757cec4e88f66
rtnl: Add support for netdev event to link messages

When netdev events happen, a rtnetlink_event() handler will send
messages for every event in it's white list.  These messages contain
current information about a particular device, but they do not include
the iformation about which event just happened.  So, it is impossible
to tell what just happend for these events.

This patch adds a new extension to RTM_NEWLINK message called IFLA_EVENT
that would have an encoding of event that triggered this
message.  This would allow the the message consumer to easily determine
if it needs to perform certain actions.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rtnetlink.h
include/uapi/linux/if_link.h
net/core/dev.c
net/core/rtnetlink.c