Re: [PATCH net-next] ila: ipv6/ila: fix nlsize calculation for lwtunnel
From: David Miller <davem@davemloft.net>
Date: 2016-05-01 23:39:28
From: David Miller <davem@davemloft.net>
Date: 2016-05-01 23:39:28
From: Tom Herbert <redacted> Date: Thu, 28 Apr 2016 17:12:29 -0700
@@ -144,8 +144,12 @@ nla_put_failure: static int ila_encap_nlsize(struct lwtunnel_state *lwtstate) { - /* No encapsulation overhead */ - return 0; + return + /* ILA_ATTR_LOCATOR */ + nla_total_size(sizeof(u64)) +
As Nicolas stated, you need to use the 64-bit sizing helper here.