diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-19 21:27:36 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:26:35 -0400 |
commit | 897933bcdf31c372e029dd4e2ecd573ebe6cfd9c (patch) | |
tree | f8b57b2ea0a2c4e592c55c0fae82332e6484a319 /net/core/skbuff.c | |
parent | b529ccf2799c14346d1518e9bdf1f88f03643e99 (diff) |
[SK_BUFF]: Remove skb_add_mtu() leftovers
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 64caee46291b..e28f119156f7 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -157,7 +157,6 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask, | |||
157 | if (!skb) | 157 | if (!skb) |
158 | goto out; | 158 | goto out; |
159 | 159 | ||
160 | /* Get the DATA. Size must match skb_add_mtu(). */ | ||
161 | size = SKB_DATA_ALIGN(size); | 160 | size = SKB_DATA_ALIGN(size); |
162 | data = kmalloc_node_track_caller(size + sizeof(struct skb_shared_info), | 161 | data = kmalloc_node_track_caller(size + sizeof(struct skb_shared_info), |
163 | gfp_mask, node); | 162 | gfp_mask, node); |
@@ -1533,19 +1532,6 @@ void skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head | |||
1533 | spin_unlock_irqrestore(&list->lock, flags); | 1532 | spin_unlock_irqrestore(&list->lock, flags); |
1534 | } | 1533 | } |
1535 | 1534 | ||
1536 | #if 0 | ||
1537 | /* | ||
1538 | * Tune the memory allocator for a new MTU size. | ||
1539 | */ | ||
1540 | void skb_add_mtu(int mtu) | ||
1541 | { | ||
1542 | /* Must match allocation in alloc_skb */ | ||
1543 | mtu = SKB_DATA_ALIGN(mtu) + sizeof(struct skb_shared_info); | ||
1544 | |||
1545 | kmem_add_cache_size(mtu); | ||
1546 | } | ||
1547 | #endif | ||
1548 | |||
1549 | static inline void skb_split_inside_header(struct sk_buff *skb, | 1535 | static inline void skb_split_inside_header(struct sk_buff *skb, |
1550 | struct sk_buff* skb1, | 1536 | struct sk_buff* skb1, |
1551 | const u32 len, const int pos) | 1537 | const u32 len, const int pos) |