dpif-linux: Fix the return type of dpif_linux_port_dump_next__().
authorAlex Wang <alexw@nicira.com>
Tue, 17 Dec 2013 22:37:09 +0000 (14:37 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 17 Dec 2013 23:10:16 +0000 (15:10 -0800)
commit7c1ef244f015cfd30ec388e3108cd5d93c32643a
treedb8a2b67be5fd482bac1509416d04a6c7e7bf9ff
parenta8d819675f3525a5416ea355382b2e9c47cb2e74
dpif-linux: Fix the return type of dpif_linux_port_dump_next__().

Commit 222837 (dpif-linux: Factor out port dumping helper functions.)
introduced a bug by making dpif_linux_port_dump_next__() return 'bool'
instead of 'int' as defined in dpif-provider.h.  This bug causes ovs-
vswitchd failure with SEGFAULT when processing slow-path packet.

This commit fixes the bug by following the dpif-provider specification.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-linux.c