diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:36:20 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:38:12 +0200 |
commit | 1027c1fb4493130ed9df96fd4092c4bf9c599b82 (patch) | |
tree | 9cc86eb2c6c003f220c9d66171a2d5d0f59745b6 /src/queueing.h | |
parent | 021084071d57c47c9aabe9c3fcd9be8fd870fa0e (diff) |
global: rename struct wireguard_ to struct wg_
This required a bit of pruning of our christmas trees.
Suggested-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/queueing.h')
-rw-r--r-- | src/queueing.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/queueing.h b/src/queueing.h index 9a089ca..281d325 100644 --- a/src/queueing.h +++ b/src/queueing.h @@ -12,8 +12,8 @@ #include <linux/ip.h> #include <linux/ipv6.h> -struct wireguard_device; -struct wireguard_peer; +struct wg_device; +struct wg_peer; struct multicore_worker; struct crypt_queue; struct sk_buff; @@ -26,7 +26,7 @@ struct multicore_worker __percpu * wg_packet_alloc_percpu_multicore_worker(work_func_t function, void *ptr); /* receive.c APIs: */ -void wg_packet_receive(struct wireguard_device *wg, struct sk_buff *skb); +void wg_packet_receive(struct wg_device *wg, struct sk_buff *skb); void wg_packet_handshake_receive_worker(struct work_struct *work); /* NAPI poll function: */ int wg_packet_rx_poll(struct napi_struct *napi, int budget); @@ -34,14 +34,14 @@ int wg_packet_rx_poll(struct napi_struct *napi, int budget); void wg_packet_decrypt_worker(struct work_struct *work); /* send.c APIs: */ -void wg_packet_send_queued_handshake_initiation(struct wireguard_peer *peer, +void wg_packet_send_queued_handshake_initiation(struct wg_peer *peer, bool is_retry); -void wg_packet_send_handshake_response(struct wireguard_peer *peer); -void wg_packet_send_handshake_cookie(struct wireguard_device *wg, +void wg_packet_send_handshake_response(struct wg_peer *peer); +void wg_packet_send_handshake_cookie(struct wg_device *wg, struct sk_buff *initiating_skb, __le32 sender_index); -void wg_packet_send_keepalive(struct wireguard_peer *peer); -void wg_packet_send_staged_packets(struct wireguard_peer *peer); +void wg_packet_send_keepalive(struct wg_peer *peer); +void wg_packet_send_staged_packets(struct wg_peer *peer); /* Workqueue workers: */ void wg_packet_handshake_send_worker(struct work_struct *work); void wg_packet_tx_worker(struct work_struct *work); @@ -165,7 +165,7 @@ static inline void wg_queue_enqueue_per_peer(struct crypt_queue *queue, /* We take a reference, because as soon as we call atomic_set, the * peer can be freed from below us. */ - struct wireguard_peer *peer = wg_peer_get(PACKET_PEER(skb)); + struct wg_peer *peer = wg_peer_get(PACKET_PEER(skb)); atomic_set_release(&PACKET_CB(skb)->state, state); queue_work_on(wg_cpumask_choose_online(&peer->serial_work_cpu, peer->internal_id), @@ -180,7 +180,7 @@ static inline void wg_queue_enqueue_per_peer_napi(struct crypt_queue *queue, /* We take a reference, because as soon as we call atomic_set, the * peer can be freed from below us. */ - struct wireguard_peer *peer = wg_peer_get(PACKET_PEER(skb)); + struct wg_peer *peer = wg_peer_get(PACKET_PEER(skb)); atomic_set_release(&PACKET_CB(skb)->state, state); napi_schedule(&peer->napi); wg_peer_put(peer); |