Home
last modified time | relevance | path

Searched refs:latest_cookie (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/wireguard/
H A Dcookie.c162 down_write(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
167 up_write(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
169 down_read(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
170 if (peer->latest_cookie.is_valid && in wg_cookie_add_mac_to_packet()
174 peer->latest_cookie.cookie); in wg_cookie_add_mac_to_packet()
177 up_read(&peer->latest_cookie.lock); in wg_cookie_add_mac_to_packet()
211 down_read(&peer->latest_cookie.lock); in wg_cookie_message_consume()
213 up_read(&peer->latest_cookie.lock); in wg_cookie_message_consume()
220 up_read(&peer->latest_cookie.lock); in wg_cookie_message_consume()
226 peer->latest_cookie.is_valid = true; in wg_cookie_message_consume()
[all …]
H A Dpeer.h50 struct cookie latest_cookie; member
H A Dpeer.c44 wg_cookie_init(&peer->latest_cookie); in wg_peer_create()