i40e: Only enable TC0 for NIC partition type
authorNeerav Parikh <neerav.parikh@intel.com>
Tue, 24 Feb 2015 06:58:53 +0000 (06:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Mar 2015 09:07:30 +0000 (01:07 -0800)
commitfc51de96ed2f7fcefb99991200aac6710b769eba
treedb28ed46a599e3f807a1fbfc70f694f8edd4ba73
parent15d504b9464c87821db1e56f6d6774eb4ea929ea
i40e: Only enable TC0 for NIC partition type

In case of MFP mode the driver was returning incorrect number of TCs
for partitions that are not enabled for iSCSI. Though the driver does
not configure these TCs in the Tx scheduler for the NIC partitions;
it does use this map to setup the queue mappings.

This patch fixes this and keeps all the NIC partitions to the default
PF TC i.e. TC0.

Change-ID: Iede214c907e7bac1356e999049b9f642759512b3
Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c