]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit057611919ec985a5cc3adfd2215445ffe08edb53
tree659c499ba8e74664103d669961c65d5b80697d20
parent0d50a9533416c664bde487cd1e0f1932f829c514
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