aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid C Somayajulu <davidcs@FreeBSD.org>2017-10-05 19:03:50 +0000
committerDavid C Somayajulu <davidcs@FreeBSD.org>2017-10-05 19:03:50 +0000
commitc8740cca0659dd2089c4b6a9149caa18b663ecb7 (patch)
treea57cbe3f6c6f0ee03b72421317f63e220ea44437 /sys
parented2b4a9fa7ee7196861888f56b72c36999f7933c (diff)
MFC r324065
Tx Ring Shadow Consumer Index Register needs to be cleared prior to passing it's physical address to the FW during Tx Create Context.
Notes
svn path=/stable/9/; revision=324333
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/qlxgbe/ql_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/qlxgbe/ql_hw.c b/sys/dev/qlxgbe/ql_hw.c
index 0505a4673e27..07b6d7cdaf3a 100644
--- a/sys/dev/qlxgbe/ql_hw.c
+++ b/sys/dev/qlxgbe/ql_hw.c
@@ -3248,6 +3248,7 @@ qla_init_xmt_cntxt_i(qla_host_t *ha, uint32_t txr_idx)
hw_tx_cntxt->txr_free = NUM_TX_DESCRIPTORS;
hw_tx_cntxt->txr_next = hw_tx_cntxt->txr_comp = 0;
+ *hw_tx_cntxt->tx_cons = 0;
if (qla_mbx_cmd(ha, (uint32_t *)tcntxt,
(sizeof (q80_rq_tx_cntxt_t) >> 2),