aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index ef498cb9f786..39a161dbc16d 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -70,6 +70,8 @@
70 70
71static kmem_cache_t *skbuff_head_cache; 71static kmem_cache_t *skbuff_head_cache;
72 72
73struct timeval __read_mostly skb_tv_base;
74
73/* 75/*
74 * Keep out-of-line to prevent kernel bloat. 76 * Keep out-of-line to prevent kernel bloat.
75 * __builtin_return_address is not used because it is not always 77 * __builtin_return_address is not used because it is not always
@@ -331,7 +333,7 @@ struct sk_buff *skb_clone(struct sk_buff *skb, unsigned int __nocast gfp_mask)
331 333
332 n->next = n->prev = NULL; 334 n->next = n->prev = NULL;
333 n->sk = NULL; 335 n->sk = NULL;
334 C(stamp); 336 C(tstamp);
335 C(dev); 337 C(dev);
336 C(h); 338 C(h);
337 C(nh); 339 C(nh);
@@ -408,7 +410,7 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
408 memcpy(new->cb, old->cb, sizeof(old->cb)); 410 memcpy(new->cb, old->cb, sizeof(old->cb));
409 new->local_df = old->local_df; 411 new->local_df = old->local_df;
410 new->pkt_type = old->pkt_type; 412 new->pkt_type = old->pkt_type;
411 new->stamp = old->stamp; 413 new->tstamp = old->tstamp;
412 new->destructor = NULL; 414 new->destructor = NULL;
413#ifdef CONFIG_NETFILTER 415#ifdef CONFIG_NETFILTER
414 new->nfmark = old->nfmark; 416 new->nfmark = old->nfmark;
@@ -1645,6 +1647,7 @@ void __init skb_init(void)
1645 NULL, NULL); 1647 NULL, NULL);
1646 if (!skbuff_head_cache) 1648 if (!skbuff_head_cache)
1647 panic("cannot create skbuff cache"); 1649 panic("cannot create skbuff cache");
1650 do_gettimeofday(&skb_tv_base);
1648} 1651}
1649 1652
1650EXPORT_SYMBOL(___pskb_trim); 1653EXPORT_SYMBOL(___pskb_trim);
@@ -1678,3 +1681,4 @@ EXPORT_SYMBOL(skb_prepare_seq_read);
1678EXPORT_SYMBOL(skb_seq_read); 1681EXPORT_SYMBOL(skb_seq_read);
1679EXPORT_SYMBOL(skb_abort_seq_read); 1682EXPORT_SYMBOL(skb_abort_seq_read);
1680EXPORT_SYMBOL(skb_find_text); 1683EXPORT_SYMBOL(skb_find_text);
1684EXPORT_SYMBOL(skb_tv_base);