ofproto-dpif: Simplify send_packet().
authorEthan Jackson <ethan@nicira.com>
Wed, 8 May 2013 22:21:24 +0000 (15:21 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 9 May 2013 19:44:45 +0000 (12:44 -0700)
commit0f49659a40f6e19cf908b9a3f571cf738bba2881
tree1566cceb9cd23e10f90e211563938aa541fd871c
parent79e15b78532f770ed14d91714def962b6b5c3f16
ofproto-dpif: Simplify send_packet().

Before this patch, send_packet() manually constructed the required
datapath output actions.  This worked fine when these actions were
simple, however as outputting to tunnels and patch ports became
more complex, this required quite a bit of complex duplicated code.
This patch solves the problem by running through the standard
xlate_actions() code path instead.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c