]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Avoid duplicate netlink notification when changing link state
authorThomas Graf <tgraf@suug.ch>
Tue, 5 Jun 2007 23:03:03 +0000 (16:03 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Jun 2007 20:40:56 +0000 (13:40 -0700)
commit4ff59390f32c5cb7e5c778f90aff5422224f78ca
tree9d20c7db4e50ece976c89d23e2fb1671ebc17cb0
parent1bd893a5b29bab8742bcfb18e3907c6c509a9c7d
[NET]: Avoid duplicate netlink notification when changing link state

When changing the link state from userspace not affecting any other
flags. Two duplicate notification are being sent, once as action
in the NETDEV_UP/NETDEV_DOWN notification chain and a second time
when comparing old and new device flags after the change has been
completed. Although harmless, the duplicates should be avoided.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c