fm10k: introduce ITR_IS_ADAPTIVE macro
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 Oct 2015 17:57:06 +0000 (10:57 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 6 Dec 2015 07:55:21 +0000 (23:55 -0800)
commit584373f5b98aed81ff5a432d91b6e16d7554a5c9
treeab9fe6727f0c29f35bdd009d302550a2c189c118
parent20076fa18571e2e274f51a2012ff5ef5c82e93a5
fm10k: introduce ITR_IS_ADAPTIVE macro

Define a macro for identifying when the itr value is dynamic or
adaptive. The concept was taken from i40e. This helps make clear what
the check is, and reduces the line length to something more reasonable
in a few places.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k.h
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
drivers/net/ethernet/intel/fm10k/fm10k_main.c