Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
897933bc
Commit
897933bc
authored
Mar 19, 2007
by
Arnaldo Carvalho de Melo
Committed by
David S. Miller
Apr 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SK_BUFF]: Remove skb_add_mtu() leftovers
Signed-off-by:
Arnaldo Carvalho de Melo
<
acme@redhat.com
>
parent
b529ccf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
15 deletions
+0
-15
include/linux/skbuff.h
include/linux/skbuff.h
+0
-1
net/core/skbuff.c
net/core/skbuff.c
+0
-14
No files found.
include/linux/skbuff.h
View file @
897933bc
...
...
@@ -1512,7 +1512,6 @@ static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,
}
extern
void
skb_init
(
void
);
extern
void
skb_add_mtu
(
int
mtu
);
/**
* skb_get_timestamp - get timestamp from a skb
...
...
net/core/skbuff.c
View file @
897933bc
...
...
@@ -157,7 +157,6 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
if
(
!
skb
)
goto
out
;
/* Get the DATA. Size must match skb_add_mtu(). */
size
=
SKB_DATA_ALIGN
(
size
);
data
=
kmalloc_node_track_caller
(
size
+
sizeof
(
struct
skb_shared_info
),
gfp_mask
,
node
);
...
...
@@ -1533,19 +1532,6 @@ void skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head
spin_unlock_irqrestore
(
&
list
->
lock
,
flags
);
}
#if 0
/*
* Tune the memory allocator for a new MTU size.
*/
void skb_add_mtu(int mtu)
{
/* Must match allocation in alloc_skb */
mtu = SKB_DATA_ALIGN(mtu) + sizeof(struct skb_shared_info);
kmem_add_cache_size(mtu);
}
#endif
static
inline
void
skb_split_inside_header
(
struct
sk_buff
*
skb
,
struct
sk_buff
*
skb1
,
const
u32
len
,
const
int
pos
)
...
...
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