OSDN Git Service

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)
commit82e3be320d1e38a5e91a79d0eb451954c87ab7fe
tree1744d7d6877eb8c097208943e3cce6e8a66c910c
parent2510babcfaf04d50d69946df31f0e9690c518144
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