diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-28 16:24:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-28 16:24:06 -0400 |
commit | def8b4faff5ca349beafbbfeb2c51f3602a6ef3a (patch) | |
tree | a90fbb0b6ae2a49c507465801f31df77bc5ebf9d /net/core | |
parent | b057efd4d226fcc3a92b0dc6d8ea8e8185ecb260 (diff) |
net: reduce structures when XFRM=n
ifdef out
* struct sk_buff::sp (pointer)
* struct dst_entry::xfrm (pointer)
* struct sock::sk_policy (2 pointers)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/skbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 4e22e3a35359..cdfe473181af 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -489,7 +489,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old) | |||
489 | new->network_header = old->network_header; | 489 | new->network_header = old->network_header; |
490 | new->mac_header = old->mac_header; | 490 | new->mac_header = old->mac_header; |
491 | new->dst = dst_clone(old->dst); | 491 | new->dst = dst_clone(old->dst); |
492 | #ifdef CONFIG_INET | 492 | #ifdef CONFIG_XFRM |
493 | new->sp = secpath_get(old->sp); | 493 | new->sp = secpath_get(old->sp); |
494 | #endif | 494 | #endif |
495 | memcpy(new->cb, old->cb, sizeof(old->cb)); | 495 | memcpy(new->cb, old->cb, sizeof(old->cb)); |