diff options
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/iioctl-ops.c | 6 | ||||
-rw-r--r-- | pfinet/linux-src/net/core/dev.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/pfinet/iioctl-ops.c b/pfinet/iioctl-ops.c index 9904b9b3..67776809 100644 --- a/pfinet/iioctl-ops.c +++ b/pfinet/iioctl-ops.c @@ -188,11 +188,7 @@ S_iioctl_siocsifflags (io_t port, else if (!dev) err = ENODEV; else - { - err = dev_change_flags (dev, flags); - if (!err) - err = ethernet_change_flags (dev, flags); - } + err = dev_change_flags (dev, flags); pthread_mutex_unlock (&global_lock); end_using_socket_port (user); diff --git a/pfinet/linux-src/net/core/dev.c b/pfinet/linux-src/net/core/dev.c index 92e105a1..ff16e827 100644 --- a/pfinet/linux-src/net/core/dev.c +++ b/pfinet/linux-src/net/core/dev.c @@ -1452,6 +1452,9 @@ int dev_change_flags(struct device *dev, unsigned flags) dev_set_allmulti(dev, inc); } + if (!ret) + ret = ethernet_change_flags(dev, dev->flags); + return ret; } |