]> git.baikalelectronics.ru Git - kernel.git/commit
WAN: HDLC: Call notifiers before and after changing device type
authorAndrew Lunn <andrew@lunn.ch>
Thu, 3 Dec 2015 20:12:31 +0000 (21:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Dec 2015 22:41:42 +0000 (17:41 -0500)
commita1215429e1b41af5b2ab49645673bdd3190c147c
tree7b7e3de286880cf4938c00803df3a1ec32d22997
parente86f51d8902f885f04d9a6702c8c784003ea9589
WAN: HDLC: Call notifiers before and after changing device type

An HDLC device can change type when the protocol driver is changed.
Calling the notifier change allows potential users of the interface
know about this planned change, and even block it. After the change
has occurred, send a second notification to users can evaluate the new
device type etc.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc.c
drivers/net/wan/hdlc_cisco.c
drivers/net/wan/hdlc_fr.c
drivers/net/wan/hdlc_ppp.c
drivers/net/wan/hdlc_raw.c
drivers/net/wan/hdlc_raw_eth.c
drivers/net/wan/hdlc_x25.c
include/linux/hdlc.h