Document the Earliest TxTime First (ETF) offload, also known as Tx packet pacing, in the Intel VF guide and add a release note entry.
Signed-off-by: Soumyadeep Hore <[email protected]> --- doc/guides/nics/intel_vf.rst | 35 ++++++++++++++++++++++++++ doc/guides/rel_notes/release_27_03.rst | 6 +++++ 2 files changed, 41 insertions(+) diff --git a/doc/guides/nics/intel_vf.rst b/doc/guides/nics/intel_vf.rst index 51e1f49607..f3946becc8 100644 --- a/doc/guides/nics/intel_vf.rst +++ b/doc/guides/nics/intel_vf.rst @@ -681,6 +681,41 @@ Inline IPsec Support documentation. +Tx Packet Pacing +---------------- + +Earliest TxTime First (ETF), also known as Tx packet pacing, allows the +application to request a per-packet transmit time, with hardware enforcing +the scheduled transmit time. This feature is currently supported only on +E830 adapters, and the PF must advertise the ``VIRTCHNL_VF_OFFLOAD_TXTIME`` +capability. + +The offload is enabled per Tx queue through the +``RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP`` offload flag. When enabled, a +timestamp ring is allocated alongside the Tx descriptor ring, and the +per-packet transmit time is taken from the dynamic mbuf Tx timestamp field +(registered with ``rte_mbuf_dyn_tx_timestamp_register()``). The DPDK library +must be built with PTP support enabled. + +For example, to deliver timestamps internally in ``testpmd`` the initial +time is fetched using ``rte_eth_read_clock()`` and the ``set txtimes`` +command provides the inter-burst and intra-burst time intervals in +nanoseconds:: + + dpdk-testpmd -a 0000:xx:xx.x -- -i --tx-offloads=0x200000 + set fwd txonly + set txtimes <inter_burst>,<intra_burst> + start + +The hardware can schedule a packet at most about 33 ms ahead. +Packets with a launch time more than 30 ms in the future +are sent 30 ms after they are queued, +and packets without a launch time are sent immediately. +The VF estimates the device time from the last PHC read, +so applications should read the clock with ``rte_eth_read_clock()`` +before scheduling packets. + + Diagnostic Utilities -------------------- diff --git a/doc/guides/rel_notes/release_27_03.rst b/doc/guides/rel_notes/release_27_03.rst index a91813faca..d933fcea9f 100644 --- a/doc/guides/rel_notes/release_27_03.rst +++ b/doc/guides/rel_notes/release_27_03.rst @@ -55,6 +55,12 @@ New Features Also, make sure to start the actual text at the margin. ======================================================= +* **Updated Intel iavf driver.** + + * Added Earliest TxTime First (ETF) offload, also known as Tx packet pacing, + advertised as ``RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP`` and available on + E830 adapters. + Removed Items ------------- -- 2.43.0

