LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0008-teamd-fixed-couple-comments.patch of Package libteam (Project home:ods:ppc64)

From 37703ae65bb9d567299c1df9828352a744639491 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl@redhat.com>
Date: Fri, 21 Feb 2014 03:23:47 -0300
Subject: [patch libteam 3/3] teamd: fixed couple comments.

It should say 'disabled' instead.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 teamd/teamd_runner_activebackup.c | 2 +-
 teamd/teamd_runner_lacp.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/teamd/teamd_runner_activebackup.c b/teamd/teamd_runner_activebackup.c
index 7ed860f..b81f5d0 100644
--- a/teamd/teamd_runner_activebackup.c
+++ b/teamd/teamd_runner_activebackup.c
@@ -440,7 +440,7 @@ static int ab_port_added(struct teamd_context *ctx,
 		teamd_log_err("Failed to load port config.");
 		return err;
 	}
-	/* Newly added ports are enabled */
+	/* Newly added ports are disabled */
 	err = team_set_port_enabled(ctx->th, tdport->ifindex, false);
 	if (err) {
 		teamd_log_err("%s: Failed to disable port.", tdport->ifname);
diff --git a/teamd/teamd_runner_lacp.c b/teamd/teamd_runner_lacp.c
index 14f9473..1d35b52 100644
--- a/teamd/teamd_runner_lacp.c
+++ b/teamd/teamd_runner_lacp.c
@@ -1221,7 +1221,7 @@ static int lacp_port_added(struct teamd_context *ctx,
 		goto periodic_callback_del;
 	}
 
-	/* Newly added ports are enabled */
+	/* Newly added ports are disabled */
 	err = team_set_port_enabled(ctx->th, tdport->ifindex, false);
 	if (err) {
 		teamd_log_err("%s: Failed to disable port.", tdport->ifname);
-- 
1.8.5.3