igb: Fix tx/rx_ring_count parameters for igb on suspend/resume/ring resize
commit68fd991020fdf51bc94327d288ae4ae5d0b8dced
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 20 Nov 2008 08:48:10 +0000 (20 00:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 08:48:10 +0000 (20 00:48 -0800)
treeff3f911ef077496ac3a4374c57ee97fe581590f5
parentb2d565365e02947699a8e3d594275662a8d00646
igb: Fix tx/rx_ring_count parameters for igb on suspend/resume/ring resize

When suspending the device the ring structure is freed which causes it to
loose track of the count.  To resolve this we need to move the ring count
outside of the ring structure and store it in the adapter struct.

In addition to resolving the suspend/resume issue this patch also addresses
issues seen in the event of memory allocation errors causing uneven ring
sizes on multiple queues.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb.h
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c