ethtool uselessly tries to retrieve setting from a nonexistent device

From: David Guyot <hidden>
Date: 2017-07-17 12:43:09

Hello, there.

I noticed a behavior of ethtool 4.8, as used in Debian Stretch, which
could be improved: when I query a nonexistent device, ethtool tries to
retrieve all its settings, even if the first test returns "No such
device". In that case, ethtool should immediatly stop, only saying no
such device, and not calling functions which results are already known.

Hoping my remark is not too naive,

Regards.
-- 
David Guyot
Administrateur système / Sysadmin
Europe Camions Interactive / Stockway
Moulin Collot F-88500 Ambacourt
Tél : +33 (0)3 29 30 47 85

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help