android_kernel_motorola_sm6225/net/tls
Jakub Kicinski eb6e02ed98 net/tls: fix socket wmem accounting on fallback with netem
[ Upstream commit 5c4b4608fe100838c62591877101128467e56c00 ]

netem runs skb_orphan_partial() which "disconnects" the skb
from normal TCP write memory accounting.  We should not adjust
sk->sk_wmem_alloc on the fallback path for such skbs.

Fixes: e8f6979981 ("net/tls: Add generic NIC offload infrastructure")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:01 +01:00
..
Kconfig net/tls: Add generic NIC offload infrastructure 2018-05-01 09:42:47 -04:00
Makefile net/tls: Add generic NIC offload infrastructure 2018-05-01 09:42:47 -04:00
tls_device.c net/tls: make sure offload also gets the keys wiped 2019-07-28 08:29:27 +02:00
tls_device_fallback.c net/tls: fix socket wmem accounting on fallback with netem 2020-01-27 14:51:01 +01:00
tls_main.c net: tls, fix sk_write_space NULL write when tx disabled 2019-09-06 10:22:04 +02:00
tls_sw.c net/tls: Fixed return value when tls_complete_pending_work() fails 2019-09-06 10:22:03 +02:00