net/octeontx2: fix PTP performance
authorHarman Kalra <hkalra@marvell.com>
Sun, 28 Jul 2019 09:09:38 +0000 (09:09 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jul 2019 10:23:22 +0000 (12:23 +0200)
commitbd992b2adc3d652c1e2c64145b3e48de8483063a
treeee4f894435667363d82331f18cb4ed3e9352d39c
parentee1e81266e87a38f711bb47bcc3c4b390647c9e5
net/octeontx2: fix PTP performance

A huge drop in per core MPPS value was observed when PTP stack is
enabled. The reason behind the bottleneck is HW serialises the
transfer of all SQEs, which seeks timestamp capture, on the same
send DMA path. Hence only those packets which requires timestamp
capture should set SETTSTAMP in send mem alg.
With this patch timestamping would be done only for those packets
with PKT_TX_IEEE1588_TMST set.

Fixes: fb3ae0951abd ("net/octeontx2: support Tx")
Fixes: 8980a153006b ("event/octeontx2: support PTP for SSO")

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/event/octeontx2/otx2_evdev.h
drivers/event/octeontx2/otx2_worker.h
drivers/event/octeontx2/otx2_worker_dual.h
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_rx.c
drivers/net/octeontx2/otx2_rx.h
drivers/net/octeontx2/otx2_tx.h