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:Yangbo Lu <yangbo.lu@nxp.com> Tested-by:
Kurt Kanzenbach <kurt@linutronix.de> Reviewed-by:
Florian Fainelli <f.fainelli@gmail.com> Acked-by:
Richard Cochran <richardcochran@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c 0 additions, 4 deletionsdrivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
- drivers/net/dsa/mv88e6xxx/hwtstamp.c 0 additions, 3 deletionsdrivers/net/dsa/mv88e6xxx/hwtstamp.c
- drivers/net/dsa/ocelot/felix.c 1 addition, 2 deletionsdrivers/net/dsa/ocelot/felix.c
- net/dsa/slave.c 3 additions, 0 deletionsnet/dsa/slave.c
Please register or sign in to comment