aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/t4_l2t.c
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2018-08-11 21:10:08 +0000
committerNavdeep Parhar <np@FreeBSD.org>2018-08-11 21:10:08 +0000
commit37310a98a86d8c1b80c6a39ac8229706b728b7a1 (patch)
tree17bdff6edfb4b68aca36a6cd56c8f1cc1193eb9d /sys/dev/cxgbe/t4_l2t.c
parenta079a34fd59c7e8f0da9b3915a6e989bf0b67b8c (diff)
cxgbe(4): Move all control queues to the adapter.
There used to be one control queue per adapter (the mgmtq) that was initialized during adapter init and one per port that was initialized later during port init. This change moves all the control queues (one per port/channel) to the adapter so that they are initialized during adapter init and are available before any port is up. This allows the driver to issue ctrlq work requests over any channel without having to bring up any port. MFH: 2 weeks Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=337659
Diffstat (limited to 'sys/dev/cxgbe/t4_l2t.c')
-rw-r--r--sys/dev/cxgbe/t4_l2t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/t4_l2t.c b/sys/dev/cxgbe/t4_l2t.c
index bb683f375121..22e84d320aa2 100644
--- a/sys/dev/cxgbe/t4_l2t.c
+++ b/sys/dev/cxgbe/t4_l2t.c
@@ -182,7 +182,7 @@ t4_l2t_set_switching(struct adapter *sc, struct l2t_entry *e, uint16_t vlan,
e->vlan = vlan;
e->lport = port;
- e->wrq = &sc->sge.mgmtq;
+ e->wrq = &sc->sge.ctrlq[0];
e->iqid = sc->sge.fwq.abs_id;
memcpy(e->dmac, eth_addr, ETHER_ADDR_LEN);
mtx_lock(&e->lock);