diff options
author | Mickey Spiegel <mickeys.dev@gmail.com> | 2017-05-16 23:04:56 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-30 10:57:16 -0700 |
commit | 00c875d0d315fa9fddfd5bae6ad92b08e67f2e7d (patch) | |
tree | 90232a2f2201434ab1023cc57dbd52b3a5d208aa /tests | |
parent | 6ecf961e7ce82a932c9665d401c0ac636e73f33b (diff) | |
download | openvswitch-00c875d0d315fa9fddfd5bae6ad92b08e67f2e7d.tar.gz |
ovn: Increase logical pipeline length from 16 to 24 stages.
The OVN ingress pipeline for a logical switch is maxed out at 16 stages.
This patch takes the simple approach of starting the ingress pipeline at
table 8 rather than table 16, and starting the egress pipeline at
table 40 rather than table 48.
Signed-off-by: Mickey Spiegel <mickeys.dev@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ovn.at | 40 | ||||
-rw-r--r-- | tests/test-ovn.c | 6 |
2 files changed, 23 insertions, 23 deletions
diff --git a/tests/ovn.at b/tests/ovn.at index 8abf45ae7..efcbd9139 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -643,41 +643,41 @@ output; # next next; - encodes as resubmit(,27) + encodes as resubmit(,19) next(11); formats as next; - encodes as resubmit(,27) + encodes as resubmit(,19) next(0); - encodes as resubmit(,16) -next(15); + encodes as resubmit(,8) +next(23); encodes as resubmit(,31) next(); Syntax error at `)' expecting "pipeline" or "table". next(10; Syntax error at `;' expecting `)'. -next(16); - "next" action cannot advance beyond table 15. +next(24); + "next" action cannot advance beyond table 23. next(table=11); formats as next; - encodes as resubmit(,27) + encodes as resubmit(,19) next(pipeline=ingress); formats as next; - encodes as resubmit(,27) + encodes as resubmit(,19) next(table=11, pipeline=ingress); formats as next; - encodes as resubmit(,27) + encodes as resubmit(,19) next(pipeline=ingress, table=11); formats as next; - encodes as resubmit(,27) + encodes as resubmit(,19) next(pipeline=egress); "next" action cannot advance from ingress to egress pipeline (use "output" action instead) next(table=10); formats as next(10); - encodes as resubmit(,26) + encodes as resubmit(,18) # Loading a constant value. tcp.dst=80; @@ -699,7 +699,7 @@ ip.ttl=4; has prereqs eth.type == 0x800 || eth.type == 0x86dd outport="eth0"; next; outport="LOCAL"; next; formats as outport = "eth0"; next; outport = "LOCAL"; next; - encodes as set_field:0x5->reg15,resubmit(,27),set_field:0xfffe->reg15,resubmit(,27) + encodes as set_field:0x5->reg15,resubmit(,19),set_field:0xfffe->reg15,resubmit(,19) inport[1] = 1; Cannot select subfield of string field inport. @@ -780,11 +780,11 @@ ip.ttl # load balancing. ct_lb; - encodes as ct(table=27,zone=NXM_NX_REG13[0..15],nat) + encodes as ct(table=19,zone=NXM_NX_REG13[0..15],nat) has prereqs ip ct_lb(); formats as ct_lb; - encodes as ct(table=27,zone=NXM_NX_REG13[0..15],nat) + encodes as ct(table=19,zone=NXM_NX_REG13[0..15],nat) has prereqs ip ct_lb(192.168.1.2:80, 192.168.1.3:80); encodes as group:1 @@ -803,7 +803,7 @@ ct_lb(foo); # ct_next ct_next; - encodes as ct(table=27,zone=NXM_NX_REG13[0..15]) + encodes as ct(table=19,zone=NXM_NX_REG13[0..15]) has prereqs ip # ct_commit @@ -855,10 +855,10 @@ ct_commit(ct_label=18446744073709551616); # ct_dnat ct_dnat; - encodes as ct(table=27,zone=NXM_NX_REG11[0..15],nat) + encodes as ct(table=19,zone=NXM_NX_REG11[0..15],nat) has prereqs ip ct_dnat(192.168.1.2); - encodes as ct(commit,table=27,zone=NXM_NX_REG11[0..15],nat(dst=192.168.1.2)) + encodes as ct(commit,table=19,zone=NXM_NX_REG11[0..15],nat(dst=192.168.1.2)) has prereqs ip ct_dnat(192.168.1.2, 192.168.1.3); @@ -872,10 +872,10 @@ ct_dnat(); # ct_snat ct_snat; - encodes as ct(table=27,zone=NXM_NX_REG12[0..15],nat) + encodes as ct(table=19,zone=NXM_NX_REG12[0..15],nat) has prereqs ip ct_snat(192.168.1.2); - encodes as ct(commit,table=27,zone=NXM_NX_REG12[0..15],nat(src=192.168.1.2)) + encodes as ct(commit,table=19,zone=NXM_NX_REG12[0..15],nat(src=192.168.1.2)) has prereqs ip ct_snat(192.168.1.2, 192.168.1.3); @@ -893,7 +893,7 @@ ct_clear; # clone clone { ip4.dst = 255.255.255.255; output; }; next; - encodes as clone(set_field:255.255.255.255->ip_dst,resubmit(,64)),resubmit(,27) + encodes as clone(set_field:255.255.255.255->ip_dst,resubmit(,64)),resubmit(,19) has prereqs eth.type == 0x800 # arp diff --git a/tests/test-ovn.c b/tests/test-ovn.c index 18860aeee..32efac478 100644 --- a/tests/test-ovn.c +++ b/tests/test-ovn.c @@ -1224,7 +1224,7 @@ test_parse_actions(struct ovs_cmdl_context *ctx OVS_UNUSED) .symtab = &symtab, .dhcp_opts = &dhcp_opts, .dhcpv6_opts = &dhcpv6_opts, - .n_tables = 16, + .n_tables = 24, .cur_ltable = 10, }; error = ovnacts_parse_string(ds_cstr(&input), &pp, &ovnacts, &prereqs); @@ -1245,8 +1245,8 @@ test_parse_actions(struct ovs_cmdl_context *ctx OVS_UNUSED) .group_table = &group_table, .pipeline = OVNACT_P_INGRESS, - .ingress_ptable = 16, - .egress_ptable = 48, + .ingress_ptable = 8, + .egress_ptable = 40, .output_ptable = 64, .mac_bind_ptable = 65, }; |