]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ptp: fix time stamp matching logic for VLAN packets.
authorRichard Cochran <richardcochran@gmail.com>
Wed, 12 Nov 2014 10:33:52 +0000 (11:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:23:07 +0000 (09:23 -0800)
commit2326ed5e88f6cecd1e03f7718eb11480f046d887
tree3145207cb0faded0095e64ad0d2120586452da5c
parent1875ee03bfb9a00c9c23efec6208a912b1946f29
net: ptp: fix time stamp matching logic for VLAN packets.

[ Upstream commit cca04b2854ecfb7cd1b8ee84ab38bc99af59f526 ]

Commit ae5c6c6d "ptp: Classify ptp over ip over vlan packets" changed the
code in two drivers that matches time stamps with PTP frames, with the goal
of allowing VLAN tagged PTP packets to receive hardware time stamps.

However, that commit failed to account for the VLAN header when parsing
IPv4 packets. This patch fixes those two drivers to correctly match VLAN
tagged IPv4/UDP PTP messages with their time stamps.

This patch should also be applied to v3.17.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ti/cpts.c
drivers/net/phy/dp83640.c