diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2011-06-10 21:45:03 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-07-22 01:55:56 -0400 |
commit | 08c8833b29cfa4343ff132eebc5648b234eb3f85 (patch) | |
tree | 68fac5d690c63d9f83e654b4315e801e73f2eead /drivers/net/ixgbe/ixgbe_ethtool.c | |
parent | 82d4e46e2a398154273044dd9813206f0d85bc09 (diff) |
ixgbe: add structure for containing RX/TX rings to q_vector
This patch adds support for a ring container structure to be used within
the q_vector. The basic idea is to provide a means of separating the RX
and TX rings while maintaining a common structure for their containment.
The advantage to this is that later we should be able to pass this
structure to the update_itr functions without needing to pass individual
rings.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_ethtool.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_ethtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 074e9baf069a..cd842f9dcae5 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c | |||
@@ -2122,7 +2122,7 @@ static int ixgbe_get_coalesce(struct net_device *netdev, | |||
2122 | } | 2122 | } |
2123 | 2123 | ||
2124 | /* if in mixed tx/rx queues per vector mode, report only rx settings */ | 2124 | /* if in mixed tx/rx queues per vector mode, report only rx settings */ |
2125 | if (adapter->q_vector[0]->txr_count && adapter->q_vector[0]->rxr_count) | 2125 | if (adapter->q_vector[0]->tx.count && adapter->q_vector[0]->rx.count) |
2126 | return 0; | 2126 | return 0; |
2127 | 2127 | ||
2128 | /* only valid if in constant ITR mode */ | 2128 | /* only valid if in constant ITR mode */ |
@@ -2187,7 +2187,7 @@ static int ixgbe_set_coalesce(struct net_device *netdev, | |||
2187 | bool need_reset = false; | 2187 | bool need_reset = false; |
2188 | 2188 | ||
2189 | /* don't accept tx specific changes if we've got mixed RxTx vectors */ | 2189 | /* don't accept tx specific changes if we've got mixed RxTx vectors */ |
2190 | if (adapter->q_vector[0]->txr_count && adapter->q_vector[0]->rxr_count | 2190 | if (adapter->q_vector[0]->tx.count && adapter->q_vector[0]->rx.count |
2191 | && ec->tx_coalesce_usecs) | 2191 | && ec->tx_coalesce_usecs) |
2192 | return -EINVAL; | 2192 | return -EINVAL; |
2193 | 2193 | ||
@@ -2261,7 +2261,7 @@ static int ixgbe_set_coalesce(struct net_device *netdev, | |||
2261 | int num_vectors = adapter->num_msix_vectors - NON_Q_VECTORS; | 2261 | int num_vectors = adapter->num_msix_vectors - NON_Q_VECTORS; |
2262 | for (i = 0; i < num_vectors; i++) { | 2262 | for (i = 0; i < num_vectors; i++) { |
2263 | q_vector = adapter->q_vector[i]; | 2263 | q_vector = adapter->q_vector[i]; |
2264 | if (q_vector->txr_count && !q_vector->rxr_count) | 2264 | if (q_vector->tx.count && !q_vector->rx.count) |
2265 | /* tx only */ | 2265 | /* tx only */ |
2266 | q_vector->eitr = adapter->tx_eitr_param; | 2266 | q_vector->eitr = adapter->tx_eitr_param; |
2267 | else | 2267 | else |