]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a31b95e150f81ee6d950587c4601d7792adf56a
tree055d750a7e240746bcbbc475736228674b3c0d07
parentc2e718b40d33825891bd20e1fae29fcbaab6c719
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