dpif-netdev: Avoid useless flow copy in dp_netdev_flow_add().
authorEthan Jackson <ethan@nicira.com>
Mon, 28 Jul 2014 01:56:45 +0000 (18:56 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 5 Aug 2014 21:13:20 +0000 (14:13 -0700)
commitae2ceebd675cce9608aaf74b0d48e5412695aa94
treebe760c75f1bcb200d521148f0a6e786c180bb5d4
parentc0b0b0969c84fe69961794ff652185d3fb369718
dpif-netdev: Avoid useless flow copy in dp_netdev_flow_add().

This patch gives dp_netdev_flow_add() a match with which it can
initialize the classifier rule.  This prevents it from needing to copy
a flow and flow_wildcards into the match first.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c