diff options
author | Thomas Falcon <tlfalcon@linux.vnet.ibm.com> | 2017-02-15 12:17:59 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-19 18:12:03 -0500 |
commit | 901e040aa341d5b2c38fd65a473e953f7ca0bc0b (patch) | |
tree | 1596ff0f77f303c1567809519ca93adf526470a6 /drivers/net/ethernet/ibm/ibmvnic.h | |
parent | 6c267b3dea09aebe84752cfedcab140c908830bb (diff) | |
download | linux-901e040aa341d5b2c38fd65a473e953f7ca0bc0b.tar.gz linux-901e040aa341d5b2c38fd65a473e953f7ca0bc0b.tar.bz2 linux-901e040aa341d5b2c38fd65a473e953f7ca0bc0b.zip |
ibmvnic: Use common counter for capabilities checks
Two different counters were being used for capabilities
requests and queries. These commands are not called
at the same time so there is no reason a single counter
cannot be used.
Signed-off-by: Thomas Falcon <tlfalcon@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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.h b/drivers/net/ethernet/ibm/ibmvnic.h index 0d0edc36107a..504d05c452e6 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.h +++ b/drivers/net/ethernet/ibm/ibmvnic.h @@ -976,11 +976,10 @@ struct ibmvnic_adapter { dma_addr_t login_rsp_buf_token; int login_rsp_buf_sz; - atomic_t running_cap_queries; + atomic_t running_cap_crqs; struct ibmvnic_sub_crq_queue **tx_scrq; struct ibmvnic_sub_crq_queue **rx_scrq; - int requested_caps; bool renegotiate; /* rx structs */ |