Skip to content

Commit 79e8dc8

Browse files
NicolasDichteldavem330
authored andcommitted
ipv6/ila: fix nlsize calculation for lwtunnel
The handler 'ila_fill_encap_info' adds one attribute: ILA_ATTR_LOCATOR. Fixes: 65d7ab8 ("net: Identifier Locator Addressing module") CC: Tom Herbert <tom@herbertland.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cf66966 commit 79e8dc8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎net/ipv6/ila/ila_lwt.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ static int ila_fill_encap_info(struct sk_buff *skb,
120120

121121
static int ila_encap_nlsize(struct lwtunnel_state *lwtstate)
122122
{
123-
/* No encapsulation overhead */
124-
return 0;
123+
return nla_total_size(sizeof(u64)); /* ILA_ATTR_LOCATOR */
125124
}
126125

127126
static int ila_encap_cmp(struct lwtunnel_state *a, struct lwtunnel_state *b)

0 commit comments

Comments
 (0)