mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
net: Allow IPsec GSO for local sockets
This patch allows local sockets to make use of XFRM GSO code path. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Ilan Tayari <ilant@mellanox.com>
This commit is contained in:
parent
7e9e9202bc
commit
f70f250a77
2 changed files with 20 additions and 1 deletions
|
@ -1757,7 +1757,7 @@ void sk_setup_caps(struct sock *sk, struct dst_entry *dst)
|
|||
sk->sk_route_caps |= NETIF_F_GSO_SOFTWARE;
|
||||
sk->sk_route_caps &= ~sk->sk_route_nocaps;
|
||||
if (sk_can_gso(sk)) {
|
||||
if (dst->header_len) {
|
||||
if (dst->header_len && !xfrm_dst_offload_ok(dst)) {
|
||||
sk->sk_route_caps &= ~NETIF_F_GSO_MASK;
|
||||
} else {
|
||||
sk->sk_route_caps |= NETIF_F_SG | NETIF_F_HW_CSUM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue