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
a8f8aaee
Commit
a8f8aaee
authored
May 25, 2003
by
Jeff Muizelaar
Committed by
David S. Miller
May 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: post-sysfs netdev cleanup.
parent
4a14ac72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
include/linux/netdevice.h
include/linux/netdevice.h
+1
-4
net/core/net-sysfs.c
net/core/net-sysfs.c
+0
-2
No files found.
include/linux/netdevice.h
View file @
a8f8aaee
...
...
@@ -441,9 +441,6 @@ struct net_device
struct
divert_blk
*
divert
;
#endif
/* CONFIG_NET_DIVERT */
/* generic device structure used in constructing class */
struct
device
*
dev
;
/* class/net/name entry */
struct
class_device
class_dev
;
...
...
@@ -455,7 +452,7 @@ struct net_device
/* Set the sysfs physical device reference for the network logical device
* if set prior to registration will cause a symlink during initialization.
*/
#define SET_NETDEV_DEV(net, pdev) ((net)->dev = (pdev))
#define SET_NETDEV_DEV(net, pdev) ((net)->
class_dev.
dev = (pdev))
struct
packet_type
...
...
net/core/net-sysfs.c
View file @
a8f8aaee
...
...
@@ -291,9 +291,7 @@ int netdev_register_sysfs(struct net_device *net)
struct
class_device_attribute
*
attr
;
int
ret
;
memset
(
class_dev
,
0
,
sizeof
(
struct
class_device
));
class_dev
->
class
=
&
net_class
;
class_dev
->
dev
=
net
->
dev
;
class_dev
->
class_data
=
net
;
snprintf
(
class_dev
->
class_id
,
BUS_ID_SIZE
,
net
->
name
);
...
...
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