mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 11:04:25 +00:00
ipv6/ila: fix nlsize calculation for lwtunnel
The handler 'ila_fill_encap_info' adds one attribute: ILA_ATTR_LOCATOR.
Fixes: 65d7ab8de5
("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>
This commit is contained in:
parent
cf6696608a
commit
79e8dc8b80
1 changed files with 1 additions and 2 deletions
|
@ -120,8 +120,7 @@ nla_put_failure:
|
|||
|
||||
static int ila_encap_nlsize(struct lwtunnel_state *lwtstate)
|
||||
{
|
||||
/* No encapsulation overhead */
|
||||
return 0;
|
||||
return nla_total_size(sizeof(u64)); /* ILA_ATTR_LOCATOR */
|
||||
}
|
||||
|
||||
static int ila_encap_cmp(struct lwtunnel_state *a, struct lwtunnel_state *b)
|
||||
|
|
Loading…
Add table
Reference in a new issue