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>
This commit is contained in:

committed by
David S. Miller

parent
6c267b3dea
commit
901e040aa3
@@ -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 */
|
||||
|
Reference in New Issue
Block a user