]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoe Jin <joe.jin@oracle.com>
Fri, 3 Feb 2012 01:15:53 +0000 (09:15 +0800)
commitc27ab2e858cac646ae5c8eed44b71ef1bb2366b0
treeda71f798e86fa5ae784b9526f321fd9cebaba8c3
parentb50e177a7c92a62e969fc76573567d2d2578d361
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>
(cherry picked from commit 1f4d51836f5e49f2e5201f1daf90239c04b3faf2)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c