]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: fix sw timestamping for non PTP packets
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 27 Jun 2017 13:58:52 +0000 (16:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 16:28:57 +0000 (12:28 -0400)
commitc3ef9ba1e5070076c3d0a5e43efbef7b5e892914
tree0b79f17015fad55352905084f746bae7b6267465
parent15bd65c6570f8c5fb60ff9292585d948a1f4ef0d
net: ethernet: ti: cpsw: fix sw timestamping for non PTP packets

The cpts can timestmap only ptp packets at this moment, so driver
cannot mark every packet as though it's going to be timestamped,
only because h/w timestamping for given skb is enabled with
SKBTX_HW_TSTAMP. It doesn't allow to use sw timestamping, as result
outgoing packet is not timestamped at all if it's not PTP and h/w
timestamping is enabled. So, fix it by setting SKBTX_IN_PROGRESS
only for PTP packets.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpts.h