summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl
diff options
context:
space:
mode:
authorerj <erj@FreeBSD.org>2016-05-12 18:22:34 +0000
committererj <erj@FreeBSD.org>2016-05-12 18:22:34 +0000
commit437b22e7e4fabceb8b307d79c7eb59f19779b48c (patch)
treea4b551c001229fe7f11c35ae6f0b41e23eb57eac /sys/dev/ixl
parent713595cc64e6a8d4264f8bcfdc4de54fb30e779c (diff)
downloadFreeBSD-src-437b22e7e4fabceb8b307d79c7eb59f19779b48c.zip
FreeBSD-src-437b22e7e4fabceb8b307d79c7eb59f19779b48c.tar.gz
ixl: Re-add a change to TC0 setup made in D5203.
Differential Revision: https://reviews.freebsd.org/D6211 Reviewed by: sbruno, kmacy, jeffrey.e.pieper@intel.com MFC after: 2 weeks Sponsored by: Intel Corporation
Diffstat (limited to 'sys/dev/ixl')
-rw-r--r--sys/dev/ixl/if_ixl.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c
index 258a5a3..104e7c3 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -3115,9 +3115,17 @@ ixl_initialize_vsi(struct ixl_vsi *vsi)
*/
ctxt.info.valid_sections = I40E_AQ_VSI_PROP_QUEUE_MAP_VALID;
ctxt.info.mapping_flags |= I40E_AQ_VSI_QUE_MAP_CONTIG;
- ctxt.info.queue_mapping[0] = 0;
- /* This VSI is assigned 64 queues (we may not use all of them) */
- ctxt.info.tc_mapping[0] = 0x0c00;
+ /* In contig mode, que_mapping[0] is first queue index used by this VSI */
+ ctxt.info.queue_mapping[0] = 0;
+ /*
+ * This VSI will only use traffic class 0; start traffic class 0's
+ * queue allocation at queue 0, and assign it 64 (2^6) queues (though
+ * the driver may not use all of them).
+ */
+ ctxt.info.tc_mapping[0] = ((0 << I40E_AQ_VSI_TC_QUE_OFFSET_SHIFT)
+ & I40E_AQ_VSI_TC_QUE_OFFSET_MASK) |
+ ((6 << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT)
+ & I40E_AQ_VSI_TC_QUE_NUMBER_MASK);
/* Set VLAN receive stripping mode */
ctxt.info.valid_sections |= I40E_AQ_VSI_PROP_VLAN_VALID;
OpenPOWER on IntegriCloud