dpaa2-eth: utilize skb->cb[0] for hardware timestamping
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 18 Sep 2020 09:08:01 +0000 (17:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:32:48 +0000 (14:32 -0700)
commit1cf773bd5a29caf170c2e4386e367d59276e8be1
tree659c499ba8e74664103d669961c65d5b80697d20
parent64a965dedc8c31058e807fe960e6b893ebd6ad4a
dpaa2-eth: utilize skb->cb[0] for hardware timestamping

This patch is a preparation for next hardware one-step timestamping
support. For DPAA2, the one step timestamping configuration on
hardware registers has to be done when there is no one-step timestamping
packet in flight. So we will have to use workqueue and skb queue
for such packets transmitting, to make sure waiting the last packet has
already been sent on hardware, and starting to transmit the current one.

So the tx timestamping flag in private data may not reflect the actual
request for the one-step timestamping packets of skb queue. This also
affects skb headroom allocation. Let's use skb->cb[0] to mark the
timestamping request for each skb.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h