bnxt_en: Add support for upgrading APE/NC-SI firmware via Ethtool FLASHDEV
authorRob Swindell <swindell@broadcom.com>
Sun, 27 Dec 2015 23:19:20 +0000 (18:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2015 05:57:28 +0000 (00:57 -0500)
NC-SI firmware of type apeFW (10) is now supported.

Signed-off-by: Rob Swindell <swindell@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index 45bd628eaf3aa5b2051511c4b20f93782b481503..ea94450ab91e3425fc00ca28e52408e6e2eed62c 100644 (file)
@@ -818,6 +818,9 @@ static int bnxt_flash_firmware(struct net_device *dev,
        case BNX_DIR_TYPE_BOOTCODE_2:
                code_type = CODE_BOOT;
                break;
+       case BNX_DIR_TYPE_APE_FW:
+               code_type = CODE_MCTP_PASSTHRU;
+               break;
        default:
                netdev_err(dev, "Unsupported directory entry type: %u\n",
                           dir_type);