mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
i40e: Fix the Tx ring qset handle when DCB reconfigures
When DCB is reconfigured to single TC the driver did not reset the Tx ring Qset handle to the correct mapping; which caused Tx queue disable timeouts. Change-ID: I4da5915ec92a83c281b478d653fae6ef1b72edfe Signed-off-by: Neerav Parikh <neerav.parikh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
7f9ff47683
commit
cd238a3ecf
1 changed files with 9 additions and 2 deletions
|
@ -2689,8 +2689,15 @@ static void i40e_vsi_config_dcb_rings(struct i40e_vsi *vsi)
|
||||||
u16 qoffset, qcount;
|
u16 qoffset, qcount;
|
||||||
int i, n;
|
int i, n;
|
||||||
|
|
||||||
if (!(vsi->back->flags & I40E_FLAG_DCB_ENABLED))
|
if (!(vsi->back->flags & I40E_FLAG_DCB_ENABLED)) {
|
||||||
return;
|
/* Reset the TC information */
|
||||||
|
for (i = 0; i < vsi->num_queue_pairs; i++) {
|
||||||
|
rx_ring = vsi->rx_rings[i];
|
||||||
|
tx_ring = vsi->tx_rings[i];
|
||||||
|
rx_ring->dcb_tc = 0;
|
||||||
|
tx_ring->dcb_tc = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (n = 0; n < I40E_MAX_TRAFFIC_CLASS; n++) {
|
for (n = 0; n < I40E_MAX_TRAFFIC_CLASS; n++) {
|
||||||
if (!(vsi->tc_config.enabled_tc & (1 << n)))
|
if (!(vsi->tc_config.enabled_tc & (1 << n)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue