net/tls: align non temporal copy to cache lines
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 7 Sep 2019 05:30:00 +0000 (22:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 16:10:34 +0000 (18:10 +0200)
commite681cc603a79b5907a7388e1d4587779b0fe8ff2
tree055d750a7e240746bcbbc475736228674b3c0d07
parente7b159a48ba6f7c243881c7ef3afa6e8785c0826
net/tls: align non temporal copy to cache lines

Unlike normal TCP code TLS has to touch the cache lines
it copies into to fill header info. On memory-heavy workloads
having non temporal stores and normal accesses targeting
the same cache line leads to significant overhead.

Measured 3% overhead running 3600 round robin connections
with additional memory heavy workload.

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>
net/tls/tls_device.c