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>
 
        ktime_t base_time;
        ktime_t cycle_time;
+       bool qbv_enable;
 
        /* OS defined structs */
        struct pci_dev *pdev;
 
        u32 start_time = 0, end_time = 0;
        size_t n;
 
+       adapter->qbv_enable = qopt->enable;
+
        if (!qopt->enable)
                return igc_tsn_clear_schedule(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))