]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/ipv4/ip_output.c
udp: enable UDP checksum offload for ESP
authorJacek Kalwas <jacek.kalwas@intel.com>
Thu, 12 Apr 2018 19:03:13 +0000 (12:03 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 18 Apr 2018 04:57:17 +0000 (06:57 +0200)
commitcd027a5433d66734097adbd9d262c203471102a3
tree276ffa2fe458ede28ec39ad7566896d72eb91dcc
parent5e596ee171ba99f0cfb885f256c6275390e63271
udp: enable UDP checksum offload for ESP

In case NIC has support for ESP TX CSUM offload skb->ip_summed is not
set to CHECKSUM_PARTIAL which results in checksum calculated by SW.

Fix enables ESP TX CSUM for UDP by extending condition with check for
NETIF_F_HW_ESP_TX_CSUM.

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/ip_output.c