bnxt_en: Do not use the CNP CoS queue for networking traffic.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 5 Aug 2018 20:51:58 +0000 (16:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:08:26 +0000 (17:08 -0700)
commitaabfc016e9a6db2a8c2da815fc84bfd5a2e8d221
treed77a39d7b0563edf6a7e24a4f3ca9242ca3070ae
parentafdc8a84844a2163e25ad735f9f69d220ae02529
bnxt_en: Do not use the CNP CoS queue for networking traffic.

The CNP CoS queue is reserved for internal RDMA Congestion Notification
Packets (CNP) and should not be used for a TC.  Modify the CoS queue
discovery code to skip over the CNP CoS queue and to reduce
bp->max_tc accordingly.  However, if RDMA is disabled in NVRAM, the
the CNP CoS queue can be used for a TC.

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
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h