Skip to content
Commit cd139783 authored by Yangbo Lu's avatar Yangbo Lu Committed by Xulin Sun
Browse files

net: dsa: check tx timestamp request in core driver



Check tx timestamp request in core driver at very beginning of
dsa_skb_tx_timestamp(), so that most skbs not requiring tx
timestamp just return. And drop such checking in device drivers.

Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
Tested-by: default avatarKurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit cfd12c06)
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
(conflicts with drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c which we
 did not backport)
[Xulin: Original patch taken from
https://github.com/vladimiroltean/linux/commits/felix-dsa-tag-vlan-stable

]
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent 193aae7b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment