|
@@ -2503,6 +2503,9 @@ static int tun_device_event(struct notifier_block *unused,
|
|
struct net_device *dev = netdev_notifier_info_to_dev(ptr);
|
|
struct net_device *dev = netdev_notifier_info_to_dev(ptr);
|
|
struct tun_struct *tun = netdev_priv(dev);
|
|
struct tun_struct *tun = netdev_priv(dev);
|
|
|
|
|
|
|
|
+ if (dev->rtnl_link_ops != &tun_link_ops)
|
|
|
|
+ return NOTIFY_DONE;
|
|
|
|
+
|
|
switch (event) {
|
|
switch (event) {
|
|
case NETDEV_CHANGE_TX_QUEUE_LEN:
|
|
case NETDEV_CHANGE_TX_QUEUE_LEN:
|
|
if (tun_queue_resize(tun))
|
|
if (tun_queue_resize(tun))
|