Author: hselasky
Date: Tue Aug  4 09:45:10 2015
New Revision: 286282
URL: https://svnweb.freebsd.org/changeset/base/286282

Log:
  Avoid calling into the random subsystem before it is initialized.
  
  Sponsored by: Mellanox Technologies

Modified:
  head/sys/ofed/drivers/net/mlx4/en_tx.c

Modified: head/sys/ofed/drivers/net/mlx4/en_tx.c
==============================================================================
--- head/sys/ofed/drivers/net/mlx4/en_tx.c      Tue Aug  4 08:51:56 2015        
(r286281)
+++ head/sys/ofed/drivers/net/mlx4/en_tx.c      Tue Aug  4 09:45:10 2015        
(r286282)
@@ -701,9 +701,13 @@ static void build_inline_wqe(struct mlx4
 static uint32_t hashrandom;
 static void hashrandom_init(void *arg)
 {
+       /*
+        * It is assumed that the random subsystem has been
+        * initialized when this function is called:
+        */
        hashrandom = m_ether_tcpip_hash_init();
 }
-SYSINIT(hashrandom_init, SI_SUB_KLD, SI_ORDER_SECOND, &hashrandom_init, NULL);
+SYSINIT(hashrandom_init, SI_SUB_RANDOM, SI_ORDER_ANY, &hashrandom_init, NULL);
 
 u16 mlx4_en_select_queue(struct net_device *dev, struct mbuf *mb)
 {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to