]> 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)
commit82d8b540eedaf2915d22f450c0f1881bd9a2415e
tree9bd6dea5afa846d60e7c3ab00e6599ef7d7cccdd
parent57493267476619275fbfe1eb3b3d590d1dd7d52f
parent0f1f17f2cf9c8a58476a09c20c3ce2f2147f1f1d
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>