diff mbox series

[1/1] UBUNTU: SAUCE: (no-up) igc: fix frame preemption not able to set

Message ID 20231003172355.244756-2-philip.cox@canonical.com
State New
Headers show
Series Cannot set frame preemption on i225 NICs | expand

Commit Message

Philip Cox Oct. 3, 2023, 5:23 p.m. UTC
From: Lai Peter Jun Ann <jun.ann.lai@intel.com>

BugLink: https://bugs.launchpad.net/bugs/2038349

A flag for bookkeeping the driver state of TSN features is
already introduced to keep track on whether a TSN feature
driver state is enabled or not though controller state changes.
Hence, separates the procedure done during reset from applying a
configuration.

Signed-off-by: Lai Peter Jun Ann <jun.ann.lai@intel.com>
Signed-off-by: Gan Yi Fang <yi.fang.gan@intel.com>
Signed-off-by: Noor Azura Ahmad Tarmizi <noor.azura.ahmad.tarmizi@linux.intel.com>
Signed-off-by: Philip Cox <philip.cox@canonical.com>
---
 drivers/net/ethernet/intel/igc/igc_tsn.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c
index eed736eee67a..266d1ffb6f85 100644
--- a/drivers/net/ethernet/intel/igc/igc_tsn.c
+++ b/drivers/net/ethernet/intel/igc/igc_tsn.c
@@ -60,10 +60,6 @@  static int igc_tsn_disable_offload(struct igc_adapter *adapter)
 
 	int i;
 
-	if (!(adapter->flags & IGC_FLAG_TSN_QBV_ENABLED))
-		return 0;
-
-	adapter->cycle_time = 0;
 	adapter->add_frag_size = IGC_I225_MIN_FRAG_SIZE_DEFAULT;
 
 	wr32(IGC_TXPBS, I225_TXPBSIZE_DEFAULT);