Merge branch 'net-sched-offload-failure-error-reporting'
authorDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 12:45:44 +0000 (13:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 12:45:44 +0000 (13:45 +0100)
commit85b15c268f29263658dc9e9dff5847be935d4f0f
tree9bd6dea5afa846d60e7c3ab00e6599ef7d7cccdd
parent4a778f3d53df3c8582d7417d9ea62bb8d099446a
parentfd23e0e250c6a7a7fd8a2ec9ab4253299471c163
Merge branch 'net-sched-offload-failure-error-reporting'

Ido Schimmel says:

====================
net/sched: Better error reporting for offload failures

This patchset improves error reporting to user space when offload fails
during the flow action setup phase. That is, when failures occur in the
actions themselves, even before calling device drivers. Requested /
reported in [1].

This is done by passing extack to the offload_act_setup() callback and
making use of it in the various actions.

Patches #1-#2 change matchall and flower to log error messages to user
space in accordance with the verbose flag.

Patch #3 passes extack to the offload_act_setup() callback from the
various call sites, including matchall and flower.

Patches #4-#11 make use of extack in the various actions to report
offload failures.

Patch #12 adds an error message when the action does not support offload
at all.

Patches #13-#14 change matchall and flower to stop overwriting more
specific error messages.

[1] https://lore.kernel.org/netdev/20220317185249.5mff5u2x624pjewv@skbuf/
====================

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