Skip to content
Commit e4bec827 authored by David S. Miller's avatar David S. Miller
Browse files

[IPSEC] esp: Defer output IV initialization to first use.



First of all, if the xfrm_state only gets used for input
packets this entropy is a complete waste.

Secondly, it is often the case that a configuration loads
many rules (perhaps even dynamically) and they don't all
necessarily ever get used.

This get_random_bytes() call was showing up in the profiles
for xfrm_state inserts which is how I noticed this.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 44e36b42
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment