aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy/marvell10g.c
diff options
context:
space:
mode:
authorGravatar Jonathan Lemon <jonathan.lemon@gmail.com> 2022-04-24 09:53:07 -0700
committerGravatar Paolo Abeni <pabeni@redhat.com> 2022-04-26 10:45:46 +0200
commitacac0541d1d65e81e599ec399d34d184d2424401 (patch)
treee729f72489f1b9c90df08fd5cd71b01cf1fda815 /drivers/net/phy/marvell10g.c
parentmctp: defer the kfree of object mdev->addrs (diff)
downloadlinux-acac0541d1d65e81e599ec399d34d184d2424401.tar.gz
linux-acac0541d1d65e81e599ec399d34d184d2424401.tar.bz2
linux-acac0541d1d65e81e599ec399d34d184d2424401.zip
net: bcmgenet: hide status block before TX timestamping
The hardware checksum offloading requires use of a transmit status block inserted before the outgoing frame data, this was updated in '9a9ba2a4aaaa ("net: bcmgenet: always enable status blocks")' However, skb_tx_timestamp() assumes that it is passed a raw frame and PTP parsing chokes on this status block. Fix this by calling __skb_pull(), which hides the TSB before calling skb_tx_timestamp(), so an outgoing PTP packet is parsed correctly. As the data in the skb has already been set up for DMA, and the dma_unmap_* calls use a separately stored address, there is no no effective change in the data transmission. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20220424165307.591145-1-jonathan.lemon@gmail.com Fixes: d03825fba459 ("net: bcmgenet: add skb_tx_timestamp call") Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/phy/marvell10g.c')
0 files changed, 0 insertions, 0 deletions