aboutsummaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2022-03-02 18:31:19 +0200
committerDavid S. Miller <davem@davemloft.net>2022-03-03 10:37:22 +0000
commit216e690631f5c95a4bdde5d1237025edfe61bbf6 (patch)
treee79e87a9c082f0dc324b54e06d399bd10fceb43a /usr
parent05415bccbb09a4eb0a3d57e7edfea73d4ce15b74 (diff)
net: rtnetlink: rtnl_fill_statsinfo(): Permit non-EMSGSIZE error returns
Obtaining stats for the IFLA_STATS_LINK_OFFLOAD_XSTATS nest involves a HW access, and can fail for more reasons than just netlink message size exhaustion. Therefore do not always return -EMSGSIZE on the failure path, but respect the error code provided by the callee. Set the error explicitly where it is reasonable to assume -EMSGSIZE as the failure reason. Signed-off-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions