]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: set IC bit when transmitting frames with HW timestamp
authorRoland Hii <roland.king.guan.hii@intel.com>
Wed, 19 Jun 2019 14:41:48 +0000 (22:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Jun 2019 23:17:31 +0000 (16:17 -0700)
commitc0e984cb5eebaaa868b65a66ba819e8b8301f7de
treea758e5a0a657a77cccd1a78582ddffefb054b88c
parente159d21cd3ecc6438ea26337a8d751d1bcd9381b
net: stmmac: set IC bit when transmitting frames with HW timestamp

When transmitting certain PTP frames, e.g. SYNC and DELAY_REQ, the
PTP daemon, e.g. ptp4l, is polling the driver for the frame transmit
hardware timestamp. The polling will most likely timeout if the tx
coalesce is enabled due to the Interrupt-on-Completion (IC) bit is
not set in tx descriptor for those frames.

This patch will ignore the tx coalesce parameter and set the IC bit
when transmitting PTP frames which need to report out the frame
transmit hardware timestamp to user space.

Fixes: 601960c3588f ("net: stmmac: Rework coalesce timer and fix multi-queue races")
Signed-off-by: Roland Hii <roland.king.guan.hii@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c