aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJohn Hurley <john.hurley@netronome.com>2019-12-17 21:57:16 +0000
committerDavid S. Miller <davem@davemloft.net>2019-12-19 17:37:12 -0800
commit31c491e56ad1ad769e09f6971d267834bfc9bc39 (patch)
treee5d45be9e2cf1443751745712685b37626c9579a /Documentation
parenthdlcdrv: replace unnecessary assertion in hdlcdrv_register (diff)
downloadlinux-dev-31c491e56ad1ad769e09f6971d267834bfc9bc39.tar.xz
linux-dev-31c491e56ad1ad769e09f6971d267834bfc9bc39.zip
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 <john.hurley@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions