Re: [net-next v2 03/13] net: remove inet6_reqsk_alloc
From: Cong Wang <hidden>
Date: 2014-06-25 17:59:44
From: Cong Wang <hidden>
Date: 2014-06-25 17:59:44
On Wed, Jun 25, 2014 at 7:09 AM, Octavian Purdila [off-list ref] wrote:
Since pktops is only used for IPv6 only and opts is used for IPv4 only, we can move these fields into a union and this allows us to drop the inet6_reqsk_alloc function as after this change it becomes equivalent with inet_reqsk_alloc.
Or use kmem_cache_zalloc() so that inet_reqsk_alloc() doesn't have to init ->opt to NULL explicitly.