From: David Ahern <dsahern@gmail.com>
To: Vladislav Yasevich <vyasevich@gmail.com>, netdev@vger.kernel.org
Cc: roopa@cumulusnetworks.com, jiri@resnulli.us, vfalico@gmail.com,
andy@greyhouse.net, Vladislav Yasevich <vyasevic@redhat.com>
Subject: Re: [PATCH V6 net-next 1/2] rtnl: Add support for netdev event to link messages
Date: Sat, 27 May 2017 15:41:28 -0600 [thread overview]
Message-ID: <f05c6d50-ff95-6057-b2e5-bcc0c447b0c8@gmail.com> (raw)
In-Reply-To: <1495894476-9726-2-git-send-email-vyasevic@redhat.com>
On 5/27/17 8:14 AM, Vladislav Yasevich wrote:
> 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>
> ---
> include/linux/rtnetlink.h | 3 +-
> include/uapi/linux/if_link.h | 11 ++++++++
> net/core/dev.c | 2 +-
> net/core/rtnetlink.c | 65 ++++++++++++++++++++++++++++++++++++++------
> 4 files changed, 70 insertions(+), 11 deletions(-)
Acked-by: David Ahern <dsahern@gmail.com>
next prev parent reply other threads:[~2017-05-27 21:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-27 14:14 [PATCH V6 net-next 0/2] rtnetlink: Updates to rtnetlink_event() Vladislav Yasevich
2017-05-27 14:14 ` [PATCH V6 net-next 1/2] rtnl: Add support for netdev event to link messages Vladislav Yasevich
2017-05-27 21:41 ` David Ahern [this message]
2017-05-27 14:14 ` [PATCH V6 net-next 2/2] bonding: Prevent duplicate userspace notification Vladislav Yasevich
2017-05-27 21:41 ` David Ahern
2017-05-27 14:14 ` [PATCH V6 net-next iproute] ip: Add support for netdev events to monitor Vladislav Yasevich
2017-05-30 14:22 ` David Ahern
2017-05-30 17:12 ` Stephen Hemminger
2017-05-30 18:26 ` Vlad Yasevich
2017-05-31 20:27 ` Vlad Yasevich
2017-05-27 22:52 ` [PATCH V6 net-next 0/2] rtnetlink: Updates to rtnetlink_event() David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f05c6d50-ff95-6057-b2e5-bcc0c447b0c8@gmail.com \
--to=dsahern@gmail.com \
--cc=andy@greyhouse.net \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=roopa@cumulusnetworks.com \
--cc=vfalico@gmail.com \
--cc=vyasevic@redhat.com \
--cc=vyasevich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).