bnxt_en: Check the FW_LLDP_AGENT flag before allowing DCBX host agent.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 22 Apr 2017 00:11:25 +0000 (20:11 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 17:54:47 +0000 (13:54 -0400)
Check the additional flag in bnxt_hwrm_func_qcfg() before allowing
DCBX to be done in host mode.

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 447ee3d27d21952980ce2031f12862abe940de18..9130628227e0bc26fe6b500ad8d623df4b1a77aa 100644 (file)
@@ -4483,7 +4483,8 @@ static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
        }
 #endif
        if (BNXT_PF(bp) && (le16_to_cpu(resp->flags) &
-                           FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED))
+                           (FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED |
+                            FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED)))
                bp->flags |= BNXT_FLAG_FW_LLDP_AGENT;
 
        switch (resp->port_partition_type) {