Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
240b3573
Commit
240b3573
authored
Mar 02, 2016
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
9ecf3da9
67eedcd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
ip/iplink.c
ip/iplink.c
+13
-0
ip/iprule.c
ip/iprule.c
+3
-2
man/man8/ip-link.8.in
man/man8/ip-link.8.in
+6
-1
No files found.
ip/iplink.c
View file @
240b3573
...
...
@@ -82,6 +82,7 @@ void iplink_usage(void)
fprintf
(
stderr
,
" [ spoofchk { on | off} ] ]
\n
"
);
fprintf
(
stderr
,
" [ query_rss { on | off} ] ]
\n
"
);
fprintf
(
stderr
,
" [ state { auto | enable | disable} ] ]
\n
"
);
fprintf
(
stderr
,
" [ trust { on | off} ] ]
\n
"
);
fprintf
(
stderr
,
" [ master DEVICE ]
\n
"
);
fprintf
(
stderr
,
" [ nomaster ]
\n
"
);
fprintf
(
stderr
,
" [ addrgenmode { eui64 | none | stable_secret | random } ]
\n
"
);
...
...
@@ -356,6 +357,18 @@ static int iplink_parse_vf(int vf, int *argcp, char ***argvp,
ivs
.
vf
=
vf
;
addattr_l
(
&
req
->
n
,
sizeof
(
*
req
),
IFLA_VF_RSS_QUERY_EN
,
&
ivs
,
sizeof
(
ivs
));
}
else
if
(
matches
(
*
argv
,
"trust"
)
==
0
)
{
struct
ifla_vf_trust
ivt
;
NEXT_ARG
();
if
(
matches
(
*
argv
,
"on"
)
==
0
)
ivt
.
setting
=
1
;
else
if
(
matches
(
*
argv
,
"off"
)
==
0
)
ivt
.
setting
=
0
;
else
invarg
(
"Invalid
\"
trust
\"
value
\n
"
,
*
argv
);
ivt
.
vf
=
vf
;
addattr_l
(
&
req
->
n
,
sizeof
(
*
req
),
IFLA_VF_TRUST
,
&
ivt
,
sizeof
(
ivt
));
}
else
if
(
matches
(
*
argv
,
"state"
)
==
0
)
{
struct
ifla_vf_link_state
ivl
;
...
...
ip/iprule.c
View file @
240b3573
...
...
@@ -33,8 +33,9 @@ static void usage(void) __attribute__((noreturn));
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: ip rule [ list | add | del | flush | save ] SELECTOR ACTION
\n
"
);
fprintf
(
stderr
,
" ip rule restore
\n
"
);
fprintf
(
stderr
,
"Usage: ip rule { add | del } SELECTOR ACTION
\n
"
);
fprintf
(
stderr
,
" ip rule { flush | save | restore }
\n
"
);
fprintf
(
stderr
,
" ip rule [ list ]
\n
"
);
fprintf
(
stderr
,
"SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]
\n
"
);
fprintf
(
stderr
,
" [ iif STRING ] [ oif STRING ] [ pref NUMBER ]
\n
"
);
fprintf
(
stderr
,
"ACTION := [ table TABLE_ID ]
\n
"
);
...
...
man/man8/ip-link.8.in
View file @
240b3573
...
...
@@ -142,7 +142,8 @@ ip-link \- network device configuration
.B min_tx_rate
.IR TXRATE " ] ["
.B spoofchk { on | off } ] [
.B state { auto | enable | disable}
.B state { auto | enable | disable} ] [
.B trust { on | off }
] |
.br
.B master
...
...
@@ -1019,6 +1020,10 @@ parameter must be specified.
reflection of the PF link state, enable lets the VF to communicate with other VFs on
this host even if the PF link state is down, disable causes the HW to drop any packets
sent by the VF.
.sp
.BI trust " on|off"
- trust the specified VF user. This enables that VF user can set a specific feature
which may impact security and/or performance. (e.g. VF multicast promiscuous mode)
.in -8
.TP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment