aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixgbe
diff options
context:
space:
mode:
authorEric Joyner <erj@FreeBSD.org>2019-07-23 18:14:32 +0000
committerEric Joyner <erj@FreeBSD.org>2019-07-23 18:14:32 +0000
commit2dc2d580354e95491a033fa9e21c8ef0cbd9bc42 (patch)
treef7decc51065d14c09bee7259bc58dadce7e43879 /sys/dev/ixgbe
parent1a91d6987c3ed9860ad34433c9a9a3065eb71be2 (diff)
Notes
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r--sys/dev/ixgbe/if_ix.c10
-rw-r--r--sys/dev/ixgbe/if_ixv.c3
-rw-r--r--sys/dev/ixgbe/ixgbe.h2
3 files changed, 5 insertions, 10 deletions
diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 6a1bd13af6dec..9c61c9a240739 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -425,7 +425,6 @@ ixgbe_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs,
i);
txr->adapter = que->adapter = adapter;
- adapter->active_queues |= (u64)1 << txr->me;
/* Allocate report status array */
txr->tx_rsq = (qidx_t *)malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], M_IXGBE, M_NOWAIT | M_ZERO);
@@ -796,6 +795,8 @@ ixgbe_initialize_transmit_units(if_ctx_t ctx)
IXGBE_WRITE_REG(hw, IXGBE_TDT(j), 0);
/* Cache the tail address */
+ txr->tail = IXGBE_TDT(txr->me);
+
txr->tx_rs_cidx = txr->tx_rs_pidx;
txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1;
for (int k = 0; k < scctx->isc_ntxd[0]; k++)
@@ -2002,7 +2003,6 @@ ixgbe_if_msix_intr_assign(if_ctx_t ctx, int msix)
}
rx_que->msix = vector;
- adapter->active_queues |= (u64)(1 << rx_que->msix);
if (adapter->feat_en & IXGBE_FEATURE_RSS) {
/*
* The queue ID is used as the RSS layer bucket ID.
@@ -3687,7 +3687,7 @@ ixgbe_if_rx_queue_intr_enable(if_ctx_t ctx, uint16_t rxqid)
struct adapter *adapter = iflib_get_softc(ctx);
struct ix_rx_queue *que = &adapter->rx_queues[rxqid];
- ixgbe_enable_queue(adapter, que->rxr.me);
+ ixgbe_enable_queue(adapter, que->msix);
return (0);
} /* ixgbe_if_rx_queue_intr_enable */
@@ -3699,7 +3699,7 @@ static void
ixgbe_enable_queue(struct adapter *adapter, u32 vector)
{
struct ixgbe_hw *hw = &adapter->hw;
- u64 queue = (u64)(1 << vector);
+ u64 queue = 1ULL << vector;
u32 mask;
if (hw->mac.type == ixgbe_mac_82598EB) {
@@ -3722,7 +3722,7 @@ static void
ixgbe_disable_queue(struct adapter *adapter, u32 vector)
{
struct ixgbe_hw *hw = &adapter->hw;
- u64 queue = (u64)(1 << vector);
+ u64 queue = 1ULL << vector;
u32 mask;
if (hw->mac.type == ixgbe_mac_82598EB) {
diff --git a/sys/dev/ixgbe/if_ixv.c b/sys/dev/ixgbe/if_ixv.c
index 95ed0d48fe4de..cfc824dd7f853 100644
--- a/sys/dev/ixgbe/if_ixv.c
+++ b/sys/dev/ixgbe/if_ixv.c
@@ -268,7 +268,6 @@ ixv_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs,
txr->me = i;
txr->adapter = que->adapter = adapter;
- adapter->active_queues |= (u64)1 << txr->me;
/* Allocate report status array */
if (!(txr->tx_rsq = (qidx_t *)malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], M_DEVBUF, M_NOWAIT | M_ZERO))) {
@@ -1038,8 +1037,6 @@ ixv_if_msix_intr_assign(if_ctx_t ctx, int msix)
}
rx_que->msix = vector;
- adapter->active_queues |= (u64)(1 << rx_que->msix);
-
}
for (int i = 0; i < adapter->num_tx_queues; i++) {
diff --git a/sys/dev/ixgbe/ixgbe.h b/sys/dev/ixgbe/ixgbe.h
index afc55dccd4ef5..4261d1e36b88b 100644
--- a/sys/dev/ixgbe/ixgbe.h
+++ b/sys/dev/ixgbe/ixgbe.h
@@ -339,7 +339,6 @@ struct rx_ring {
struct ix_rx_queue {
struct adapter *adapter;
u32 msix; /* This queue's MSIX vector */
- u32 eims; /* This queue's EIMS bit */
u32 eitr_setting;
struct resource *res;
void *tag;
@@ -442,7 +441,6 @@ struct adapter {
*/
struct ix_tx_queue *tx_queues;
struct ix_rx_queue *rx_queues;
- u64 active_queues;
/* Multicast array memory */
struct ixgbe_mc_addr *mta;