diff options
author | Ben Pfaff <blp@ovn.org> | 2017-04-18 11:22:05 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-04-21 08:20:06 -0700 |
commit | 6846e91e6fb0c2da8b4ab6f64257bb259f221b77 (patch) | |
tree | 9b9c8e8962fe2ebca8da46662c427f333e8d1e2c /ofproto | |
parent | b02e6cf86aa2a01ab0717b390e1090269b2ff3cb (diff) | |
download | openvswitch-6846e91e6fb0c2da8b4ab6f64257bb259f221b77.tar.gz |
flow: New function flow_clear_conntrack().
This will have a new user in an upcoming commit.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Miguel Angel Ajo <majopela@redhat.com>
Diffstat (limited to 'ofproto')
-rw-r--r-- | ofproto/ofproto-dpif-xlate.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 238aae41b..64452ed20 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -3216,23 +3216,7 @@ static void clear_conntrack(struct xlate_ctx *ctx) { ctx->conntracked = false; - - struct flow *flow = &ctx->xin->flow; - flow->ct_state = 0; - flow->ct_zone = 0; - flow->ct_mark = 0; - flow->ct_label = OVS_U128_ZERO; - - flow->ct_nw_proto = 0; - flow->ct_tp_src = 0; - flow->ct_tp_dst = 0; - if (flow->dl_type == htons(ETH_TYPE_IP)) { - flow->ct_nw_src = 0; - flow->ct_nw_dst = 0; - } if (flow->dl_type == htons(ETH_TYPE_IPV6)) { - memset(&flow->ct_ipv6_src, 0, sizeof flow->ct_ipv6_src); - memset(&flow->ct_ipv6_dst, 0, sizeof flow->ct_ipv6_dst); - } + flow_clear_conntrack(&ctx->xin->flow); } static bool |