diff options
author | 2022-12-09 12:15:20 +0800 | |
---|---|---|
committer | 2022-12-15 13:19:49 -0800 | |
commit | e17090eb24944fbbe1f24d9f336d7bad4fbe47e8 (patch) | |
tree | 689b077aa301d0669771145ab2987056ab741ee6 /drivers/net/ethernet/intel/igc/igc_tsn.c | |
parent | igc: Add checking for basetime less than zero (diff) | |
download | linux-e17090eb24944fbbe1f24d9f336d7bad4fbe47e8.tar.gz linux-e17090eb24944fbbe1f24d9f336d7bad4fbe47e8.tar.bz2 linux-e17090eb24944fbbe1f24d9f336d7bad4fbe47e8.zip |
igc: allow BaseTime 0 enrollment for Qbv
Introduce qbv_enable flag in igc_adapter struct to store the Qbv on/off.
So this allow the BaseTime to enroll with zero value.
Fixes: 61572d5f8f91 ("igc: Simplify TSN flags handling")
Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Signed-off-by: Tan Tee Min <tee.min.tan@linux.intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_tsn.c')
-rw-r--r-- | drivers/net/ethernet/intel/igc/igc_tsn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c index 684aedd4d088..bb10d7b65232 100644 --- a/drivers/net/ethernet/intel/igc/igc_tsn.c +++ b/drivers/net/ethernet/intel/igc/igc_tsn.c @@ -36,7 +36,7 @@ static unsigned int igc_tsn_new_flags(struct igc_adapter *adapter) { unsigned int new_flags = adapter->flags & ~IGC_FLAG_TSN_ANY_ENABLED; - if (adapter->base_time) + if (adapter->qbv_enable) new_flags |= IGC_FLAG_TSN_QBV_ENABLED; if (is_any_launchtime(adapter)) |