]> 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)
commit8056e84bffd4bb38793f2f0e2bb3cca275640210
tree1744d7d6877eb8c097208943e3cce6e8a66c910c
parent935edc442cb93e7acd0a94450238a424d1ae3732
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