linux/drivers/net/phy/mscc
Horatiu Vultur 96cb042c95 net: phy: mscc: Stop clearing the the UDPv4 checksum for L2 frames
[ Upstream commit 57a92d1465 ]

We have noticed that when PHY timestamping is enabled, L2 frames seems
to be modified by changing two 2 bytes with a value of 0. The place were
these 2 bytes seems to be random(or I couldn't find a pattern).  In most
of the cases the userspace can ignore these frames but if for example
those 2 bytes are in the correction field there is nothing to do.  This
seems to happen when configuring the HW for IPv4 even that the flow is
not enabled.
These 2 bytes correspond to the UDPv4 checksum and once we don't enable
clearing the checksum when using L2 frames then the frame doesn't seem
to be changed anymore.

Fixes: 7d272e63e0 ("net: phy: mscc: timestamping and PHC support")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://patch.msgid.link/20250523082716.2935895-1-horatiu.vultur@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-27 11:07:12 +01:00
..
Makefile net: phy: mscc: improved serdes calibration applied to VSC8514 2021-02-16 14:06:18 -08:00
mscc.h net: phy: mscc: enable VSC8501/2 RGMII RX clock 2023-06-05 09:26:20 +02:00
mscc_fc_buffer.h net: phy: mscc: fix copyright and author information in MACsec 2020-06-24 14:33:16 -07:00
mscc_mac.h net: phy: mscc: fix copyright and author information in MACsec 2020-06-24 14:33:16 -07:00
mscc_macsec.c net: phy: mscc: macsec: reject PN update requests 2023-10-19 23:08:53 +02:00
mscc_macsec.h net: phy: mscc: fix macsec key length 2021-06-24 12:41:12 -07:00
mscc_main.c net: phy: mscc: enable VSC8501/2 RGMII RX clock 2023-06-05 09:26:20 +02:00
mscc_ptp.c net: phy: mscc: Stop clearing the the UDPv4 checksum for L2 frames 2025-06-27 11:07:12 +01:00
mscc_ptp.h net: phy: mscc: use new PTP_MSGTYPE_* defines 2020-11-25 12:23:21 -08:00
mscc_serdes.c net: phy: mscc: improved serdes calibration applied to VSC8514 2021-02-16 14:06:18 -08:00
mscc_serdes.h net: phy: mscc: improved serdes calibration applied to VSC8514 2021-02-16 14:06:18 -08:00