[RTNETLINK]: Send a single notification on device state changes.
authorLaszlo Attila Toth <panther@balabit.hu>
Wed, 13 Feb 2008 06:42:09 +0000 (22:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2008 06:42:09 +0000 (22:42 -0800)
commit45b503548210fe6f23e92b856421c2a3f05fd034
treed4cacc5e468c2d2fa0e504c05d50f4e42d3bc6af
parent370125f0a48a2584a2506fd567d690df6d87cf2c
[RTNETLINK]: Send a single notification on device state changes.

In do_setlink() a single notification is sent at the end of the
function if any modification occured. If the address has been changed,
another notification is sent.

Both of them is required because originally only the NETDEV_CHANGEADDR
notification was sent and although device state change implies address
change, some programs may expect the original notification. It remains
for compatibity.

If set_operstate() is called from do_setlink(), it doesn't send a
notification, only if it is called from rtnl_create_link() as earlier.

Signed-off-by: Laszlo Attila Toth <panther@balabit.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c