Skip to content

Commit 897933b

Browse files
acmelDavid S. Miller
authored andcommitted
[SK_BUFF]: Remove skb_add_mtu() leftovers
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent b529ccf commit 897933b

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎include/linux/skbuff.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,6 @@ static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,
15121512
}
15131513

15141514
extern void skb_init(void);
1515-
extern void skb_add_mtu(int mtu);
15161515

15171516
/**
15181517
* skb_get_timestamp - get timestamp from a skb

‎net/core/skbuff.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
157157
if (!skb)
158158
goto out;
159159

160-
/* Get the DATA. Size must match skb_add_mtu(). */
161160
size = SKB_DATA_ALIGN(size);
162161
data = kmalloc_node_track_caller(size + sizeof(struct skb_shared_info),
163162
gfp_mask, node);
@@ -1533,19 +1532,6 @@ void skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head
15331532
spin_unlock_irqrestore(&list->lock, flags);
15341533
}
15351534

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-
15491535
static inline void skb_split_inside_header(struct sk_buff *skb,
15501536
struct sk_buff* skb1,
15511537
const u32 len, const int pos)

0 commit comments

Comments
 (0)