summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2018-03-02 00:49:57 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-05 02:35:02 +0300
commit77a5196a804e34ce5e215ef84d5e1de332e9c529 (patch)
treec8edc6d18bdb255c07070dc09e21e9ff01e23dc4 /include
parenta56cd508e7134e25ebe09e82bfddc0875f093e5d (diff)
downloadlinux-77a5196a804e34ce5e215ef84d5e1de332e9c529.tar.xz
gre: add sequence number for collect md mode.
Currently GRE sequence number can only be used in native tunnel mode. This patch adds sequence number support for gre collect metadata mode. RFC2890 defines GRE sequence number to be specific to the traffic flow identified by the key. However, this patch does not implement per-key seqno. The sequence number is shared in the same tunnel device. That is, different tunnel keys using the same collect_md tunnel share single sequence number. Signed-off-by: William Tu <u9012063@gmail.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/bpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index db6bdc375126..2a66769e5875 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -800,6 +800,7 @@ enum bpf_func_id {
/* BPF_FUNC_skb_set_tunnel_key flags. */
#define BPF_F_ZERO_CSUM_TX (1ULL << 1)
#define BPF_F_DONT_FRAGMENT (1ULL << 2)
+#define BPF_F_SEQ_NUMBER (1ULL << 3)
/* BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and
* BPF_FUNC_perf_event_read_value flags.