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>
Esse commit está contido em:
@@ -1240,6 +1240,7 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr)
|
||||
}
|
||||
memcpy(&state(hdlc)->settings, &new_settings, size);
|
||||
dev->type = ARPHRD_FRAD;
|
||||
call_netdevice_notifiers(NETDEV_POST_TYPE_CHANGE, dev);
|
||||
return 0;
|
||||
|
||||
case IF_PROTO_FR_ADD_PVC:
|
||||
|
Referência em uma nova issue
Block a user