]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: allow adminq requests to override default error message
authorShannon Nelson <snelson@pensando.io>
Sat, 9 Oct 2021 18:45:22 +0000 (11:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Oct 2021 09:42:47 +0000 (10:42 +0100)
commit8808b8e5d3cc3cba3d526ee18b9fbd5ff0f49a10
tree1f472ebc47c330833bbb9628272aced122221bb6
parent67b7382f3a22205e4c1ef53af4a4233df9bb6490
ionic: allow adminq requests to override default error message

The AdminQ handler has an error handler that automatically prints
an error message when the request has failed.  However, there are
situations where the caller can expect that it might fail and has
an alternative strategy, thus may not want the error message sent
to the log, such as hitting -ENOSPC when adding a new vlan id.

We add a new interface to the AdminQ API to allow for override of
the default behavior, and an interface to the use standard error
message formatting.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic.h
drivers/net/ethernet/pensando/ionic/ionic_main.c
drivers/net/ethernet/pensando/ionic/ionic_phc.c