From 5f9c43922b2b9e52ad61e5b8203854881da793a4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 9 Jun 2023 10:17:58 +0000 Subject: [PATCH] ports: bonding: Use correct enum for mode Signed-off-by: Michael Tremer --- src/networkd/port-bonding.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/networkd/port-bonding.c b/src/networkd/port-bonding.c index ad02b5d7..60649572 100644 --- a/src/networkd/port-bonding.c +++ b/src/networkd/port-bonding.c @@ -97,13 +97,13 @@ int nw_port_bonding_set_mode(nw_port* port, const char* mode) { const int m = nw_port_bonding_mode_from_string(mode); switch (m) { - case BOND_MODE_ROUNDROBIN: - case BOND_MODE_ACTIVEBACKUP: - case BOND_MODE_XOR: - case BOND_MODE_BROADCAST: - case BOND_MODE_8023AD: - case BOND_MODE_TLB: - case BOND_MODE_ALB: + case NW_BONDING_MODE_ROUNDROBIN: + case NW_BONDING_MODE_ACTIVEBACKUP: + case NW_BONDING_MODE_XOR: + case NW_BONDING_MODE_BROADCAST: + case NW_BONDING_MODE_8023AD: + case NW_BONDING_MODE_TLB: + case NW_BONDING_MODE_ALB: port->bonding.mode = m; break; -- 2.47.3