2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 22:24:09 +08:00
linux-next/drivers/net/ethernet/intel
Mitch Williams d732a18445 i40evf: fix crash when changing ring sizes
i40evf_set_ringparam was broken in several ways. First, it only changed
the size of the first ring, and second, changing the ring size would
often result in a panic because it would change the count before
deallocating resources, causing the driver to either free nonexistent
buffers, or leak leftover buffers.

Fix this by storing the descriptor count in the adapter structure, and
updating the count for each ring each time we allocate them. This
ensures that we always free the right size ring, and always end up with
the requested count when the device is (re)opened.

Change-ID: I298396cd3d452ba8509d9f2d33a93f25868a9a55
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-06-05 02:13:01 -07:00
..
e1000 e1000: Use time_after() for time comparison 2014-06-03 23:58:06 -07:00
e1000e e1000e: Out of line __ew32_prepare/__ew32 2014-05-27 02:10:44 -07:00
i40e i40e: clamp jumbo frame size 2014-06-05 01:58:31 -07:00
i40evf i40evf: fix crash when changing ring sizes 2014-06-05 02:13:01 -07:00
igb igb: add defaults for i210 TX/RX PBSIZE 2014-06-03 23:57:53 -07:00
igbvf i40e,igb,ixgbe: remove usless return statements 2014-05-23 05:28:46 -07:00
ixgb net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
ixgbe ixgbe: remove linux/export.h header from ixgbe_ptp.c 2014-06-03 23:56:22 -07:00
ixgbevf net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
e100.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
Kconfig i40e: add DCB option to Kconfig 2014-01-17 19:13:04 -08:00
Makefile i40evf: add driver to kernel build system 2013-12-31 16:27:49 -08:00