ixgbe: fix ring assignment issues for SR-IOV and drop cases
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 14 May 2011 01:16:02 +0000 (01:16 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 24 Jun 2011 05:46:37 +0000 (22:46 -0700)
commit1f4d51836f5e49f2e5201f1daf90239c04b3faf2
treee6bb9cd4125067201c9ec57961ebbeecf7d912dc
parent2ba279e2f72a9112a2536eabc8fae5413bbbdfb6
ixgbe: fix ring assignment issues for SR-IOV and drop cases

This change fixes the fact that we would trigger a null pointer dereference
or specify the wrong ring if the rings were restored.  This change makes
certain that the DROP queue is a static value, and all other rings are
based on the ring offsets for the PF.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c