mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-12 21:54:23 +00:00
red: fix adaptive spelling
Reported-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
This commit is contained in:
parent
e7e4abea3e
commit
54a2fce832
@ -28,7 +28,7 @@
|
|||||||
static void explain(void)
|
static void explain(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: ... red limit BYTES [min BYTES] [max BYTES] avpkt BYTES [burst PACKETS]\n");
|
fprintf(stderr, "Usage: ... red limit BYTES [min BYTES] [max BYTES] avpkt BYTES [burst PACKETS]\n");
|
||||||
fprintf(stderr, " [adaptative] [probability PROBABILITY] bandwidth KBPS\n");
|
fprintf(stderr, " [adaptive] [probability PROBABILITY] bandwidth KBPS\n");
|
||||||
fprintf(stderr, " [ecn] [harddrop]\n");
|
fprintf(stderr, " [ecn] [harddrop]\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,6 +95,8 @@ static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nl
|
|||||||
opt.flags |= TC_RED_HARDDROP;
|
opt.flags |= TC_RED_HARDDROP;
|
||||||
} else if (strcmp(*argv, "adaptative") == 0) {
|
} else if (strcmp(*argv, "adaptative") == 0) {
|
||||||
opt.flags |= TC_RED_ADAPTATIVE;
|
opt.flags |= TC_RED_ADAPTATIVE;
|
||||||
|
} else if (strcmp(*argv, "adaptive") == 0) {
|
||||||
|
opt.flags |= TC_RED_ADAPTATIVE;
|
||||||
} else if (strcmp(*argv, "help") == 0) {
|
} else if (strcmp(*argv, "help") == 0) {
|
||||||
explain();
|
explain();
|
||||||
return -1;
|
return -1;
|
||||||
@ -184,7 +186,7 @@ static int red_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
|||||||
if (qopt->flags & TC_RED_HARDDROP)
|
if (qopt->flags & TC_RED_HARDDROP)
|
||||||
fprintf(f, "harddrop ");
|
fprintf(f, "harddrop ");
|
||||||
if (qopt->flags & TC_RED_ADAPTATIVE)
|
if (qopt->flags & TC_RED_ADAPTATIVE)
|
||||||
fprintf(f, "adaptative ");
|
fprintf(f, "adaptive ");
|
||||||
if (show_details) {
|
if (show_details) {
|
||||||
fprintf(f, "ewma %u ", qopt->Wlog);
|
fprintf(f, "ewma %u ", qopt->Wlog);
|
||||||
if (max_P)
|
if (max_P)
|
||||||
|
Loading…
Reference in New Issue
Block a user