summaryrefslogtreecommitdiffstats
path: root/samples/bpf/hbm.h
diff options
context:
space:
mode:
authorbrakmo <brakmo@fb.com>2019-05-28 16:59:39 -0700
committerAlexei Starovoitov <ast@kernel.org>2019-05-31 16:41:29 -0700
commitffd81558d56c611b1e93f856c77f42046a2deab5 (patch)
treef3c30120e3d5afdf625d155ea139b9851a2b2104 /samples/bpf/hbm.h
parent956fe2190820df3a6ee530204e059da508159319 (diff)
downloadlinux-stable-ffd81558d56c611b1e93f856c77f42046a2deab5.tar.gz
linux-stable-ffd81558d56c611b1e93f856c77f42046a2deab5.tar.bz2
linux-stable-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;