bnxt_en: Set MASTER flag during driver registration.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 18 Nov 2019 08:56:39 +0000 (03:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:13:28 +0000 (17:13 -0800)
The Linux driver is capable of being the master function to handle
resets, so we set the flag to let firmware know.  Some other
drivers, such as DPDK, is not capable and will not set the flag.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index b081a55..178490c 100644 (file)
@@ -4441,7 +4441,8 @@ static int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp)
        flags = FUNC_DRV_RGTR_REQ_FLAGS_16BIT_VER_MODE |
                FUNC_DRV_RGTR_REQ_FLAGS_HOT_RESET_SUPPORT;
        if (bp->fw_cap & BNXT_FW_CAP_ERROR_RECOVERY)
-               flags |= FUNC_DRV_RGTR_REQ_FLAGS_ERROR_RECOVERY_SUPPORT;
+               flags |= FUNC_DRV_RGTR_REQ_FLAGS_ERROR_RECOVERY_SUPPORT |
+                        FUNC_DRV_RGTR_REQ_FLAGS_MASTER_SUPPORT;
        req.flags = cpu_to_le32(flags);
        req.ver_maj_8b = DRV_VER_MAJ;
        req.ver_min_8b = DRV_VER_MIN;