diff options
author | Peter Oskolkov <posk@google.com> | 2019-03-23 02:40:18 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-03-23 04:16:43 +0300 |
commit | 315a202987dd2b2e0adebd13c83ceef44836e66f (patch) | |
tree | 18b366bcae61e4cd6531d410cf2723d4ab83ccce /net | |
parent | 629a002568a0cffda2541c43084643a7892f0ab0 (diff) | |
download | linux-315a202987dd2b2e0adebd13c83ceef44836e66f.tar.xz |
bpf: make bpf_skb_ecn_set_ce callable from BPF_PROG_TYPE_SCHED_ACT
This helper is useful if a bpf tc filter sets skb->tstamp.
Signed-off-by: Peter Oskolkov <posk@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index c1d19b074d6c..0a972fbf60df 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -5959,6 +5959,8 @@ tc_cls_act_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) return &bpf_skc_lookup_tcp_proto; case BPF_FUNC_tcp_check_syncookie: return &bpf_tcp_check_syncookie_proto; + case BPF_FUNC_skb_ecn_set_ce: + return &bpf_skb_ecn_set_ce_proto; #endif default: return bpf_base_func_proto(func_id); |