From be90cbdd4a2e141b4e802c241e47977ee0d8e9e6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 17 Jan 2012 13:33:39 +0000 Subject: [PATCH] --- yaml --- r: 286216 b: refs/heads/master c: 77676fdbd54f0c6fdb71d55d9758bebc69a00fc4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/openvswitch/datapath.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 849b18466510..fc104f2a7bea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 766e9f1be128bcdc15aa7d07084d0d51e873b5ed +refs/heads/master: 77676fdbd54f0c6fdb71d55d9758bebc69a00fc4 diff --git a/trunk/net/openvswitch/datapath.c b/trunk/net/openvswitch/datapath.c index d9d01cbf0fcb..ce64c18b8c79 100644 --- a/trunk/net/openvswitch/datapath.c +++ b/trunk/net/openvswitch/datapath.c @@ -1,5 +1,5 @@ /* - * 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) - continue; - 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, OVS_DP_CMD_NEW) < 0) break;