]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Split counters for scrq/pools/napi
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Thu, 22 Feb 2018 03:33:56 +0000 (21:33 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Feb 2018 20:03:45 +0000 (15:03 -0500)
commitede6bddb397b9acdd2b2c7726874136f73fb9a35
tree1744d7d6877eb8c097208943e3cce6e8a66c910c
parentad5d57b02eef06dc18422011f05f1ef60e823a92
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>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h