]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4be884ffe7eafe8c3e524b7f11219f6a4b3b72ac
tree9bd6dea5afa846d60e7c3ab00e6599ef7d7cccdd
parent21c099d61920e78acfda4001b5af841d3c3c99d7
parentdf82b3ed45f3a03cd47f0b12ec185be87833423e
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>