OSDN Git Service

bnxt_en: Remap TC to hardware queues when configuring PFC.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Apr 2018 21:44:32 +0000 (17:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:47:28 +0000 (14:47 -0400)
commitd31cd579a45c44ede9e56c2f6d33537ba395a49b
treea02ccaba0abe4ed210fad7db085b14266a2d2160
parent2e8ef77ee0ff1117251a48f79d2d57d65afd0495
bnxt_en: Remap TC to hardware queues when configuring PFC.

Initially, the MQPRIO TCs are mapped 1:1 directly to the hardware
queues.  Some of these hardware queues are configured to be lossless.
When PFC is enabled on one of more TCs, we now need to remap the
TCs that have PFC enabled to the lossless hardware queues.

After remapping, we need to close and open the NIC for the new
mapping to take effect.  We also need to reprogram all ETS parameters.

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