Vladimir Oltean 8f18655c49 net: dsa: don't call ptp_classify_raw() if switch doesn't provide RX timestamping
ptp_classify_raw() is not exactly cheap, since it invokes a BPF program
for every skb in the receive path. For switches which do not provide
ds->ops->port_rxtstamp(), running ptp_classify_raw() provides precisely
nothing, so check for the presence of the function pointer first, since
that is much cheaper.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20221209175840.390707-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-12 15:03:21 -08:00
..
2022-12-12 11:27:42 -08:00
2022-12-12 11:43:16 +01:00
2022-12-12 11:27:42 -08:00
2022-12-12 11:27:42 -08:00
2022-12-02 20:33:30 -08:00
2022-12-02 20:33:30 -08:00
2022-12-12 11:27:42 -08:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00