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)
commitf44f8417baef9dcd8533a706691dadbda219ef82
tree0b79f17015fad55352905084f746bae7b6267465
parent98fdd857a3bd6a3bf0003d3f68f07c25c85dcde3
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