This patch updates hwaddr which is used by LACP runner
to set all ports macaddr.
Signed-off-by: Flavio Leitner <fbl(a)redhat.com>
---
teamd/teamd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/teamd/teamd.c b/teamd/teamd.c
index da11f5f..d1e335b 100644
--- a/teamd/teamd.c
+++ b/teamd/teamd.c
@@ -875,7 +875,7 @@ static int teamd_add_ports(struct teamd_context *ctx)
static int teamd_hwaddr_check_change(struct teamd_context *ctx,
struct teamd_port *tdport)
{
- const char *hwaddr;
+ char *hwaddr;
unsigned char hwaddr_len;
int err;
@@ -893,6 +893,7 @@ static int teamd_hwaddr_check_change(struct teamd_context *ctx,
teamd_log_err("Failed to set team device hardware address.");
return err;
}
+ ctx->hwaddr = hwaddr;
return 0;
}
--
1.8.5.3
Show replies by thread