]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9a0ee2ff0834f2b180fd6d3101fc1071272c723
treea02ccaba0abe4ed210fad7db085b14266a2d2160
parentffbe6db0c9b4dd84a361a117ddcd9c6fc418a1f3
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