datapath: Fix multipart datapath dumps.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Jan 2012 17:58:17 +0000 (09:58 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Jan 2012 18:01:53 +0000 (10:01 -0800)
commitc0df900af95845f1d113873827ba8aab5cdd2e11
tree73c51c09c7bfd746eb9dd41991c4a5d733d2b13f
parentf0af39ff6cbe2e4be7e58bd9993d22490774ccb0
datapath: Fix multipart datapath dumps.

The logic to split up the list of datapaths into multiple Netlink messages
was simply wrong, causing the list to be terminated after the first part.
Only about the first 50 datapaths would be dumped.  This fixes the
problem.

Bug #9124.
Reported-by: Paul Ingram <paul@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c