Commit 77676fdb authored by Ben Pfaff's avatar Ben Pfaff Committed by David S. Miller
Browse files

openvswitch: 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
Reported-by: default avatarPaul Ingram <>
Signed-off-by: default avatarBen Pfaff <>
Signed-off-by: default avatarJesse Gross <>
Signed-off-by: default avatarDavid S. Miller <>
parent 766e9f1b
* Copyright (c) 2007-2011 Nicira Networks.
* Copyright (c) 2007-2012 Nicira Networks.
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
......@@ -1396,9 +1396,8 @@ static int ovs_dp_cmd_dump(struct sk_buff *skb, struct netlink_callback *cb)
int i = 0;
list_for_each_entry(dp, &dps, list_node) {
if (i < skip)
if (ovs_dp_cmd_fill_info(dp, skb, NETLINK_CB(cb->skb).pid,
if (i >= skip &&
ovs_dp_cmd_fill_info(dp, skb, NETLINK_CB(cb->skb).pid,
cb->nlh->nlmsg_seq, NLM_F_MULTI,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment