]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: support output_mark for offload ESP packets
authorUlrich Weber <ulrich.weber@gmail.com>
Wed, 15 Jan 2020 11:11:29 +0000 (12:11 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 15 Jan 2020 11:18:35 +0000 (12:18 +0100)
commitc9cc83458fb6e78037d0cde2b80ccc1bcf715daf
treeb0fc99a567037a96167addf47fda1e8f585576c9
parent4bcc6150ebadaeeee6b40f2db93537f39e769d6d
xfrm: support output_mark for offload ESP packets

Commit 8088a63cecf0 ("xfrm: Extend the output_mark") added output_mark
support but missed ESP offload support.

xfrm_smark_get() is not called within xfrm_input() for packets coming
from esp4_gro_receive() or esp6_gro_receive(). Therefore call
xfrm_smark_get() directly within these functions.

Fixes: 8088a63cecf0 ("xfrm: Extend the output_mark to support input direction and masking.")
Signed-off-by: Ulrich Weber <ulrich.weber@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c