[dpdk-dev] [PATCH 0/4] ethdev: add support for ieee1588 timestamping

John McNamara john.mcnamara at intel.com
Fri Jun 5 17:19:03 CEST 2015


This patchset adds ethdev API to enable and read IEEE1588 PTP timestamps from
devices that support it. The following functions are added:

    rte_eth_ieee1588_enable()
    rte_eth_ieee1588_disable()
    rte_eth_ieee1588_read_rx_timestamp()
    rte_eth_ieee1588_read_tx_timestamp()

The "ieee1588" forwarding mode in testpmd is also refactored to demonstrate
the new API and to clean up the code.

Adds support for igb and ixgbe. Support for i40e will follow in V2.

I would be interested in getting feedback from maintainers of non-Intel pmds
on whether this interface is sufficient to initialise, read from, and stop,
IEEE1588 functionality on other devices.


John McNamara (4):
  ethdev: add support for ieee1588 timestamping
  e1000: add support for ieee1588 timestamping
  ixgbe: add support for ieee1588 timestamping
  app/testpmd: refactor ieee1588 forwarding

 app/test-pmd/ieee1588fwd.c             | 443 +--------------------------------
 drivers/net/e1000/igb_ethdev.c         | 118 +++++++++
 drivers/net/ixgbe/ixgbe_ethdev.c       | 118 +++++++++
 lib/librte_ether/rte_ethdev.c          |  70 +++++-
 lib/librte_ether/rte_ethdev.h          |  88 ++++++-
 lib/librte_ether/rte_ether_version.map |   4 +
 6 files changed, 409 insertions(+), 432 deletions(-)

-- 
1.8.1.4



More information about the dev mailing list