bnxt_en: Fix enables field in HWRM_QUEUE_COS2BW_CFG request
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Fri, 5 Oct 2018 04:26:01 +0000 (00:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 04:41:16 +0000 (21:41 -0700)
commit5db0e0969af6501ad45fe0494039d3b9c797822b
treeb069515368af1eaa93c0a87e04770641ec8c7bff
parentdbe80d446c859873820eedfff4abc61c71f1927b
bnxt_en: Fix enables field in HWRM_QUEUE_COS2BW_CFG request

In HWRM_QUEUE_COS2BW_CFG request, enables field should have the bits
set only for the queue ids which are having the valid parameters.

This causes firmware to return error when the TC to hardware CoS queue
mapping is not 1:1 during DCBNL ETS setup.

Fixes: 2e8ef77ee0ff ("bnxt_en: Add TC to hardware QoS queue mapping logic.")
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_dcb.c