netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] gre: add sequence number for collect md mode.
@ 2018-03-01  0:11 William Tu
  2018-03-01  0:11 ` [PATCH net-next 1/2] " William Tu
  2018-03-01  0:11 ` [PATCH net-next 2/2] samples/bpf: add gre sequence number test William Tu
  0 siblings, 2 replies; 8+ messages in thread
From: William Tu @ 2018-03-01  0:11 UTC (permalink / raw)
  To: netdev; +Cc: daniel, ast

Currently GRE sequence number can only be used in native tunnel mode.
The first patch adds sequence number support for gre collect
metadata mode, and the second patch tests it using BPF.

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.

A new BFP uapi tunnel flag 'BPF_F_GRE_SEQ' is added.  I name it
since GRE is the only tunnel type having sequence number.

William Tu (2):
  gre: add sequence number for collect md mode.
  samples/bpf: add gre sequence number test.

 include/uapi/linux/bpf.h       |  1 +
 net/core/filter.c              |  4 +++-
 net/ipv4/ip_gre.c              |  7 +++++--
 net/ipv6/ip6_gre.c             | 13 ++++++++-----
 samples/bpf/tcbpf2_kern.c      |  6 ++++--
 samples/bpf/test_tunnel_bpf.sh |  4 ++--
 6 files changed, 23 insertions(+), 12 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-01 17:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01  0:11 [PATCH net-next 0/2] gre: add sequence number for collect md mode William Tu
2018-03-01  0:11 ` [PATCH net-next 1/2] " William Tu
2018-03-01 10:18   ` Daniel Borkmann
2018-03-01 17:17     ` William Tu
2018-03-01  0:11 ` [PATCH net-next 2/2] samples/bpf: add gre sequence number test William Tu
2018-03-01 10:30   ` Daniel Borkmann
2018-03-01 17:19     ` William Tu
2018-03-01 17:33       ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).