]> git.baikalelectronics.ru Git - kernel.git/commit
esp: check the NETIF_F_HW_ESP_TX_CSUM bit before segmenting
authorShannon Nelson <shannon.nelson@oracle.com>
Mon, 26 Feb 2018 22:28:19 +0000 (14:28 -0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 27 Feb 2018 09:46:01 +0000 (10:46 +0100)
commit0f9574d45a88d13593fb1a16ae2d145db58ddf07
tree1715dae8905915f7650306b55804522ad1662bc7
parentaebd6d0353f10578a2ebda59018dbbfef8c062c3
esp: check the NETIF_F_HW_ESP_TX_CSUM bit before segmenting

If I understand correctly, we should not be asking for a
checksum offload on an ipsec packet if the netdev isn't
advertising NETIF_F_HW_ESP_TX_CSUM.  In that case, we should
clear the NETIF_F_CSUM_MASK bits.

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c