Commit 48e99107 authored by Eyal Birger's avatar Eyal Birger Committed by Yang Yingliang
Browse files

xfrm: interface: fix ipv4 pmtu check to honor ip header df



stable inclusion
from linux-4.19.187
commit b318f319b0c81965adaba0997cdddd9e280270d5

--------------------------------

[ Upstream commit 8fc0e3b6 ]

Frag needed should only be sent if the header enables DF.

This fix allows packets larger than MTU to pass the xfrm interface
and be fragmented after encapsulation, aligning behavior with
non-interface xfrm.

Fixes: f203b76d ("xfrm: Add virtual xfrm interfaces")
Signed-off-by: default avatarEyal Birger <eyal.birger@gmail.com>
Reviewed-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 8767fdc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment