tests: py: remove duplicate payloads.
PATCH 1/1 tests: py: remove duplicate payloads.
nft-test.py only needs one payload per rule, but a number of rules have duplicates, typically one per address family, so just keep the last payload for rules listed more than once.
Signed-off-by Jeremy Sowden <[email protected]>
--- tests/py/any/ct.t.payload | 14 - tests/py/any/tcpopt.t.payload | 336 ------------------------ tests/py/inet/ether-ip.t.payload.netdev | 15 -- tests/py/inet/osf.t.payload | 108 -------- tests/py/inet/socket.t.payload | 50 ---- tests/py/inet/synproxy.t.payload | 48 ---- tests/py/netdev/reject.t.payload | 4 - 7 files changed, 575 deletions(-)
tests/py/any/ct.t.payload +0 -14
@@ -329,20 +329,6 @@ ip test-ip4 output [ meta load mark => reg 1 ] [ ct set mark with reg 1 ] -# ct mark set (meta mark | 0x10) << 8 -ip test-ip4 output - [ meta load mark => reg 1 ] - [ bitwise reg 1 = (reg=1 & 0xffffffef ) ^ 0x00000010 ] - [ bitwise reg 1 = ( reg 1 << 0x00000008 ) ] - [ ct set mark with reg 1 ] - -# ct mark set (meta mark | 0x10) << 8 -ip6 test-ip6 output - [ meta load mark => reg 1 ] - [ bitwise reg 1 = (reg=1 & 0xffffffef ) ^ 0x00000010 ] - [ bitwise reg 1 = ( reg 1 << 0x00000008 ) ] - [ ct set mark with reg 1 ] - # ct mark set (meta mark | 0x10) << 8 inet test-inet output [ meta load mark => reg 1 ]
tests/py/any/tcpopt.t.payload +0 -336
477 lines not on this page · raw message
tests/py/inet/ether-ip.t.payload.netdev +0 -15
@@ -13,21 +13,6 @@ netdev test-netdev ingress [ payload load 6b @ link header + 6 => reg 1 ] [ cmp eq reg 1 0x0c540f00 0x00000411 ] -# tcp dport 22 ip daddr 1.2.3.4 ether saddr 00:0f:54:0c:11:04 -netdev test-netdev ingress - [ meta load l4proto => reg 1 ] - [ cmp eq reg 1 0x00000006 ] - [ payload load 2b @ transport header + 2 => reg 1 ] - [ cmp eq reg 1 0x00001600 ] - [ meta load protocol => reg 1 ] - [ cmp eq reg 1 0x00000008 ] - [ payload load 4b @ network header + 16 => reg 1 ] - [ cmp eq reg 1 0x04030201 ] - [ meta load iiftype => reg 1 ] - [ cmp eq reg 1 0x00000001 ] - [ payload load 6b @ link header + 6 => reg 1 ] - [ cmp eq reg 1 0x0c540f00 0x00000411 ] - # tcp dport 22 iiftype ether ip daddr 1.2.3.4 ether saddr 00:0f:54:0c:11:4 accept netdev test-netdev ingress [ meta load l4proto => reg 1 ]
tests/py/inet/osf.t.payload +0 -108
149 lines not on this page · raw message
tests/py/inet/socket.t.payload +0 -50
73 lines not on this page · raw message
tests/py/inet/synproxy.t.payload +0 -48
71 lines not on this page · raw message
tests/py/netdev/reject.t.payload +0 -4
@@ -6,10 +6,6 @@ netdev netdev [ reject type 2 code 1 ] -# reject -netdev - [ reject type 2 code 1 ] - # reject with icmp type admin-prohibited netdev [ reject type 0 code 13 ]
Signature · 1 line
2.28.0
Florian Westphal
maintainerQuoted 5 lines · Jeremy Sowden
nft-test.pyonly needs one payload per rule, but a number of rules have duplicates, typically one per address family, so just keep the last payload for rules listed more than once.Signed-off-by Jeremy Sowden <[email protected]>
Right, nft-test.py shows no changes with those removed, applied, thanks!