fm10k/base: use bit shift for ITR scale
authorXiao Wang <xiao.w.wang@intel.com>
Fri, 19 Feb 2016 11:06:51 +0000 (19:06 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:51:44 +0000 (18:51 +0100)
commit285e9a7beaa3bfe6db27173c6e3a93932f6c1d8d
tree6bb932944d70203d53a566bded3dad470234cdd0
parent894b6cba877ff94b06ac4f5a929f5902e3f06bf2
fm10k/base: use bit shift for ITR scale

Use bitshift instead of a divisor, because this is faster, and
eliminates any need for a '0' check. In our case, this even works
out because default Gen3 will be 0.

Because of this, we are also able to remove the check for non-zero value
in the VF code path since that will already be the default Gen3 case.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Tested-by: Heng Ding <hengx.ding@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/base/fm10k_type.h
drivers/net/fm10k/base/fm10k_vf.c