|
@@ -4578,6 +4578,7 @@ static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
|
|
|
{
|
|
|
struct hwrm_func_qcfg_input req = {0};
|
|
|
struct hwrm_func_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
|
|
|
+ u16 flags;
|
|
|
int rc;
|
|
|
|
|
|
bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_QCFG, -1, -1);
|
|
@@ -4594,15 +4595,15 @@ static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
|
|
|
vf->vlan = le16_to_cpu(resp->vlan) & VLAN_VID_MASK;
|
|
|
}
|
|
|
#endif
|
|
|
- if (BNXT_PF(bp)) {
|
|
|
- u16 flags = le16_to_cpu(resp->flags);
|
|
|
-
|
|
|
- if (flags & (FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED |
|
|
|
- FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED))
|
|
|
- bp->flags |= BNXT_FLAG_FW_LLDP_AGENT;
|
|
|
- if (flags & FUNC_QCFG_RESP_FLAGS_MULTI_HOST)
|
|
|
- bp->flags |= BNXT_FLAG_MULTI_HOST;
|
|
|
- }
|
|
|
+ flags = le16_to_cpu(resp->flags);
|
|
|
+ if (flags & (FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED |
|
|
|
+ FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED)) {
|
|
|
+ bp->flags |= BNXT_FLAG_FW_LLDP_AGENT;
|
|
|
+ if (flags & FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED)
|
|
|
+ bp->flags |= BNXT_FLAG_FW_DCBX_AGENT;
|
|
|
+ }
|
|
|
+ if (BNXT_PF(bp) && (flags & FUNC_QCFG_RESP_FLAGS_MULTI_HOST))
|
|
|
+ bp->flags |= BNXT_FLAG_MULTI_HOST;
|
|
|
|
|
|
switch (resp->port_partition_type) {
|
|
|
case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR1_0:
|