commit | 21a567fd6ef3ec87386db9c119d411f13399fe95 | [log] [tgz] |
---|---|---|
author | Paul Stewart <pstew@chromium.org> | Thu Jun 11 18:31:10 2015 -0700 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Sat Jun 13 01:26:40 2015 +0000 |
tree | 2d154135061082032bcf73a7fe4198255c9ffb03 | |
parent | adc93b416f6e4fdb1d758af61904f595e677c49b [diff] |
shill: RTNLHandler: Ignore ENODEV in SetInterfaceFlags Ignore ENODEV ("No such device") if asked to bring an interface down (IFF_UP flag is not set) in SetInterfaceFlags. This allows error-free operation when an unplugged device is being cleaned up. BUG=chromium:498908 TEST=Unit tests (for regressions) TEST="rmmod asix; modprobe asix; grep 'No such device' /var/log/messages" TEST="/usr/local/lib/flimflam/test/disable-device eth0" TEST=Make sure "UP" flag does not appear in output of "ifconfig eth0" Change-Id: Ie3ba41554d2c295e8ce3fc26861268c9c481443d Reviewed-on: https://chromium-review.googlesource.com/277137 Reviewed-by: mukesh agrawal <quiche@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org>