diff options
| author | John Hurley <[email protected]> | 2019-12-17 21:57:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-12-19 17:37:12 -0800 |
| commit | 31c491e56ad1ad769e09f6971d267834bfc9bc39 (patch) | |
| tree | e5d45be9e2cf1443751745712685b37626c9579a /tools/perf/scripts/python/netdev-times.py | |
| parent | a886ca6fcfffd337482352f383c1002c72786b17 (diff) | |
nfp: flower: pass flow rule pointer directly to match functions
In kernel 5.1, the flow offload API was introduced along with a helper
function to extract the flow_rule from the TC offload struct. Each of the
match helper functions are passed the offload struct and extract the flow
rule to a local variable.
Simplify the code while also removing the extra compat and local variable
calls by extracting the rule once in the main match handler, and passing
a reference to the rule direct to each helper.
This patch does not change driver functionality.
Signed-off-by: John Hurley <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions