ethtool: report missing header via ext_ack in the default handler
authorJakub Kicinski <kuba@kernel.org>
Fri, 26 Aug 2022 03:09:35 +0000 (20:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Aug 2022 10:20:43 +0000 (12:20 +0200)
commit4f5059e62921479610de903857857ff82ac7e57f
tree538e3562c5ab93d0c5b94c86a7b9bb5477fa7013
parent08d1d0e78440aa8670492a01cabea732d4beabf5
ethtool: report missing header via ext_ack in the default handler

The actual presence check for the header is in
ethnl_parse_header_dev_get() but it's a few layers in,
and already has a ton of arguments so let's just pick
the low hanging fruit and check for missing header in
the default request handler.

Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ethtool/netlink.c