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)
commit23c394819deb4eb642b60bbd5b3eef181e65cd8f
tree50e6db43a35ff0a60dd39dda32e9d2a594502bb8
parentef299cc3fa1a9e1288665a9fdc8bff55629fd359
parent2363d73a2f3e92787f336721c40918ba2eb0c74c
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>