diff options
| author | John Hurley <john.hurley@netronome.com> | 2018-06-26 00:30:06 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-06-26 17:21:32 +0300 |
| commit | 31533cba4327aefeafe8a7d57de0c737a3b2faa6 (patch) | |
| tree | 2321294339f2b75102f61b5685710cec9fbc7423 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | e56185c78b500ac4d08768278ad8a25d5b756942 (diff) | |
| download | linux-31533cba4327aefeafe8a7d57de0c737a3b2faa6.tar.xz | |
net: sched: cls_flower: implement offload tcf_proto_op
Add the reoffload tcf_proto_op in flower to generate an offload message
for each filter in the given tcf_proto. Call the specified callback with
this new offload message. The function only returns an error if the
callback rejects adding a 'hardware only' rule.
A filter contains a flag to indicate if it is in hardware or not. To
ensure the reoffload function properly maintains this flag, keep a
reference counter for the number of instances of the filter that are in
hardware. Only update the flag when this counter changes from or to 0. Add
a generic helper function to implement this behaviour.
Signed-off-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions
