Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/wireguard/
Dsend.c143 unsigned int padded_size, last_unit = skb->len; in calculate_skb_padding() local
146 return ALIGN(last_unit, MESSAGE_PADDING_MULTIPLE) - last_unit; in calculate_skb_padding()
154 if (unlikely(last_unit > PACKET_CB(skb)->mtu)) in calculate_skb_padding()
155 last_unit %= PACKET_CB(skb)->mtu; in calculate_skb_padding()
158 ALIGN(last_unit, MESSAGE_PADDING_MULTIPLE)); in calculate_skb_padding()
159 return padded_size - last_unit; in calculate_skb_padding()