bnxt_en: Fix ring arithmetic in bnxt_setup_tc().
authorMichael Chan <michael.chan@broadcom.com>
Fri, 11 Nov 2016 05:11:42 +0000 (00:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 17:37:31 +0000 (12:37 -0500)
commit3ffb6a39b751b635a0c50b650064c38b8d371ef2
tree147563c3fa4c932bcf83445534458f7a37fb962a
parent7b5b74efcca00f15c2aec1dc7175bfe34b6ec643
bnxt_en: Fix ring arithmetic in bnxt_setup_tc().

The logic is missing the check on whether the tx and rx rings are sharing
completion rings or not.

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