Skip to content

gre: add sequence number for collect md mode.

William Tu netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

rename BPF_F_GRE_SEQ to BPF_F_SEQ_NUMBER suggested by Daniel
--
William Tu (2):
gre: add sequence number for collect md mode. samples/bpf: add gre sequence number test.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gre: add sequence number for collect md mode.include/uapi/linux/bpf.h net/core/filter.c net/ipv4/ip_gre.c +1 more+17 -81 reply
2/2samples/bpf: add gre sequence number test.samples/bpf/tcbpf2_kern.c samples/bpf/test_tunnel_bpf.sh+7 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel Borkmann
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 net-next 0/2] gre: add sequence number for collect md mode.

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_SEQ_NUMBER' is added. --
v1->v2:
rename BPF_F_GRE_SEQ to BPF_F_SEQ_NUMBER suggested by Daniel
--
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 |  5 +++--
 6 files changed, 24 insertions(+), 12 deletions(-)
Signature · 1 line
2.7.4