]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ethtool-fail-with-error-if-request-has-unknown-flags'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:04:24 +0000 (02:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:04:24 +0000 (02:04 -0700)
commit7a8a0ef8764e91d8db8afe631f49a5acd2d3c1e5
tree50e6db43a35ff0a60dd39dda32e9d2a594502bb8
parentd316a81f25ec5d14558ef2561c64013d97652b21
parent0f4496ebc798fd01a3547b9f7f1f833267a612e3
Merge branch 'ethtool-fail-with-error-if-request-has-unknown-flags'

Michal Kubecek says:

====================
ethtool: fail with error if request has unknown flags

Jakub Kicinski pointed out that if unrecognized flags are set in netlink
header request, kernel shoud fail with an error rather than silently
ignore them so that we have more freedom in future flags semantics.

To help userspace with handling such errors, inform the client which
flags are supported by kernel. For that purpose, we need to allow
passing cookies as part of extack also in case of error (they can be
only passed on success now).
====================

Signed-off-by: David S. Miller <davem@davemloft.net>