Thread (6 messages) 6 messages, 3 authors, 2016-05-10

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: Tom Herbert <redacted>
Date: Thu, 28 Apr 2016 17:12:29 -0700
quoted hunk ↗ jump to hunk
@@ -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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help