Re: [PATCH net-next v2] ila: ipv6/ila: fix nlsize calculation for lwtunnel

2016-05-10 Thread David Miller
From: Nicolas Dichtel Date: Tue, 10 May 2016 11:56:32 +0200 > From: Tom Herbert > > The handler 'ila_fill_encap_info' adds two attributes: ILA_ATTR_LOCATOR > and ILA_ATTR_CSUM_MODE. > > nla_total_size_64bit() must be use for ILA_ATTR_LOCATOR. > > Also, do nla_put_u8 instead of nla_put_u64 for

Re: [PATCH net-next v2] ila: ipv6/ila: fix nlsize calculation for lwtunnel

2016-05-10 Thread Tom Herbert
On Tue, May 10, 2016 at 2:56 AM, Nicolas Dichtel wrote: > From: Tom Herbert > > The handler 'ila_fill_encap_info' adds two attributes: ILA_ATTR_LOCATOR > and ILA_ATTR_CSUM_MODE. > > nla_total_size_64bit() must be use for ILA_ATTR_LOCATOR. > > Also, do nla_put_u8 instead of nla_put_u64 for ILA_ATT

[PATCH net-next v2] ila: ipv6/ila: fix nlsize calculation for lwtunnel

2016-05-10 Thread Nicolas Dichtel
From: Tom Herbert The handler 'ila_fill_encap_info' adds two attributes: ILA_ATTR_LOCATOR and ILA_ATTR_CSUM_MODE. nla_total_size_64bit() must be use for ILA_ATTR_LOCATOR. Also, do nla_put_u8 instead of nla_put_u64 for ILA_ATTR_CSUM_MODE. Fixes: f13a82d87b21 ("ipv6: use nla_put_u64_64bit()") Fi