diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2020-04-23 17:20:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-23 12:50:20 -0700 |
commit | 3bfd41b57811d76412af57f4884e28ad78c2ab2f (patch) | |
tree | 552df8022d1fb9e26bd8a18d13356c280d2d5d24 /tools/perf/scripts/python/export-to-postgresql.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 <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions