summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohn Hurley <john.hurley@netronome.com>2019-04-15 17:55:58 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-16 01:45:36 +0300
commitcf4172d5751fcf8531c3df43cbd490bac7a8c84a (patch)
tree1e1cb9e52e77f364f4fbb6b3b1b2288abe418a0d /tools/perf/scripts/python
parent45756dfedab5fd7056ae87aed66b5089f9d8b039 (diff)
downloadlinux-cf4172d5751fcf8531c3df43cbd490bac7a8c84a.tar.xz
nfp: flower: get flows by host context
Each flow is given a context ID that the fw uses (along with its cookie) to identity the flow. The flows stats are updated by the fw via this ID which is a reference to a pre-allocated array entry. In preparation for flow merge code, enable the nfp_fl_payload structure to be accessed via this stats context ID. Rather than increasing the memory requirements of the pre-allocated array, add a new rhashtable to associate each active stats context ID with its rule payload. While adding new code to the compile metadata functions, slightly restructure the existing function to allow for cleaner, easier to read error handling. Signed-off-by: John Hurley <john.hurley@netronome.com> Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions