tunnel: Break tnl_xlate_init() into two separate functions.
authorBen Pfaff <blp@nicira.com>
Wed, 29 Jul 2015 21:12:26 +0000 (14:12 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Jul 2015 22:14:04 +0000 (15:14 -0700)
commit227a0141b90a17db750df238fa4f9f3ade6c6401
treede5584be0001079012ea6b221497b1b0a1f95c99
parent0731abc59db08656c7d72761c7a730dad9e928b8
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>
ofproto/ofproto-dpif-xlate.c
ofproto/tunnel.c
ofproto/tunnel.h