diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-24 01:11:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-24 01:11:55 +0100 |
commit | 25b928645df760156a58aa707da56eae66a4ae77 (patch) | |
tree | 342a1f705da0bc7a594a89cf6f921bc59e075775 /pfinet/iioctl-ops.c | |
parent | 9c1bdc1b967b625dba29bdb68aa338f95e705399 (diff) |
Always set flags on ethernet interface
* pfinet/linux-src/net/core/dev.c (dev_change_flags): Call
ethernet_change_flags.
* pfinet/iioctl-ops.c (S_iioctl_siocsifflags): Do not call
ethernet_change_flags after calling dev_change_flags.
Diffstat (limited to 'pfinet/iioctl-ops.c')
-rw-r--r-- | pfinet/iioctl-ops.c | 6 |
1 files changed, 1 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); |