diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-12-03 21:12:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-05 17:41:42 -0500 |
commit | 2f8364a291e8adde25c93f97a76abbcaf4b1ed3f (patch) | |
tree | 7b7e3de286880cf4938c00803df3a1ec32d22997 /include/linux/hdlc.h | |
parent | ff3516442768f0babe7ea2db62e34aee1d76e969 (diff) | |
download | op-kernel-dev-2f8364a291e8adde25c93f97a76abbcaf4b1ed3f.zip op-kernel-dev-2f8364a291e8adde25c93f97a76abbcaf4b1ed3f.tar.gz |
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>
Diffstat (limited to 'include/linux/hdlc.h')
-rw-r--r-- | include/linux/hdlc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hdlc.h b/include/linux/hdlc.h index 1acb144..e31bcd4 100644 --- a/include/linux/hdlc.h +++ b/include/linux/hdlc.h @@ -101,7 +101,7 @@ netdev_tx_t hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev); int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto, size_t size); /* May be used by hardware driver to gain control over HDLC device */ -void detach_hdlc_protocol(struct net_device *dev); +int detach_hdlc_protocol(struct net_device *dev); static __inline__ __be16 hdlc_type_trans(struct sk_buff *skb, struct net_device *dev) |