diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2017-09-25 02:25:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-26 13:36:44 -0700 |
commit | 6aaae2b6c4330a46204bca042f1d2f41e8e18dea (patch) | |
tree | 968031170a423ddc12017457f64e20ba753a7ecd /net/sched/cls_bpf.c | |
parent | 3bd3b9ed1b602c065aa0b1ba109b9622afa6ff98 (diff) | |
download | linux-6aaae2b6c4330a46204bca042f1d2f41e8e18dea.tar.bz2 |
bpf: rename bpf_compute_data_end into bpf_compute_data_pointers
Just do the rename into bpf_compute_data_pointers() as we'll add
one more pointer here to recompute.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_bpf.c')
-rw-r--r-- | net/sched/cls_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_bpf.c b/net/sched/cls_bpf.c index 520c5027646a..36671b0fb125 100644 --- a/net/sched/cls_bpf.c +++ b/net/sched/cls_bpf.c @@ -99,11 +99,11 @@ static int cls_bpf_classify(struct sk_buff *skb, const struct tcf_proto *tp, } else if (at_ingress) { /* It is safe to push/pull even if skb_shared() */ __skb_push(skb, skb->mac_len); - bpf_compute_data_end(skb); + bpf_compute_data_pointers(skb); filter_res = BPF_PROG_RUN(prog->filter, skb); __skb_pull(skb, skb->mac_len); } else { - bpf_compute_data_end(skb); + bpf_compute_data_pointers(skb); filter_res = BPF_PROG_RUN(prog->filter, skb); } |