summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-09-15 07:25:56 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-09-15 07:25:56 +0200
commit541ee8295e0fe1b7c51fa4aee74aaa12f696860b (patch)
treee0df9c0989500ed2089b64004ac337ebc4dcc97e /src/fastd.h
parent37385fcd836bcc086b56b8dc7089d5038c203f13 (diff)
downloadfastd-541ee8295e0fe1b7c51fa4aee74aaa12f696860b.tar
fastd-541ee8295e0fe1b7c51fa4aee74aaa12f696860b.zip
Add support for using kernel implementations of GHASH
This doesn't really improve performance on my Intel CPU (I guess due to the context switches), but more tests have to be made, in combination with offloading the AES to the kernel as well, and on different hardware.
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index e1c531b..80ec0d2 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -215,6 +215,8 @@ struct _fastd_context {
int sockfd;
int sock6fd;
+ int algfd_ghash;
+
size_t eth_addr_size;
size_t n_eth_addr;
fastd_peer_eth_addr *eth_addr;