X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.c;h=2565ec7fffa06c671d21bb043a4e7f922b59f89b;hb=816fd533f85923c03cf8d9d6450bd9a0845d5160;hp=6fe1611e255f76dca0084835df42f99636f26383;hpb=6cc7ea5ea05a71f01526577439ebedcc133f99cd;p=sliver-openvswitch.git diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 6fe1611e2..2565ec7ff 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -29,6 +29,7 @@ #include "dynamic-string.h" #include "learn.h" #include "multipath.h" +#include "meta-flow.h" #include "nx-match.h" #include "ofp-errors.h" #include "ofp-util.h" @@ -2320,6 +2321,7 @@ static enum ofperr check_output_reg(const struct nx_action_output_reg *naor, const struct flow *flow) { + struct mf_subfield src; size_t i; for (i = 0; i < sizeof naor->zero; i++) { @@ -2328,8 +2330,8 @@ check_output_reg(const struct nx_action_output_reg *naor, } } - return nxm_src_check(naor->src, nxm_decode_ofs(naor->ofs_nbits), - nxm_decode_n_bits(naor->ofs_nbits), flow); + nxm_decode(&src, naor->src, naor->ofs_nbits); + return mf_check_src(&src, flow); } enum ofperr