diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-09-11 22:59:16 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:54:57 -0400 |
commit | c431f97ef96026e6da7032a871a0789cf5a2eaea (patch) | |
tree | 40e3fcc159d95916bb8a4071fe10f46b01f54d46 /drivers/net/ixgbe/ixgbe.h | |
parent | b95f5fcb8ba6073a652927d232a7a7cb552afe62 (diff) |
ixgbe: fix ring reallocation in ethtool
changing ring sizes in ethtool needs to be robust. If an allocation fails the
driver must continue operation, with the previous settings.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 71ddac6ac4f4..27db64f5c860 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -336,5 +336,9 @@ extern int ixgbe_setup_rx_resources(struct ixgbe_adapter *adapter, | |||
336 | struct ixgbe_ring *rxdr); | 336 | struct ixgbe_ring *rxdr); |
337 | extern int ixgbe_setup_tx_resources(struct ixgbe_adapter *adapter, | 337 | extern int ixgbe_setup_tx_resources(struct ixgbe_adapter *adapter, |
338 | struct ixgbe_ring *txdr); | 338 | struct ixgbe_ring *txdr); |
339 | extern void ixgbe_free_rx_resources(struct ixgbe_adapter *adapter, | ||
340 | struct ixgbe_ring *rxdr); | ||
341 | extern void ixgbe_free_tx_resources(struct ixgbe_adapter *adapter, | ||
342 | struct ixgbe_ring *txdr); | ||
339 | 343 | ||
340 | #endif /* _IXGBE_H_ */ | 344 | #endif /* _IXGBE_H_ */ |