ionic: add decode for IONIC_RC_ENOSUPP
authorShannon Nelson <snelson@pensando.io>
Tue, 17 Mar 2020 03:22:10 +0000 (20:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 04:18:25 +0000 (21:18 -0700)
Add decoding for a new firmware error code.

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

index e4a76e6..c5e3d76 100644 (file)
@@ -58,6 +58,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code)
                return "IONIC_RC_BAD_ADDR";
        case IONIC_RC_DEV_CMD:
                return "IONIC_RC_DEV_CMD";
+       case IONIC_RC_ENOSUPP:
+               return "IONIC_RC_ENOSUPP";
        case IONIC_RC_ERROR:
                return "IONIC_RC_ERROR";
        case IONIC_RC_ERDMA:
@@ -76,6 +78,7 @@ static int ionic_error_to_errno(enum ionic_status_code code)
        case IONIC_RC_EQTYPE:
        case IONIC_RC_EQID:
        case IONIC_RC_EINVAL:
+       case IONIC_RC_ENOSUPP:
                return -EINVAL;
        case IONIC_RC_EPERM:
                return -EPERM;