diff options
author | David S. Miller <davem@davemloft.net> | 2016-08-18 01:17:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-18 01:17:32 -0400 |
commit | 60747ef4d173c2747bf7f0377fb22846cb422195 (patch) | |
tree | ea0faf33b952495c47909be1400c475a3f3821b0 /samples/bpf | |
parent | 484334198f8ce9552e20930fff9408ebf6bcf94d (diff) | |
parent | 184ca823481c99dadd7d946e5afd4bb921eab30d (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor overlapping changes for both merge conflicts.
Resolution work done by Stephen Rothwell was used
as a reference.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf')
-rw-r--r-- | samples/bpf/bpf_helpers.h | 4 | ||||
-rw-r--r-- | samples/bpf/test_cgrp2_tc_kern.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h index 5e4c41e256b8..6f1672a7254e 100644 --- a/samples/bpf/bpf_helpers.h +++ b/samples/bpf/bpf_helpers.h | |||
@@ -76,8 +76,8 @@ static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flag | |||
76 | (void *) BPF_FUNC_l3_csum_replace; | 76 | (void *) BPF_FUNC_l3_csum_replace; |
77 | static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) = | 77 | static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) = |
78 | (void *) BPF_FUNC_l4_csum_replace; | 78 | (void *) BPF_FUNC_l4_csum_replace; |
79 | static int (*bpf_skb_in_cgroup)(void *ctx, void *map, int index) = | 79 | static int (*bpf_skb_under_cgroup)(void *ctx, void *map, int index) = |
80 | (void *) BPF_FUNC_skb_in_cgroup; | 80 | (void *) BPF_FUNC_skb_under_cgroup; |
81 | 81 | ||
82 | #if defined(__x86_64__) | 82 | #if defined(__x86_64__) |
83 | 83 | ||
diff --git a/samples/bpf/test_cgrp2_tc_kern.c b/samples/bpf/test_cgrp2_tc_kern.c index 2732c37c8d5b..10ff73404e3a 100644 --- a/samples/bpf/test_cgrp2_tc_kern.c +++ b/samples/bpf/test_cgrp2_tc_kern.c | |||
@@ -57,7 +57,7 @@ int handle_egress(struct __sk_buff *skb) | |||
57 | bpf_trace_printk(dont_care_msg, sizeof(dont_care_msg), | 57 | bpf_trace_printk(dont_care_msg, sizeof(dont_care_msg), |
58 | eth->h_proto, ip6h->nexthdr); | 58 | eth->h_proto, ip6h->nexthdr); |
59 | return TC_ACT_OK; | 59 | return TC_ACT_OK; |
60 | } else if (bpf_skb_in_cgroup(skb, &test_cgrp2_array_pin, 0) != 1) { | 60 | } else if (bpf_skb_under_cgroup(skb, &test_cgrp2_array_pin, 0) != 1) { |
61 | bpf_trace_printk(pass_msg, sizeof(pass_msg)); | 61 | bpf_trace_printk(pass_msg, sizeof(pass_msg)); |
62 | return TC_ACT_OK; | 62 | return TC_ACT_OK; |
63 | } else { | 63 | } else { |