OSDN Git Service

Merge branch 'DSA-TX-tstamp'
authorDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 19:43:41 +0000 (11:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 19:43:41 +0000 (11:43 -0800)
commit1a1fda57b400160c79287479dc05d8b8b3f7113d
tree94308548cc34cec9b20a748c22546c6714127511
parent270fe2ceda66b6964d4c6f261d7f562a02c1c786
parentf685e609a301f171b62ee52a69acc3a74c2c04aa
Merge branch 'DSA-TX-tstamp'

Vladimir Oltean says:

====================
The DSA TX timestamping situation

This series is the moral v2 of "[PATCH net] net: dsa: sja1105: Fix
double delivery of TX timestamps to socket error queue" [0] which did
not manage to convince public opinion (actually it didn't convince me
neither).

This fixes PTP timestamping on one particular board, where the DSA
switch is sja1105 and the master is gianfar. Unfortunately there is no
way to make the fix more general without committing logical
inaccuracies: the SKBTX_IN_PROGRESS flag does serve a purpose, even if
the sja1105 driver is not using it now: it prevents delivering a SW
timestamp to the app socket when the HW timestamp will be provided. So
not setting this flag (the approach from v1) might create avoidable
complications in the future (not to mention that there isn't any
satisfactory explanation on why that would be the correct solution).

So the goal of this change set is to create a more strict framework for
DSA master devices when attached to PTP switches, and to fix the first
master driver that is overstepping its duties and is delivering
unsolicited TX timestamps.

[0]: https://www.spinics.net/lists/netdev/msg619699.html
====================

Signed-off-by: David S. Miller <davem@davemloft.net>