fm10k/base: add ieee1588 clock owner message support
authorWang Xiao W <xiao.w.wang@intel.com>
Thu, 10 Sep 2015 04:38:35 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 7 Oct 2015 11:35:40 +0000 (13:35 +0200)
commit001c2f311a44a7f4022de2cc2437e188b6f3099f
tree20dcfe7e81e78a7b2d84b2c562505b1dc41aa993
parent685e5fb30b4b3b01acc2934a58fec8122666b465
fm10k/base: add ieee1588 clock owner message support

Add support for tx timestamp mode response message. The switch manager
should send this message whenever the owner changes or when a new port
appears. To simplify logic, treat this as full clock ownership, and call
it the CLOCK_OWNER message. Implement this as a hw->flags field, so that
base driver may use it to disable any functions which modify the clock
including Tx timestamps, frequency adjustments, and offset adjustments.
This ensures only one PEP will be handling these at a time.

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