i40e: track filter type statistics when deleting invalid filters
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 8 Mar 2018 22:52:08 +0000 (14:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Mar 2018 19:29:08 +0000 (12:29 -0700)
commit6ac6d5a7ff424354074d21a68c2018a8b6fe4fc6
tree9a1e93c53095026d8c87f3277475c8269dec337b
parent03ce7b1d23498c97bc530a1296852af0cdd2fe77
i40e: track filter type statistics when deleting invalid filters

When hardware has trouble with a particular filter, we delete it from
the list. Unfortunately, we did not properly update the per-filter
statistic when doing so.

Create a helper function to handle this, and properly reduce the
necessary counter so that it tracks the number of active filters
properly.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c