diff options
author | brakmo <brakmo@fb.com> | 2019-05-29 01:59:39 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-06-01 01:41:29 +0200 |
commit | ffd81558d56c611b1e93f856c77f42046a2deab5 (patch) | |
tree | f3c30120e3d5afdf625d155ea139b9851a2b2104 /samples/bpf/hbm.h | |
parent | bpf: Update BPF_CGROUP_RUN_PROG_INET_EGRESS calls (diff) | |
download | linux-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.h | 3 |
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; |