diff options
| author | Vinicius Costa Gomes <[email protected]> | 2021-08-09 14:53:39 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2021-08-27 16:31:08 +0000 |
| commit | 61572d5f8f91d8603d8db028e1ec9e18fc0ca245 (patch) | |
| tree | 4044e1c58a4f908aba95e904c255d14c51f1438a /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | igc: Use default cycle 'start' and 'end' values for queues (diff) | |
| download | kernel-61572d5f8f91d8603d8db028e1ec9e18fc0ca245.tar.gz kernel-61572d5f8f91d8603d8db028e1ec9e18fc0ca245.zip | |
igc: Simplify TSN flags handling
Separates the procedure done during reset from applying a
configuration, knowing when the code is executing allow us to
separate the better what changes the hardware state from what
changes only the driver state.
Introduces a flag for bookkeeping the driver state of TSN
features. When Qav and frame-preemption is also implemented
this flag makes it easier to keep track on whether a TSN feature
driver state is enabled or not though controller state changes,
say, during a reset.
Signed-off-by: Vinicius Costa Gomes <[email protected]>
Signed-off-by: Aravindhan Gunasekaran <[email protected]>
Signed-off-by: Mallikarjuna Chilakala <[email protected]>
Tested-by: Dvora Fuxbrumer <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 411d6caa27b5..2e5c9b5a57d1 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -120,7 +120,7 @@ void igc_reset(struct igc_adapter *adapter) igc_ptp_reset(adapter); /* Re-enable TSN offloading, where applicable. */ - igc_tsn_offload_apply(adapter); + igc_tsn_reset(adapter); igc_get_phy_info(hw); } |
