fm10k/base: fix ieee1588 adjustment direction
authorWang Xiao W <xiao.w.wang@intel.com>
Thu, 10 Sep 2015 04:38:22 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 7 Oct 2015 11:35:48 +0000 (13:35 +0200)
commitb56d0781aae1e7246561b258beb4276b47cd36fc
treeb437d38b7fcecbebf1c8232c41df1abe975e5814
parentd6eaec3589728721bfc22931846bd016fccaf3a1
fm10k/base: fix ieee1588 adjustment direction

The SYSTIME_CFG.Adjust field has a Direction bit to indicate whether the
adjustment is positive or negative. However, we incorrectly read the
documentation and the direction bit should be set 1 when positive, not
when negative.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
drivers/net/fm10k/base/fm10k_pf.c
drivers/net/fm10k/base/fm10k_type.h