net: initialize hashrnd in flow_dissector with net_get_random_once
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Wed, 23 Oct 2013 18:06:00 +0000 (20:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Oct 2013 23:03:39 +0000 (19:03 -0400)
commit66415cf8a1b99d101317f5aa08574b1ec8832672
treeb67df35008f4bcec22b5f1730acaf16bae63c262
parentf84be2bd96a108b09c8440263fa3adb3fb225fa3
net: initialize hashrnd in flow_dissector with net_get_random_once

We also can defer the initialization of hashrnd in flow_dissector
to its first use. Since net_get_random_once is irq safe now we don't
have to audit the call paths if one of this functions get called by an
interrupt handler.

Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c