OSDN Git Service

gre: add sequence number for collect md mode.
authorWilliam Tu <u9012063@gmail.com>
Thu, 1 Mar 2018 21:49:57 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 23:35:02 +0000 (18:35 -0500)
commit77a5196a804e34ce5e215ef84d5e1de332e9c529
treec8edc6d18bdb255c07070dc09e21e9ff01e23dc4
parenta56cd508e7134e25ebe09e82bfddc0875f093e5d
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>
include/uapi/linux/bpf.h
net/core/filter.c
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c