diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2014-09-02 09:56:56 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-02 12:46:00 -0700 |
commit | a4906ea0a5fe6dba89d3809f1e0e97b4d55ef4b7 (patch) | |
tree | c49d7c0d87d263a921bc698733d582ddcee384fa /drivers/net/ethernet/emulex/benet/be.h | |
parent | c8f64615fb8372844f25199c2aa3c7565e1e9e60 (diff) | |
download | lwn-a4906ea0a5fe6dba89d3809f1e0e97b4d55ef4b7.tar.gz lwn-a4906ea0a5fe6dba89d3809f1e0e97b4d55ef4b7.zip |
be2net: define macro for_all_tx_queues_on_eq()
Replace the for() loop that traverses all the TX queues on an EQ
with the macro for_all_tx_queues_on_eq(). With this expalnatory
name, the one line comment is not required anymore.
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index d952ca2c0678..a9f239adc3e3 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -621,6 +621,10 @@ extern const struct ethtool_ops be_ethtool_ops; for (i = eqo->idx, rxo = &adapter->rx_obj[i]; i < adapter->num_rx_qs;\ i += adapter->num_evt_qs, rxo += adapter->num_evt_qs) +#define for_all_tx_queues_on_eq(adapter, eqo, txo, i) \ + for (i = eqo->idx, txo = &adapter->tx_obj[i]; i < adapter->num_tx_qs;\ + i += adapter->num_evt_qs, txo += adapter->num_evt_qs) + #define is_mcc_eqo(eqo) (eqo->idx == 0) #define mcc_eqo(adapter) (&adapter->eq_obj[0]) |