summaryrefslogtreecommitdiff
path: root/lib/tnl-ports.c
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2015-07-15 13:17:01 -0700
committerJarno Rajahalme <jrajahalme@nicira.com>2015-07-15 13:17:10 -0700
commit8fd4792403254f868398a89fb5625830ee5a08eb (patch)
treeeed8d2700e60d70e22843afe028292460d4fef84 /lib/tnl-ports.c
parent1aaf0ada55979e0e30dc23fbf1c88b6aae06e93e (diff)
downloadopenvswitch-8fd4792403254f868398a89fb5625830ee5a08eb.tar.gz
flow: Always inline miniflows.
Now that performance critical code already inlines miniflows and minimasks, we can simplify struct miniflow by always dynamically allocating miniflows and minimasks to the correct size. This changes the struct minimatch to always contain pointers to its miniflow and minimask. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/tnl-ports.c')
-rw-r--r--lib/tnl-ports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tnl-ports.c b/lib/tnl-ports.c
index 9a87b7432..8f7a2a435 100644
--- a/lib/tnl-ports.c
+++ b/lib/tnl-ports.c
@@ -162,8 +162,8 @@ tnl_port_show(struct unixctl_conn *conn, int argc OVS_UNUSED,
};
ds_put_format(&ds, "%s (%"PRIu32") : ", p->dev_name, p->portno);
- minimask_expand(&p->cr.match.mask, &wc);
- miniflow_expand(&p->cr.match.flow, &flow);
+ minimask_expand(p->cr.match.mask, &wc);
+ miniflow_expand(p->cr.match.flow, &flow);
/* Key. */
odp_parms.odp_in_port = flow.in_port.odp_port;