Skip to content

vxlan, geneve, gre, gretap matching support

Pablo Neira Ayuso netfilter-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/216 patches 1 replyIn review
  2. v2 posting 1/26 patches 0 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16src: add eval_proto_ctx()include/proto.h include/rule.h src/evaluate.c +1 more+154 -970 replies
2/16src: add dl_proto_ctx()include/netlink.h src/netlink_delinearize.c src/xt.c+78 -540 replies
3/16src: add vxlan matching supportinclude/expression.h include/linux/netfilter/nf_tables.h include/netlink.h +13 more+521 -290 replies
4/16tests: py: add vxlan teststests/py/inet/vxlan.t tests/py/inet/vxlan.t.payload+137 -00 replies
5/16tests: shell: add vxlan set teststests/shell/testcases/sets/dumps/inner_0.nft tests/shell/testcases/sets/inner_0+43 -00 replies
6/16doc: add vxlan matching expressiondoc/payload-expression.txt+71 -00 replies
7/16src: display (inner) tag in --debug=proto-ctxinclude/proto.h src/evaluate.c src/netlink.c +2 more+12 -80 replies
8/16src: add gre supportinclude/parser.h include/payload.h include/proto.h +6 more+205 -170 replies
9/16tests: py: add gre teststests/py/inet/gre.t tests/py/inet/gre.t.payload+100 -00 replies
10/16doc: add gre matching expressiondoc/payload-expression.txt+30 -00 replies
11/16src: add geneve matching supportinclude/proto.h src/parser_bison.y src/proto.c +1 more+72 -30 replies
12/16tests: py: add geneve teststests/py/inet/geneve.t tests/py/inet/geneve.t.payload+137 -00 replies
13/16doc: add geneve matching expressiondoc/payload-expression.txt+33 -00 replies
14/16src: add gretap supportinclude/proto.h src/netlink_delinearize.c src/parser_bison.y +2 more+35 -30 replies
15/16tests: py: add gretap teststests/py/inet/gretap.t tests/py/inet/gretap.t.payload+108 -00 replies
16/16doc: add gretap matching expressiondoc/payload-expression.txt+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH nft,v2 00/16] vxlan, geneve, gre, gretap matching support

Hi,

The following patchset adds support for vxlan, geneve, gre and gretap. This patchset includes tests and documentation update.

1) Add eval_proto_ctx() to prepare for multiple protocol context to track inner and outer headers for the evaluation path.

2) Add dl_proto_ctx() to deal with multiple protocol context to track inner and outer header for the delinearize path.

3) Add vxlan support. This includes initial infrastructure for the new in-kernel inner expression. A protocol description is added to payload and meta expressions.

4) Add tests/py for vxlan.

5) Add tests/shell for vxlan.

6) Update vxlan documentation in nft(8) manpage.

7) Annotate --debug=proto-ctx for easier debugging of inner and outer protocol tracking.

8) Add gre support.

9) Add gre tests.

10) Update gre documentation in nft(8) manpage.

11) Add geneve support.

12) Add tests/py for geneve.

13) Update geneve documentation in nft(8) manpage.

14) Add gretap support

15) Add tests/py for gretap.

16) Update gretap documentation in nft(8) manpage.

Pablo Neira Ayuso (16):
src: add eval_proto_ctx()
src: add dl_proto_ctx()
src: add vxlan matching support
tests: py: add vxlan tests
tests: shell: add vxlan set tests
doc: add vxlan matching expression
src: display (inner) tag in --debug=proto-ctx
src: add gre support
tests: py: add gre tests
doc: add gre matching expression
src: add geneve matching support
tests: py: add geneve tests
doc: add geneve matching expression
src: add gretap support
tests: py: add gretap tests
doc: add gretap matching expression

 doc/payload-expression.txt                   | 154 ++++++++++
 include/expression.h                         |   2 +
 include/linux/netfilter/nf_tables.h          |  27 ++
 include/netlink.h                            |  11 +-
 include/parser.h                             |   1 +
 include/payload.h                            |   4 +
 include/proto.h                              |  58 +++-
 include/rule.h                               |   3 +-
 src/evaluate.c                               | 286 ++++++++++++-----
 src/expression.c                             |   1 +
 src/meta.c                                   |  21 +-
 src/netlink.c                                |   2 +-
 src/netlink_delinearize.c                    | 308 ++++++++++++++++---
 src/netlink_linearize.c                      |  80 ++++-
 src/parser_bison.y                           | 115 +++++++
 src/payload.c                                | 142 +++++++--
 src/proto.c                                  | 133 +++++++-
 src/rule.c                                   |   3 +-
 src/scanner.l                                |  13 +-
 src/xt.c                                     |   8 +-
 tests/py/inet/geneve.t                       |  23 ++
 tests/py/inet/geneve.t.payload               | 114 +++++++
 tests/py/inet/gre.t                          |  22 ++
 tests/py/inet/gre.t.payload                  |  78 +++++
 tests/py/inet/gretap.t                       |  21 ++
 tests/py/inet/gretap.t.payload               |  87 ++++++
 tests/py/inet/vxlan.t                        |  23 ++
 tests/py/inet/vxlan.t.payload                | 114 +++++++
 tests/shell/testcases/sets/dumps/inner_0.nft |  18 ++
 tests/shell/testcases/sets/inner_0           |  25 ++
 30 files changed, 1721 insertions(+), 176 deletions(-)
 create mode 100644 tests/py/inet/geneve.t
 create mode 100644 tests/py/inet/geneve.t.payload
 create mode 100644 tests/py/inet/gre.t
 create mode 100644 tests/py/inet/gre.t.payload
 create mode 100644 tests/py/inet/gretap.t
 create mode 100644 tests/py/inet/gretap.t.payload
 create mode 100644 tests/py/inet/vxlan.t
 create mode 100644 tests/py/inet/vxlan.t.payload
 create mode 100644 tests/shell/testcases/sets/dumps/inner_0.nft
 create mode 100755 tests/shell/testcases/sets/inner_0

--
2.30.2