]> git.baikalelectronics.ru Git - kernel.git/commit
dp83640: Include hash in timestamp/packet matching
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Tue, 3 Nov 2015 08:34:04 +0000 (09:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:08:21 +0000 (11:08 -0500)
commit8ed0fb22bcc46d789a4d2ca7540980653b252285
treef19f62f00e4df0eedba65f8eef3ab8a716c6e62f
parent66209143aead6472eeb0a640497cf5cb8b7d7832
dp83640: Include hash in timestamp/packet matching

Only using the message type and sequence id for matching timestamps
with packets is error prone, as multiple clients may very well be
sending packets with the same messagetype and timestamp at the same
time. Fix by extending the check to include the hash of bytes 20-29
(source id in PTPv2) that is provided with the timestamps.

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c