ixgbe: Update the logic for ixgbe_cache_ring_dcb and DCB RSS configuration
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 22 Jun 2012 06:46:33 +0000 (06:46 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 18 Jul 2012 01:56:50 +0000 (18:56 -0700)
commit4ae63730bb420610cb99ed152d6daa35236cc9e9
treee99f652b8840d68ca9b0499c8cffd2ad0d7ad1fe
parentac802f5dfe56139a288df50c89c820412863cd8a
ixgbe: Update the logic for ixgbe_cache_ring_dcb and DCB RSS configuration

This change cleans up some of the logic in an attempt to try and simplify
things for how we are configuring DCB w/ RSS.

In this patch I basically did 3 things.  I updated the logic for getting
the first register index.  I applied the fact that all TCs get the same
number of queues to simplify the looping logic in caching the DCB ring
register.  Finally I updated how we configure the RQTC register to match
the fact that all TCs are assigned the same number of queues.

Cc: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c