mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
net: dsa: microchip: ptp: move pdelay_rsp correction field to tail tag
For PDelay_Resp messages we will likely have a negative value in the correction field. The switch hardware cannot correctly update such values (produces an off by one error in the UDP checksum), so it must be moved to the time stamp field in the tail tag. Format of the correction field is 48 bit ns + 16 bit fractional ns. After updating the correction field, clone is no longer required hence it is freed. Signed-off-by: Christian Eggers <ceggers@arri.de> Co-developed-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ab32f56a41
commit
a32190b154
@@ -36,6 +36,8 @@ struct ksz_tagger_data {
|
||||
|
||||
struct ksz_skb_cb {
|
||||
struct sk_buff *clone;
|
||||
unsigned int ptp_type;
|
||||
bool update_correction;
|
||||
u32 tstamp;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user