diff options
author | Petr Machata <[email protected]> | 2020-03-19 15:47:20 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-03-19 21:09:19 -0700 |
commit | fe93f0b225ea45fe1fd72c991bd53f9e3d69276d (patch) | |
tree | 6815c1294faa3d411e90bfa7de6fcd7ddb93767a /scripts/gcc-plugins/latent_entropy_plugin.c | |
parent | 3fd177cb2b47b29d36431229e4737e7286eefa29 (diff) |
net: tc_skbedit: Factor a helper out of is_tcf_skbedit_{mark, ptype}()
The two functions is_tcf_skbedit_mark() and is_tcf_skbedit_ptype() have a
very similar structure. A follow-up patch will add one more such function.
Instead of more cut'n'pasting, extract a helper function that checks
whether a TC action is an skbedit with the required flag. Convert the two
existing functions into thin wrappers around the helper.
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/latent_entropy_plugin.c')
0 files changed, 0 insertions, 0 deletions