1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

cxgbetool(8): The VLAN tag provided in the action for a filter must be prefixed

with either '=' or '+'.  Fix the description of the parameter in the man page
while here.

Approved by:	re@ (kib@)
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2018-09-21 23:48:40 +00:00
parent ae1b0b825a
commit 1e16837679
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338872
2 changed files with 5 additions and 12 deletions

View File

@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd Sep 18, 2018
.Dd Sep 21, 2018
.Dt CXGBETOOL 8
.Os
.Sh NAME
@ -450,11 +450,11 @@ eport.
.It Cm vlan
Insert, remove, or rewrite the VLAN tag before switching the packet out of
eport.
.Cm vlan=none
.Cm none
removes the tag,
.Cm vlan= Ns Ar tag
.Cm = Ns Ar tag
replaces the existing tag with the one provided, and
.Cm vlan=+ Ns Ar tag
.Cm + Ns Ar tag
inserts the given tag into the frame.
.It Cm nat
Specify the desired NAT mode. Valid NAT modes values are:

View File

@ -1327,17 +1327,10 @@ set_filter(uint32_t idx, int argc, const char *argv[], int hash)
t.fs.newvlan = VLAN_REWRITE;
} else if (argv[start_arg + 1][0] == '+') {
t.fs.newvlan = VLAN_INSERT;
} else if (isdigit(argv[start_arg + 1][0]) &&
!parse_val_mask("vlan", args, &val, &mask, hash)) {
t.fs.val.vlan = val;
t.fs.mask.vlan = mask;
t.fs.val.vlan_vld = 1;
t.fs.mask.vlan_vld = 1;
} else {
warnx("unknown vlan parameter \"%s\"; must"
" be one of \"none\", \"=<vlan>\", "
" \"+<vlan>\", or \"<vlan>\"",
argv[start_arg + 1]);
" \"+<vlan>\"", argv[start_arg + 1]);
return (EINVAL);
}
if (t.fs.newvlan == VLAN_REWRITE ||