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>
This commit is contained in:

committed by
David S. Miller

parent
b057efd4d2
commit
def8b4faff
@@ -1399,7 +1399,9 @@ void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw,
|
||||
rt->u.dst.path = &rt->u.dst;
|
||||
rt->u.dst.neighbour = NULL;
|
||||
rt->u.dst.hh = NULL;
|
||||
#ifdef CONFIG_XFRM
|
||||
rt->u.dst.xfrm = NULL;
|
||||
#endif
|
||||
rt->rt_genid = rt_genid(net);
|
||||
rt->rt_flags |= RTCF_REDIRECTED;
|
||||
|
||||
|
Reference in New Issue
Block a user