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 17:58:17 +0000 (09:58 -0800)
commita2bab2f0b1e92dd40a1bb7a74d4e83235d64c3f5
tree772e5831a7a4712a92fae85205f68a0fde10e384
parentb6d1df18552b1c872ceeafb7f6dbfd2717f89cba
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