]> 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)
commit6eda357564b21f9142c8f0fe0b6fcc6fceb42bfe
tree7b7e3de286880cf4938c00803df3a1ec32d22997
parentf833f7b1b5b0fde9993ad687076c4dd2285f316c
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