android_kernel_xiaomi_sm8350/drivers/net/igb
Alexander Duyck 68fd991020 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>
2008-11-20 00:48:10 -08:00
..
e1000_82575.c
e1000_82575.h
e1000_defines.h
e1000_hw.h
e1000_mac.c
e1000_mac.h
e1000_nvm.c
e1000_nvm.h
e1000_phy.c
e1000_phy.h
e1000_regs.h
igb_ethtool.c igb: Fix tx/rx_ring_count parameters for igb on suspend/resume/ring resize 2008-11-20 00:48:10 -08:00
igb_main.c igb: Fix tx/rx_ring_count parameters for igb on suspend/resume/ring resize 2008-11-20 00:48:10 -08:00
igb.h igb: Fix tx/rx_ring_count parameters for igb on suspend/resume/ring resize 2008-11-20 00:48:10 -08:00
Makefile