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)
commit8c9d956ab6fbd10413398eeb81f433b07c1c23d7
tree1f472ebc47c330833bbb9628272aced122221bb6
parent9b0b6ba6226e02def72e3b6985989c2d6b9c69e2
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