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
8125d6bc
Commit
8125d6bc
authored
Jun 25, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Define LL_RESERVED_SPACE in terms of HH_DATA_MOD.
parent
36b609df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
include/linux/netdevice.h
include/linux/netdevice.h
+11
-5
No files found.
include/linux/netdevice.h
View file @
8125d6bc
...
@@ -90,11 +90,6 @@ struct vlan_group;
...
@@ -90,11 +90,6 @@ struct vlan_group;
#define MAX_HEADER (LL_MAX_HEADER + 48)
#define MAX_HEADER (LL_MAX_HEADER + 48)
#endif
#endif
/* Reserve 16byte aligned hard_header_len, but at least 16.
* Alternative is: dev->hard_header_len ? (dev->hard_header_len + 15)&~15 : 0
*/
#define LL_RESERVED_SPACE(dev) (((dev)->hard_header_len&~15) + 16)
/*
/*
* Network device statistics. Akin to the 2.0 ether stats but
* Network device statistics. Akin to the 2.0 ether stats but
* with byte counters.
* with byte counters.
...
@@ -205,6 +200,17 @@ struct hh_cache
...
@@ -205,6 +200,17 @@ struct hh_cache
unsigned
long
hh_data
[
HH_DATA_ALIGN
(
LL_MAX_HEADER
)];
unsigned
long
hh_data
[
HH_DATA_ALIGN
(
LL_MAX_HEADER
)];
};
};
/* Reserve HH_DATA_MOD byte aligned hard_header_len, but at least that much.
* Alternative is:
* dev->hard_header_len ? (dev->hard_header_len +
* (HH_DATA_MOD - 1)) & ~(HH_DATA_MOD - 1) : 0
*
* We could use other alignment values, but we must maintain the
* relationship HH alignment <= LL alignment.
*/
#define LL_RESERVED_SPACE(dev) \
(((dev)->hard_header_len&~(HH_DATA_MOD - 1)) + HH_DATA_MOD)
/* These flag bits are private to the generic network queueing
/* These flag bits are private to the generic network queueing
* layer, they may not be explicitly referenced by any other
* layer, they may not be explicitly referenced by any other
* code.
* code.
...
...
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