diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-06-13 00:57:06 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-06-13 01:07:38 +0100 |
commit | 1eef67710d3f7ddd4fc5ac601c6f2745f5358ba6 (patch) | |
tree | 0a8d4f67dde341f1d6ac2865b3864911aa31741a /stmmac.c | |
parent | 5c858e25fcc9737d4e866b2da78d4822fb2c2fec (diff) | |
download | ethtool-1eef67710d3f7ddd4fc5ac601c6f2745f5358ba6.tar.gz |
ethtool: Handle more errors when getting feature names
'ethtool -k eth0' generally works for unprivileged users, but in some
kernel versions ETHTOOL_GSSET_INFO wrongly returns -EPERM. We need
to fall back to the old offload operations in this case. Also, if
we get some other error code, report that before exiting.
Add regression test cases covering this and some other operations
that may fail (which were already handled correctly).
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'stmmac.c')
0 files changed, 0 insertions, 0 deletions