dpif-linux: Use get_32aligned_u64() in an appropriate place.
[openvswitch] / lib / meta-flow.c
index f2f1348474428f7c731aa74832ae5a3acdb9c528..d5226f021a60e08ef0a9564463b4e07ab4dcd35f 100644 (file)
@@ -716,7 +716,7 @@ mf_get_value(const struct mf_field *mf, const struct flow *flow,
 #if FLOW_N_REGS > 5
 #error
 #endif
-        value->be32 = htonl(flow->regs[0]);
+        value->be32 = htonl(flow->regs[mf->id - MFF_REG0]);
         break;
 
     case MFF_ETH_SRC: