From patchwork Tue Nov 14 18:15:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 837975 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ybwg25f3sz9s7c for ; Wed, 15 Nov 2017 05:15:58 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 2F983AE7; Tue, 14 Nov 2017 18:15:20 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 44B78414 for ; Tue, 14 Nov 2017 18:15:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id DDB01488 for ; Tue, 14 Nov 2017 18:15:17 +0000 (UTC) X-Originating-IP: 208.91.3.26 Received: from sigabrt.benpfaff.org (unknown [208.91.3.26]) (Authenticated sender: blp@ovn.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C3CC61720BF; Tue, 14 Nov 2017 19:15:15 +0100 (CET) From: Ben Pfaff To: dev@openvswitch.org Date: Tue, 14 Nov 2017 10:15:10 -0800 Message-Id: <20171114181511.12904-2-blp@ovn.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20171114181511.12904-1-blp@ovn.org> References: <20171114181511.12904-1-blp@ovn.org> X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Ben Pfaff Subject: [ovs-dev] [PATCH v2 1/2] netdev: Indentation and style fixes. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org White space changes only. Signed-off-by: Ben Pfaff Acked-by: William Tu --- lib/netdev.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/netdev.c b/lib/netdev.c index 7aa3e0aedb4c..8dd35864d7cb 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -2314,10 +2314,10 @@ netdev_ifindex_to_odp_port(int ifindex) ovs_mutex_lock(&netdev_hmap_mutex); HMAP_FOR_EACH_WITH_HASH(data, node, ifindex, &ifindex_to_port) { - if (data->ifindex == ifindex) { - ret = data->port; - break; - } + if (data->ifindex == ifindex) { + ret = data->port; + break; + } } ovs_mutex_unlock(&netdev_hmap_mutex); @@ -2330,7 +2330,7 @@ netdev_ports_flow_flush(const struct dpif_class *dpif_class) struct port_to_netdev_data *data; ovs_mutex_lock(&netdev_hmap_mutex); - HMAP_FOR_EACH(data, node, &port_to_netdev) { + HMAP_FOR_EACH (data, node, &port_to_netdev) { if (data->dpif_class == dpif_class) { netdev_flow_flush(data->netdev); } @@ -2347,7 +2347,7 @@ netdev_ports_flow_dump_create(const struct dpif_class *dpif_class, int *ports) int i = 0; ovs_mutex_lock(&netdev_hmap_mutex); - HMAP_FOR_EACH(data, node, &port_to_netdev) { + HMAP_FOR_EACH (data, node, &port_to_netdev) { if (data->dpif_class == dpif_class) { count++; } @@ -2355,7 +2355,7 @@ netdev_ports_flow_dump_create(const struct dpif_class *dpif_class, int *ports) dumps = count ? xzalloc(sizeof *dumps * count) : NULL; - HMAP_FOR_EACH(data, node, &port_to_netdev) { + HMAP_FOR_EACH (data, node, &port_to_netdev) { if (data->dpif_class == dpif_class) { if (netdev_flow_dump_create(data->netdev, &dumps[i])) { continue; @@ -2379,7 +2379,7 @@ netdev_ports_flow_del(const struct dpif_class *dpif_class, struct port_to_netdev_data *data; ovs_mutex_lock(&netdev_hmap_mutex); - HMAP_FOR_EACH(data, node, &port_to_netdev) { + HMAP_FOR_EACH (data, node, &port_to_netdev) { if (data->dpif_class == dpif_class && !netdev_flow_del(data->netdev, ufid, stats)) { ovs_mutex_unlock(&netdev_hmap_mutex); @@ -2399,7 +2399,7 @@ netdev_ports_flow_get(const struct dpif_class *dpif_class, struct match *match, struct port_to_netdev_data *data; ovs_mutex_lock(&netdev_hmap_mutex); - HMAP_FOR_EACH(data, node, &port_to_netdev) { + HMAP_FOR_EACH (data, node, &port_to_netdev) { if (data->dpif_class == dpif_class && !netdev_flow_get(data->netdev, match, actions, ufid, stats, buf)) { @@ -2418,7 +2418,7 @@ netdev_ports_flow_init(void) struct port_to_netdev_data *data; ovs_mutex_lock(&netdev_hmap_mutex); - HMAP_FOR_EACH(data, node, &port_to_netdev) { + HMAP_FOR_EACH (data, node, &port_to_netdev) { netdev_init_flow_api(data->netdev); } ovs_mutex_unlock(&netdev_hmap_mutex);