aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/t4_vf.c
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2017-12-22 19:10:19 +0000
committerNavdeep Parhar <np@FreeBSD.org>2017-12-22 19:10:19 +0000
commitf549e3521d7824a65d23bf4f34e68c6d3392531f (patch)
treef66823ad4fc5b5b5c6b6ebd383806d55c59dca29 /sys/dev/cxgbe/t4_vf.c
parentd2064cf0303dbd5585de1a36ae54504a13349e65 (diff)
Notes
Diffstat (limited to 'sys/dev/cxgbe/t4_vf.c')
-rw-r--r--sys/dev/cxgbe/t4_vf.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/cxgbe/t4_vf.c b/sys/dev/cxgbe/t4_vf.c
index e18bcf04d092e..8eb664dcae0cd 100644
--- a/sys/dev/cxgbe/t4_vf.c
+++ b/sys/dev/cxgbe/t4_vf.c
@@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$");
struct intrs_and_queues {
uint16_t intr_type; /* MSI, or MSI-X */
uint16_t nirq; /* Total # of vectors */
- uint16_t intr_flags; /* Interrupt flags for each port */
uint16_t ntxq; /* # of NIC txq's for each port */
uint16_t nrxq; /* # of NIC rxq's for each port */
};
@@ -330,7 +329,6 @@ cfg_itype_and_nqueues(struct adapter *sc, struct intrs_and_queues *iaq)
continue;
iaq->intr_type = itype;
- iaq->intr_flags = 0;
/*
* XXX: The Linux driver reserves an Ingress Queue for
@@ -438,7 +436,6 @@ cfg_itype_and_nqueues(struct adapter *sc, struct intrs_and_queues *iaq)
return (rc);
}
if (navail == iaq->nirq) {
- iaq->intr_flags = INTR_RXQ;
return (0);
}
pci_release_msi(sc->dev);
@@ -455,7 +452,6 @@ cfg_itype_and_nqueues(struct adapter *sc, struct intrs_and_queues *iaq)
device_printf(sc->dev,
"failed to allocate vectors:%d, type=%d, req=%d, rcvd=%d\n",
itype, rc, iaq->nirq, navail);
- iaq->intr_flags = 0;
return (rc);
}
@@ -702,7 +698,6 @@ t4vf_attach(device_t dev)
vi->first_txq = tqidx;
vi->tmr_idx = t4_tmr_idx;
vi->pktc_idx = t4_pktc_idx;
- vi->flags |= iaq.intr_flags & INTR_RXQ;
vi->nrxq = j == 0 ? iaq.nrxq: 1;
vi->ntxq = j == 0 ? iaq.ntxq: 1;