xfrm: interface: fix ipv4 pmtu check to honor ip header df
authorEyal Birger <eyal.birger@gmail.com>
Sat, 20 Feb 2021 13:01:15 +0000 (15:01 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 23 Feb 2021 17:23:58 +0000 (18:23 +0100)
commit8fc0e3b6a8666d656923d214e4dc791e9a17164a
tree324b4a85e1e84ca3b4d6fd8a6a38aedf8bbb08e9
parent3a2eb515d1367c0f667b76089a6e727279c688b8
xfrm: interface: fix ipv4 pmtu check to honor ip header df

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: f203b76d7809 ("xfrm: Add virtual xfrm interfaces")
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface.c