ipv6: sr: static percpu allocation for hmac_ring
authorEric Dumazet <edumazet@google.com>
Thu, 12 Jan 2017 16:50:10 +0000 (08:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jan 2017 21:52:19 +0000 (16:52 -0500)
commit717ac5ce13020920fa3975f290281395b6407900
tree600641c51c4944c7e02f0cb1bf3eb5487c919cdd
parent8fb472c09b9df478a062eacc7841448e40fc3c17
ipv6: sr: static percpu allocation for hmac_ring

Current allocations are not NUMA aware, and lack proper
cleanup in case of error.

It is perfectly fine to use static per cpu allocations for 256 bytes
per cpu.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Lebrun <david.lebrun@uclouvain.be>
Acked-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_hmac.c