]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rtnetlink-dev-notification-fixes'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 19:48:45 +0000 (20:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 19:48:45 +0000 (20:48 +0100)
commitba59057894a446037b5044ac87a7ed77f6e8ef8e
tree4b80407f2aeec8fe39378ac2d39e31488726af38
parent3609869c81f576a01cbce3e61a2b092eede7b875
parentfa3f8245c52fd2793f66698ea9e26a8517efe87a
Merge branch 'rtnetlink-dev-notification-fixes'

Xin Long says:

====================
rtnetlink: a bunch of fixes for userspace notifications in changing dev properties

Whenever any property of a link, address, route, etc. changes by whatever way,
kernel should notify the programs that listen for such events in userspace.

The patchet "rtnetlink: Cleanup user notifications for netdev events" tried to
fix a redundant notifications issue, but it also introduced a side effect.

After that, user notifications could only be sent when changing dev properties
via netlink api. As it removed some events process in rtnetlink_event where
the notifications was sent to users.

It resulted in no notification generated when dev properties are changed via
other ways, like ioctl, sysfs, etc. It may cause some user programs doesn't
work as expected because of the missing notifications.

This patchset will fix it by bringing some of these netdev events back and
also fix the old redundant notifications issue with a proper way.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>