Re: [PATCH ipsec-next 0/6] xfrm: reduce xfrm_state_afinfo size

2019-06-11 Thread Steffen Klassert
On Thu, May 09, 2019 at 01:07:48PM +0200, Steffen Klassert wrote: > On Fri, May 03, 2019 at 05:46:13PM +0200, Florian Westphal wrote: > > xfrm_state_afinfo is a very large struct; its over 4kbyte on 64bit systems. > > > > The size comes from two arrays to store the l4 protocol type pointers > > (e

Re: [PATCH ipsec-next 0/6] xfrm: reduce xfrm_state_afinfo size

2019-05-09 Thread Steffen Klassert
On Fri, May 03, 2019 at 05:46:13PM +0200, Florian Westphal wrote: > xfrm_state_afinfo is a very large struct; its over 4kbyte on 64bit systems. > > The size comes from two arrays to store the l4 protocol type pointers > (esp, ah, ipcomp and so on). > > There are only a handful of those, so just u

[PATCH ipsec-next 0/6] xfrm: reduce xfrm_state_afinfo size

2019-05-03 Thread Florian Westphal
xfrm_state_afinfo is a very large struct; its over 4kbyte on 64bit systems. The size comes from two arrays to store the l4 protocol type pointers (esp, ah, ipcomp and so on). There are only a handful of those, so just use pointers for protocols that we implement instead of mostly-empty arrays. T