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
This commit is contained in:
parent
d4683565fd
commit
6bb8f4f665
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user