summaryrefslogtreecommitdiffstats
path: root/sys/ofed/drivers/net/mlx4/en_tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ofed/drivers/net/mlx4/en_tx.c')
-rw-r--r--sys/ofed/drivers/net/mlx4/en_tx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ofed/drivers/net/mlx4/en_tx.c b/sys/ofed/drivers/net/mlx4/en_tx.c
index 2d7e8a8..2565f51 100644
--- a/sys/ofed/drivers/net/mlx4/en_tx.c
+++ b/sys/ofed/drivers/net/mlx4/en_tx.c
@@ -701,9 +701,13 @@ static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, struct mbuf *mb,
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)
{
OpenPOWER on IntegriCloud