diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-07-05 22:27:29 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-08 18:45:41 +0200 |
commit | 5221eceb39a8a4f9bd637ebfa7c0f9c0958e8afa (patch) | |
tree | ce57c568080eec4e989f9ded04ad4b0e5d244b19 /src/peer.h | |
parent | ca76b1066fc8d61ed63617893257c511b9af020e (diff) |
receive: use NAPI on the receive path
Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com>
[Jason: fixed up the flushing of the rx_queue in peer_remove]
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -57,6 +57,7 @@ struct wireguard_peer { struct rcu_head rcu; struct list_head peer_list; u64 internal_id; + struct napi_struct napi; }; struct wireguard_peer *peer_create(struct wireguard_device *wg, const u8 public_key[NOISE_PUBLIC_KEY_LEN], const u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]); |