]> git.baikalelectronics.ru Git - kernel.git/commit
dev: always advertise rx_flags changes via netlink
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 25 Sep 2013 10:02:45 +0000 (12:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 19:08:13 +0000 (15:08 -0400)
commit63e864fe8ee57b7374188c2745ffa69b38515be1
tree30a883054bf34f8f4d8b52506bc8b844ddd30b83
parent17958259903517b952d96e51124d0df7ff5afe07
dev: always advertise rx_flags changes via netlink

When flags IFF_PROMISC and IFF_ALLMULTI are changed, netlink messages are not
consistent. For example, if a multicast daemon is running (flag IFF_ALLMULTI
set in dev->flags but not dev->gflags, ie not exported to userspace) and then a
user sets it via netlink (flag IFF_ALLMULTI set in dev->flags and dev->gflags, ie
exported to userspace), no netlink message is sent.
Same for IFF_PROMISC and because dev->promiscuity is exported via
IFLA_PROMISCUITY, we may send a netlink message after each change of this
counter.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c