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
8851071f
Commit
8851071f
authored
Aug 03, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PKT_SCHED]: Move sch_atm over to qdisc_priv().
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
0babba3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
net/sched/sch_atm.c
net/sched/sch_atm.c
+3
-2
No files found.
net/sched/sch_atm.c
View file @
8851071f
...
@@ -56,7 +56,7 @@ extern struct socket *sockfd_lookup(int fd, int *err); /* @@@ fix this */
...
@@ -56,7 +56,7 @@ extern struct socket *sockfd_lookup(int fd, int *err); /* @@@ fix this */
*/
*/
#define PRIV(sch)
((struct atm_qdisc_data *) (sch)->data
)
#define PRIV(sch)
qdisc_priv(sch
)
#define VCC2FLOW(vcc) ((struct atm_flow_data *) ((vcc)->user_back))
#define VCC2FLOW(vcc) ((struct atm_flow_data *) ((vcc)->user_back))
...
@@ -104,9 +104,10 @@ static int find_flow(struct atm_qdisc_data *qdisc,struct atm_flow_data *flow)
...
@@ -104,9 +104,10 @@ static int find_flow(struct atm_qdisc_data *qdisc,struct atm_flow_data *flow)
static
__inline__
struct
atm_flow_data
*
lookup_flow
(
struct
Qdisc
*
sch
,
static
__inline__
struct
atm_flow_data
*
lookup_flow
(
struct
Qdisc
*
sch
,
u32
classid
)
u32
classid
)
{
{
struct
atm_qdisc_data
*
p
=
PRIV
(
sch
);
struct
atm_flow_data
*
flow
;
struct
atm_flow_data
*
flow
;
for
(
flow
=
PRIV
(
sch
)
->
flows
;
flow
;
flow
=
flow
->
next
)
for
(
flow
=
p
->
flows
;
flow
;
flow
=
flow
->
next
)
if
(
flow
->
classid
==
classid
)
break
;
if
(
flow
->
classid
==
classid
)
break
;
return
flow
;
return
flow
;
}
}
...
...
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