dpif_netdev_execute: Extract flow key from the packet.
authorJarno Rajahalme <jrajahalme@nicira.com>
Thu, 14 Nov 2013 22:35:58 +0000 (14:35 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 14 Nov 2013 22:35:58 +0000 (14:35 -0800)
commit24b7e19469dbd2cb3fdf8db70ef0c7b4bc851f17
treedf7b2e7f960a5dcf34e912f94bc85e4334a779aa
parentf5e414cfb163579b938ef36c7b59ac067215f466
dpif_netdev_execute: Extract flow key from the packet.

Extract the flow key from the packet instead of the execute->key.
This reflects how the kernel datapath behaves.

Also use ofpbuf_clone_with_headroom() instead of open coding the same.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c