diff options
author | Pedro Tammela <pctammela@mojatatu.com> | 2022-12-06 10:55:12 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-09 09:18:07 +0000 |
commit | 871cf386dd16705b1e08942efd02c58801293d01 (patch) | |
tree | 5aa639cf8129d1e5f78cefe0f48ee18a7c098985 /net/sched/act_sample.c | |
parent | 7f0e810220e2d985338ecdd907c1598404db251d (diff) | |
download | lwn-871cf386dd16705b1e08942efd02c58801293d01.tar.gz lwn-871cf386dd16705b1e08942efd02c58801293d01.zip |
net/sched: avoid indirect act functions on retpoline kernels
Expose the necessary tc act functions and wire up act_api to use
direct calls in retpoline kernels.
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_sample.c')
-rw-r--r-- | net/sched/act_sample.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c index 7a25477f5d99..98dea08c1764 100644 --- a/net/sched/act_sample.c +++ b/net/sched/act_sample.c @@ -20,6 +20,7 @@ #include <net/tc_act/tc_sample.h> #include <net/psample.h> #include <net/pkt_cls.h> +#include <net/tc_wrapper.h> #include <linux/if_arp.h> @@ -153,8 +154,9 @@ static bool tcf_sample_dev_ok_push(struct net_device *dev) } } -static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a, - struct tcf_result *res) +TC_INDIRECT_SCOPE int tcf_sample_act(struct sk_buff *skb, + const struct tc_action *a, + struct tcf_result *res) { struct tcf_sample *s = to_sample(a); struct psample_group *psample_group; |