diff options
author | Ben Pfaff <blp@nicira.com> | 2015-07-29 14:12:26 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-07-31 15:14:04 -0700 |
commit | 227a0141b90a17db750df238fa4f9f3ade6c6401 (patch) | |
tree | de5584be0001079012ea6b221497b1b0a1f95c99 /ofproto/tunnel.h | |
parent | 0731abc59db08656c7d72761c7a730dad9e928b8 (diff) | |
download | openvswitch-227a0141b90a17db750df238fa4f9f3ade6c6401.tar.gz |
tunnel: Break tnl_xlate_init() into two separate functions.
It seems to me that tnl_xlate_init() has two almost-separate tasks. First,
it marks most of the 'wc' bits for tunnels. Second, it checks and updates
ECN bits. This commit breaks tnl_xlate_init() into two separate functions,
one for each of those tasks.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Diffstat (limited to 'ofproto/tunnel.h')
-rw-r--r-- | ofproto/tunnel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h index 8f9ddabcf..4a28df959 100644 --- a/ofproto/tunnel.h +++ b/ofproto/tunnel.h @@ -38,7 +38,8 @@ int tnl_port_add(const struct ofport_dpif *, const struct netdev *, void tnl_port_del(const struct ofport_dpif *); const struct ofport_dpif *tnl_port_receive(const struct flow *); -bool tnl_xlate_init(struct flow *, struct flow_wildcards *); +void tnl_wc_init(struct flow *, struct flow_wildcards *); +bool tnl_process_ecn(struct flow *); odp_port_t tnl_port_send(const struct ofport_dpif *, struct flow *, struct flow_wildcards *wc); |