diff options
author | Nathan Fontenot <nfont@linux.vnet.ibm.com> | 2018-02-22 04:33:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-22 21:03:45 +0100 |
commit | 82e3be320d1e38a5e91a79d0eb451954c87ab7fe (patch) | |
tree | 1744d7d6877eb8c097208943e3cce6e8a66c910c /drivers/net/ethernet/ibm/ibmvnic.h | |
parent | net: dsa: mv88e6xxx: scratch registers and external MDIO pins (diff) | |
download | linux-82e3be320d1e38a5e91a79d0eb451954c87ab7fe.tar.xz linux-82e3be320d1e38a5e91a79d0eb451954c87ab7fe.zip |
ibmvnic: Split counters for scrq/pools/napi
The approach of one counter to rule them all when tracking the number
of active sub-crqs, pools, and napi has problems handling some failover
scenarios. This is due to the split in initializing the sub crqs,
pools and napi in different places and the placement of updating
the active counts.
This patch simplifies this by having a counter for tx and rx
sub-crqs, pools, and napi.
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.h')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.h b/drivers/net/ethernet/ibm/ibmvnic.h index 68e712c69211..099c89d49945 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.h +++ b/drivers/net/ethernet/ibm/ibmvnic.h @@ -1092,8 +1092,11 @@ struct ibmvnic_adapter { u64 opt_rxba_entries_per_subcrq; __be64 tx_rx_desc_req; u8 map_id; - u64 num_active_rx_scrqs; - u64 num_active_tx_scrqs; + u32 num_active_rx_scrqs; + u32 num_active_rx_pools; + u32 num_active_rx_napi; + u32 num_active_tx_scrqs; + u32 num_active_tx_pools; struct tasklet_struct tasklet; enum vnic_state state; |