ethdev: add ieee1588 timestamping
authorJohn McNamara <john.mcnamara@intel.com>
Thu, 2 Jul 2015 15:16:28 +0000 (16:16 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 00:26:01 +0000 (02:26 +0200)
commitaee686ea17290271d62308b0f559c46e33f6364b
treed5c26993de34363630ec269909f9a623e06793e3
parentbd5d7beecd762e8a07fe32c184527b81e312d0f1
ethdev: add ieee1588 timestamping

Add ethdev API to enable and read IEEE1588/802.1AS PTP timestamps
from devices that support it. The following functions are added:

    rte_eth_timesync_enable()
    rte_eth_timesync_disable()
    rte_eth_timesync_read_rx_timestamp()
    rte_eth_timesync_read_tx_timestamp()

Signed-off-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
[Thomas: merged with new macro VALID_PORTID_OR_ERR_RET]
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map