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
Kirill Smelkov
linux
Commits
b2185288
Commit
b2185288
authored
Jan 13, 2005
by
Lennert Buytenhek
Committed by
David S. Miller
Jan 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Tone down the verbosity of diverter messages.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
3ca3167c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
net/core/dv.c
net/core/dv.c
+9
-16
No files found.
net/core/dv.c
View file @
b2185288
...
@@ -52,26 +52,20 @@ int alloc_divert_blk(struct net_device *dev)
...
@@ -52,26 +52,20 @@ int alloc_divert_blk(struct net_device *dev)
{
{
int
alloc_size
=
(
sizeof
(
struct
divert_blk
)
+
3
)
&
~
3
;
int
alloc_size
=
(
sizeof
(
struct
divert_blk
)
+
3
)
&
~
3
;
dev
->
divert
=
NULL
;
if
(
dev
->
type
==
ARPHRD_ETHER
)
{
if
(
dev
->
type
==
ARPHRD_ETHER
)
{
printk
(
KERN_DEBUG
"divert: allocating divert_blk for %s
\n
"
,
dev
->
name
);
dev
->
divert
=
(
struct
divert_blk
*
)
dev
->
divert
=
(
struct
divert_blk
*
)
kmalloc
(
alloc_size
,
GFP_KERNEL
);
kmalloc
(
alloc_size
,
GFP_KERNEL
);
if
(
dev
->
divert
==
NULL
)
{
if
(
dev
->
divert
==
NULL
)
{
printk
(
KERN_
DEBUG
"divert: unable to allocate divert_blk for %s
\n
"
,
printk
(
KERN_
INFO
"divert: unable to allocate divert_blk for %s
\n
"
,
dev
->
name
);
dev
->
name
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
else
{
memset
(
dev
->
divert
,
0
,
sizeof
(
struct
divert_blk
));
}
}
dev_hold
(
dev
);
}
else
{
printk
(
KERN_DEBUG
"divert: not allocating divert_blk for non-ethernet device %s
\n
"
,
dev
->
name
);
dev
->
divert
=
NULL
;
memset
(
dev
->
divert
,
0
,
sizeof
(
struct
divert_blk
));
dev_hold
(
dev
);
}
}
return
0
;
return
0
;
}
}
...
@@ -85,11 +79,6 @@ void free_divert_blk(struct net_device *dev)
...
@@ -85,11 +79,6 @@ void free_divert_blk(struct net_device *dev)
kfree
(
dev
->
divert
);
kfree
(
dev
->
divert
);
dev
->
divert
=
NULL
;
dev
->
divert
=
NULL
;
dev_put
(
dev
);
dev_put
(
dev
);
printk
(
KERN_DEBUG
"divert: freeing divert_blk for %s
\n
"
,
dev
->
name
);
}
else
{
printk
(
KERN_DEBUG
"divert: no divert_blk to free, %s not ethernet
\n
"
,
dev
->
name
);
}
}
}
}
...
@@ -192,8 +181,12 @@ static int check_args(struct divert_cf *div_cf, struct net_device **dev)
...
@@ -192,8 +181,12 @@ static int check_args(struct divert_cf *div_cf, struct net_device **dev)
/*
/*
* control function of the diverter
* control function of the diverter
*/
*/
#if 0
#define DVDBG(a) \
#define DVDBG(a) \
printk(KERN_DEBUG "divert_ioctl() line %d %s\n", __LINE__, (a))
printk(KERN_DEBUG "divert_ioctl() line %d %s\n", __LINE__, (a))
#else
#define DVDBG(a)
#endif
int
divert_ioctl
(
unsigned
int
cmd
,
struct
divert_cf
__user
*
arg
)
int
divert_ioctl
(
unsigned
int
cmd
,
struct
divert_cf
__user
*
arg
)
{
{
...
...
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