diff options
author | Vladimir Oltean <[email protected]> | 2022-02-05 01:03:21 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-02-05 15:27:01 +0000 |
commit | 59085208e4a2183998964844f8684fea0378128d (patch) | |
tree | 5dc961abbafe56d5db8c514449c35e3b07b5239d /tools/perf/scripts/python/mem-phys-addr.py | |
parent | f8d9d938514f46c4892aff6bfe32f425e84d81cc (diff) |
net: mscc: ocelot: fix all IP traffic getting trapped to CPU with PTP over IP
The filters for the PTP trap keys are incorrectly configured, in the
sense that is2_entry_set() only looks at trap->key.ipv4.dport or
trap->key.ipv6.dport if trap->key.ipv4.proto or trap->key.ipv6.proto is
set to IPPROTO_TCP or IPPROTO_UDP.
But we don't do that, so is2_entry_set() goes through the "else" branch
of the IP protocol check, and ends up installing a rule for "Any IP
protocol match" (because msk is also 0). The UDP port is ignored.
This means that when we run "ptp4l -i swp0 -4", all IP traffic is
trapped to the CPU, which hinders bridging.
Fix this by specifying the IP protocol in the VCAP IS2 filters for PTP
over UDP.
Fixes: 96ca08c05838 ("net: mscc: ocelot: set up traps for PTP packets")
Signed-off-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions