diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index f095a3b479d794b18c342454d523dbedea353a29..2b1bb606c638865516e01e481b49680acf5d126c 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -4481,7 +4481,7 @@ static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, break; case ixgbe_mac_82599EB: case ixgbe_mac_X540: - if (num_tcs == 8) { + if (num_tcs > 4) { if (tc < 3) { *tx = tc << 5; *rx = tc << 4; @@ -4492,7 +4492,7 @@ static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, *tx = ((tc + 8) << 3); *rx = tc << 4; } - } else if (num_tcs == 4) { + } else { *rx = tc << 5; switch (tc) { case 0: