dpif-linux: Fix a bug.
authorAlex Wang <alexw@nicira.com>
Tue, 17 Dec 2013 16:16:24 +0000 (16:16 +0000)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 17 Dec 2013 17:05:09 +0000 (09:05 -0800)
commitc3ee8a0a19a9494e1e3b1c688fa8aaa1120ba8d0
tree367a498b56a5d51b5d9c908bded6dd7b805d6de2
parent8119625482a328d6bcaa33c0f337df88ca5b4017
dpif-linux: Fix a bug.

Commit da546e0 (dpif: Allow execute to modify the packet.) introduced
a bug by subtracting the zero-value ofpbuf size by "sizeof(struct
nlattr)" and assigning the result back to the ofpbuf size.  This bug
causes the ovs-assert failure in facet_push_stats().

This commit fixes the bug by assigning the right value to the ofpbuf
size.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/dpif-linux.c