summaryrefslogtreecommitdiffstats
path: root/samples/bpf/hbm.h
diff options
context:
space:
mode:
authorbrakmo <brakmo@fb.com>2019-05-29 01:59:39 +0200
committerAlexei Starovoitov <ast@kernel.org>2019-06-01 01:41:29 +0200
commitffd81558d56c611b1e93f856c77f42046a2deab5 (patch)
treef3c30120e3d5afdf625d155ea139b9851a2b2104 /samples/bpf/hbm.h
parentbpf: Update BPF_CGROUP_RUN_PROG_INET_EGRESS calls (diff)
downloadlinux-ffd81558d56c611b1e93f856c77f42046a2deab5.tar.xz
linux-ffd81558d56c611b1e93f856c77f42046a2deab5.zip
bpf: Add cn support to hbm_out_kern.c
Update hbm_out_kern.c to support returning cn notifications. Also updates relevant files to allow disabling cn notifications. Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/hbm.h')
-rw-r--r--samples/bpf/hbm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/bpf/hbm.h b/samples/bpf/hbm.h
index 518e8147d084..c08247cec2a7 100644
--- a/samples/bpf/hbm.h
+++ b/samples/bpf/hbm.h
@@ -19,7 +19,8 @@ struct hbm_vqueue {
struct hbm_queue_stats {
unsigned long rate; /* in Mbps*/
unsigned long stats:1, /* get HBM stats (marked, dropped,..) */
- loopback:1; /* also limit flows using loopback */
+ loopback:1, /* also limit flows using loopback */
+ no_cn:1; /* do not use cn flags */
unsigned long long pkts_marked;
unsigned long long bytes_marked;
unsigned long long pkts_dropped;