net: macb: simplify TX timestamp handling
authorRobert Hancock <robert.hancock@calian.com>
Mon, 16 Jan 2023 22:08:34 +0000 (16:08 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 14:26:37 +0000 (14:26 +0000)
commit8e7610e686d0943d0c340e0dc4425c44f6470074
tree32de00b66fb0de731d9bd22a2c58bcbf6ceb13fd
parenteb1d929f1551f226f59e38465c542df9071166d6
net: macb: simplify TX timestamp handling

This driver was capturing the TX timestamp values from the TX ring
during the TX completion path, but deferring the actual packet TX
timestamp updating to a workqueue. There does not seem to be much of a
reason for this with the current state of the driver. Simplify this to
just do the TX timestamping as part of the TX completion path, to avoid
the need for the extra timestamp buffer and workqueue.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/cadence/macb_ptp.c