diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-10-27 11:51:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 04:20:26 -0400 |
commit | 80785298aa5b6f2005a34afb97457ae7a65af270 (patch) | |
tree | c236ae1f3f688b816b1fa2475fcd7ccd67261ac4 /drivers/net/igb/igb_ethtool.c | |
parent | fce99e341524c204ef3dd3e7c5f77265a7e05ddd (diff) |
igb: add pci device pointer to ring structure
This patch adds a pci device pointer to the ring structure. The main use of
this pointer is for memory mapping/unmapping of the rings.
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>
Diffstat (limited to 'drivers/net/igb/igb_ethtool.c')
-rw-r--r-- | drivers/net/igb/igb_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c index 2929546115c1..c48a555bda2c 100644 --- a/drivers/net/igb/igb_ethtool.c +++ b/drivers/net/igb/igb_ethtool.c | |||
@@ -794,7 +794,7 @@ static int igb_set_ringparam(struct net_device *netdev, | |||
794 | 794 | ||
795 | for (i = 0; i < adapter->num_tx_queues; i++) { | 795 | for (i = 0; i < adapter->num_tx_queues; i++) { |
796 | temp_ring[i].count = new_tx_count; | 796 | temp_ring[i].count = new_tx_count; |
797 | err = igb_setup_tx_resources(adapter, &temp_ring[i]); | 797 | err = igb_setup_tx_resources(&temp_ring[i]); |
798 | if (err) { | 798 | if (err) { |
799 | while (i) { | 799 | while (i) { |
800 | i--; | 800 | i--; |
@@ -819,7 +819,7 @@ static int igb_set_ringparam(struct net_device *netdev, | |||
819 | 819 | ||
820 | for (i = 0; i < adapter->num_rx_queues; i++) { | 820 | for (i = 0; i < adapter->num_rx_queues; i++) { |
821 | temp_ring[i].count = new_rx_count; | 821 | temp_ring[i].count = new_rx_count; |
822 | err = igb_setup_rx_resources(adapter, &temp_ring[i]); | 822 | err = igb_setup_rx_resources(&temp_ring[i]); |
823 | if (err) { | 823 | if (err) { |
824 | while (i) { | 824 | while (i) { |
825 | i--; | 825 | i--; |