aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorRavi Pokala <rpokala@FreeBSD.org>2020-06-11 22:46:08 +0000
committerRavi Pokala <rpokala@FreeBSD.org>2020-06-11 22:46:08 +0000
commit2a73c8f5e1dfdb1d427980b86730ba348c4cdc09 (patch)
tree2225f7f116abe1b25d0170db0153fe9bcd4bb32e /sbin/ifconfig
parentd06110e566f9b7e5d6736e6b95c509e100a1e0c4 (diff)
downloadsrc-2a73c8f5e1dfdb1d427980b86730ba348c4cdc09.tar.gz
src-2a73c8f5e1dfdb1d427980b86730ba348c4cdc09.zip
Decode the "LACP Fast Timeout" LAGG option flag
r286700 added the "lacp_fast_timeout" option to `ifconfig', but we forgot to include the new option in the string used to decode the option bits. Add "LACP_FAST_TIMO" to LAGG_OPT_BITS. Also, s/LAGG_OPT_LACP_TIMEOUT/LAGG_OPT_LACP_FAST_TIMO/g , to be clearer that the flag indicates "Fast Timeout" mode. Reported by: Greg Foster <gfoster at panasas dot com> Reviewed by: jpaetzel MFC after: 1 week Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D25239
Notes
Notes: svn path=/head/; revision=362078
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/iflagg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ifconfig/iflagg.c b/sbin/ifconfig/iflagg.c
index 2abd34be19fa..a892ffd21eb0 100644
--- a/sbin/ifconfig/iflagg.c
+++ b/sbin/ifconfig/iflagg.c
@@ -141,8 +141,8 @@ setlaggsetopt(const char *val, int d, int s, const struct afswtch *afp)
case -LAGG_OPT_LACP_TXTEST:
case LAGG_OPT_LACP_RXTEST:
case -LAGG_OPT_LACP_RXTEST:
- case LAGG_OPT_LACP_TIMEOUT:
- case -LAGG_OPT_LACP_TIMEOUT:
+ case LAGG_OPT_LACP_FAST_TIMO:
+ case -LAGG_OPT_LACP_FAST_TIMO:
break;
default:
err(1, "Invalid lagg option");
@@ -316,8 +316,8 @@ static struct cmd lagg_cmds[] = {
DEF_CMD("-lacp_txtest", -LAGG_OPT_LACP_TXTEST, setlaggsetopt),
DEF_CMD("lacp_rxtest", LAGG_OPT_LACP_RXTEST, setlaggsetopt),
DEF_CMD("-lacp_rxtest", -LAGG_OPT_LACP_RXTEST, setlaggsetopt),
- DEF_CMD("lacp_fast_timeout", LAGG_OPT_LACP_TIMEOUT, setlaggsetopt),
- DEF_CMD("-lacp_fast_timeout", -LAGG_OPT_LACP_TIMEOUT, setlaggsetopt),
+ DEF_CMD("lacp_fast_timeout", LAGG_OPT_LACP_FAST_TIMO, setlaggsetopt),
+ DEF_CMD("-lacp_fast_timeout", -LAGG_OPT_LACP_FAST_TIMO, setlaggsetopt),
DEF_CMD_ARG("flowid_shift", setlaggflowidshift),
DEF_CMD_ARG("rr_limit", setlaggrr_limit),
};