]> Git Repo - linux.git/commit
xfrm: Allow UDP encapsulation only in offload modes
authorLeon Romanovsky <[email protected]>
Tue, 12 Mar 2024 11:55:22 +0000 (13:55 +0200)
committerSteffen Klassert <[email protected]>
Mon, 18 Mar 2024 10:56:11 +0000 (11:56 +0100)
commit773bb766ca4a05bf363203030b72b10088869224
tree5ac14da356f666a2535d17f29b6b5ff4bdb13f71
parentc3198822c6cb9fb588e446540485669cc81c5d34
xfrm: Allow UDP encapsulation only in offload modes

The missing check of x->encap caused to the situation where GSO packets
were created with UDP encapsulation.

As a solution return the encap check for non-offloaded SA.

Fixes: 983a73da1f99 ("xfrm: Pass UDP encapsulation in TX packet offload")
Closes: https://lore.kernel.org/all/[email protected]
Reported-by: Paolo Abeni <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
net/xfrm/xfrm_device.c
This page took 0.062824 seconds and 4 git commands to generate.