summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2018-02-01 16:42:27 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-02-06 22:09:17 +0100
commit0625a29f42c62998318ee3e05b2420e436318678 (patch)
tree3d6acc28249824da2b2407304aa3c89d15a4fae1
parent2af3bd0ee32e34d746ba2007ee7cc89dd35d7ba6 (diff)
downloaddpdk-0625a29f42c62998318ee3e05b2420e436318678.zip
dpdk-0625a29f42c62998318ee3e05b2420e436318678.tar.gz
dpdk-0625a29f42c62998318ee3e05b2420e436318678.tar.xz
examples/ptpclient: fix Tx configuration
The PTP Client application requires IEEE1588 to be supported by the network driver used, which needs full Tx data path to be used. Fixes: b960219b0d83 ("examples/ptpclient: convert to new ethdev offloads API") Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
-rw-r--r--examples/ptpclient/ptpclient.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c
index 1cf2519..83821eb 100644
--- a/examples/ptpclient/ptpclient.c
+++ b/examples/ptpclient/ptpclient.c
@@ -194,6 +194,8 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
port_conf.txmode.offloads |=
DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+ /* Force full Tx path in the driver, required for IEEE1588 */
+ port_conf.txmode.offloads |= DEV_TX_OFFLOAD_MULTI_SEGS;
/* Configure the Ethernet device. */
retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf);