Home
last modified time | relevance | path

Searched hist:fe93f0b225ea45fe1fd72c991bd53f9e3d69276d (Results 1 – 1 of 1) sorted by relevance

/linux/include/net/tc_act/
H A Dtc_skbedit.hdiff fe93f0b225ea45fe1fd72c991bd53f9e3d69276d Thu Mar 19 14:47:20 CET 2020 Petr Machata <petrm@mellanox.com> 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 <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>