Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
nexedi
linux
Commits
0d8fd254
Commit
0d8fd254
authored
Jan 12, 2005
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PKT_SCHED]: tcf_exts: rate_tlv is optional
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
8d7c6945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/sched/cls_api.c
net/sched/cls_api.c
+3
-3
No files found.
net/sched/cls_api.c
View file @
0d8fd254
...
...
@@ -479,7 +479,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
int
err
;
struct
tc_action
*
act
;
if
(
map
->
police
&&
tb
[
map
->
police
-
1
]
&&
rate_tlv
)
{
if
(
map
->
police
&&
tb
[
map
->
police
-
1
])
{
act
=
tcf_action_init_1
(
tb
[
map
->
police
-
1
],
rate_tlv
,
"police"
,
TCA_ACT_NOREPLACE
,
TCA_ACT_BIND
,
&
err
);
if
(
act
==
NULL
)
...
...
@@ -487,7 +487,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
act
->
type
=
TCA_OLD_COMPAT
;
exts
->
action
=
act
;
}
else
if
(
map
->
action
&&
tb
[
map
->
action
-
1
]
&&
rate_tlv
)
{
}
else
if
(
map
->
action
&&
tb
[
map
->
action
-
1
])
{
act
=
tcf_action_init
(
tb
[
map
->
action
-
1
],
rate_tlv
,
NULL
,
TCA_ACT_NOREPLACE
,
TCA_ACT_BIND
,
&
err
);
if
(
act
==
NULL
)
...
...
@@ -496,7 +496,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
exts
->
action
=
act
;
}
#elif defined CONFIG_NET_CLS_POLICE
if
(
map
->
police
&&
tb
[
map
->
police
-
1
]
&&
rate_tlv
)
{
if
(
map
->
police
&&
tb
[
map
->
police
-
1
])
{
struct
tcf_police
*
p
;
p
=
tcf_police_locate
(
tb
[
map
->
police
-
1
],
rate_tlv
);
...
...
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