aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2011-07-18 18:38:25 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-29 04:12:45 -0400
commit4fa2e0e178b23819283839b64dcb56f0f259ba39 (patch)
tree4825c5c48aced9aa1a8380ee7228012e33005c78 /drivers/net/ethernet
parent09dca476e3201baac2dcbddc857b83aa25cbdf2e (diff)
ixgbe: fixup remaining call sites for arbitrary TCs
One existing call sites still expect either 4 or 8 traffic classes to be specified. This fixes this allowing arbitrary values up to 8 to work as expected. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index f095a3b479d7..2b1bb606c638 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,
4481 break; 4481 break;
4482 case ixgbe_mac_82599EB: 4482 case ixgbe_mac_82599EB:
4483 case ixgbe_mac_X540: 4483 case ixgbe_mac_X540:
4484 if (num_tcs == 8) { 4484 if (num_tcs > 4) {
4485 if (tc < 3) { 4485 if (tc < 3) {
4486 *tx = tc << 5; 4486 *tx = tc << 5;
4487 *rx = tc << 4; 4487 *rx = tc << 4;
@@ -4492,7 +4492,7 @@ static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc,
4492 *tx = ((tc + 8) << 3); 4492 *tx = ((tc + 8) << 3);
4493 *rx = tc << 4; 4493 *rx = tc << 4;
4494 } 4494 }
4495 } else if (num_tcs == 4) { 4495 } else {
4496 *rx = tc << 5; 4496 *rx = tc << 5;
4497 switch (tc) { 4497 switch (tc) {
4498 case 0: 4498 case 0: