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:00:43 +0000 (10:00 -0800)
commitebed22466879365eb96842f13b85593045abccea
tree434f43bcea3a726eb9bd4423ae3404d32ec4dc76
parentb87dd2dcf4a2af434d1b92f6efcb32f54fee03b2
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