diff options
author | Grygorii Strashko <[email protected]> | 2020-04-23 17:20:17 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-04-23 12:50:20 -0700 |
commit | 3bfd41b57811d76412af57f4884e28ad78c2ab2f (patch) | |
tree | 552df8022d1fb9e26bd8a18d13356c280d2d5d24 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 856e59ab7e6d3c85ee739f3f53341d47c88d454e (diff) |
net: ethernet: ti: cpts: optimize packet to event matching
Now the CPTS driver performs packet (skb) parsing every time when it needs
to match packet to CPTS event (including ptp_classify_raw() calls).
This patch optimizes matching process by parsing packet only once upon
arrival and stores PTP specific data in skb->cb using the same fromat as in
CPTS HW event. As result, all future matching reduces to comparing two u32
values.
Signed-off-by: Grygorii Strashko <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions