Merge branch 'netlink-support-reporting-missing-attributes'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 30 Aug 2022 10:20:47 +0000 (12:20 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Aug 2022 10:22:26 +0000 (12:22 +0200)
commit11bc150daa5f3e6428a0bb632705eb697e2969c0
tree538e3562c5ab93d0c5b94c86a7b9bb5477fa7013
parent47cf88993c910840d565631ad906abdca9168231
parent4f5059e62921479610de903857857ff82ac7e57f
Merge branch 'netlink-support-reporting-missing-attributes'

Jakub Kicinski says:

====================
netlink: support reporting missing attributes

This series adds support for reporting missing attributes
in a structured way. We communicate the type of the missing
attribute and if it was missing inside a nest the offset
of that nest.

Example of (YAML-based) user space reporting ethtool header
missing:

 Kernel error: missing attribute: .header

I was tempted to integrate the check with the policy
but it seems tricky without doing a full scan, and there
may be a ton of attrs in the policy. So leaving that
for later.
====================

Link: https://lore.kernel.org/r/20220826030935.2165661-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>