Re: [PATCH ipsec-next] esp: check the NETIF_F_HW_ESP_TX_CSUM bit before segmenting

2018-02-28 Thread Steffen Klassert
On Mon, Feb 26, 2018 at 02:28:19PM -0800, Shannon Nelson wrote: > 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. > >

[PATCH ipsec-next] esp: check the NETIF_F_HW_ESP_TX_CSUM bit before segmenting

2018-02-26 Thread Shannon Nelson
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 --- net/ipv4/esp4_offload.c |