diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-07-19 15:47:02 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-07-22 17:46:48 -0700 |
| commit | 43edca5717cf389eb87850abbf30efc738049921 (patch) | |
| tree | c2293c82bd2c7753e878afe45b66669880211f74 /tests | |
| parent | 711e0157cf345f1473247ec90c6ff39eb9f7743c (diff) | |
| download | openvswitch-43edca5717cf389eb87850abbf30efc738049921.tar.gz | |
nx-match: New helpers.
This patch creates two new helper functions, nxm_reg_load() and
nxm_dst_check(). The new nxm_dst_check() function may be used to
check the validity of destination fields used by actions. The new
nxm_reg_load() function may be used by actions which need to write
to NXM fields.
This patch also allows multipath and autopath to write their result
to non-register NXM fields.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopath.at | 6 | ||||
| -rw-r--r-- | tests/multipath.at | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tests/autopath.at b/tests/autopath.at index 79ecb02f8..6b837f84b 100644 --- a/tests/autopath.at +++ b/tests/autopath.at @@ -21,12 +21,6 @@ AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(bad, NXM_NX_REG0[[]])'], [1], [ ]) AT_CLEANUP -AT_SETUP([autopath action bad destination]) -AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1, NXM_OF_VLAN_TCI[[]])'], [1], [], - [ovs-ofctl: 1, NXM_OF_VLAN_TCI[[]]: destination field must be a register -]) -AT_CLEANUP - AT_SETUP([autopath action destination too narrow]) AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1,NXM_NX_REG0[[0..7]])'], [1], [], [ovs-ofctl: 1,NXM_NX_REG0[[0..7]]: 8-bit destination field has 256 possible values, less than required 65536 diff --git a/tests/multipath.at b/tests/multipath.at index 6eafa9a3f..361c2c47a 100644 --- a/tests/multipath.at +++ b/tests/multipath.at @@ -303,12 +303,6 @@ AT_CHECK([ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,0,0,NXM_NX ]) AT_CLEANUP -AT_SETUP([multipath action bad destination]) -AT_CHECK([ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,1,0,NXM_OF_VLAN_TCI[[]])'], [1], [], - [ovs-ofctl: eth_src,50,modulo_n,1,0,NXM_OF_VLAN_TCI[[]]: destination field must be register -]) -AT_CLEANUP - AT_SETUP([multipath action destination too narrow]) AT_CHECK([ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,1024,0,NXM_NX_REG0[[0..7]])'], [1], [], [ovs-ofctl: eth_src,50,modulo_n,1024,0,NXM_NX_REG0[[0..7]]: 8-bit destination field has 256 possible values, less than specified n_links 1024 |
