aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc.h
diff options
context:
space:
mode:
authorMuhammad Husaini Zulkifli <[email protected]>2023-05-15 06:03:36 +0000
committerTony Nguyen <[email protected]>2023-07-05 17:21:33 +0000
commited89b74d2dc920cb61d3094e0e97ec8775b13086 (patch)
treeb946f0b65da23d57111e9df25cb3d7729779ed2e /drivers/net/ethernet/intel/igc/igc.h
parentMerge branch 'mptcp-fixes' (diff)
downloadkernel-ed89b74d2dc920cb61d3094e0e97ec8775b13086.tar.gz
kernel-ed89b74d2dc920cb61d3094e0e97ec8775b13086.zip
igc: Add condition for qbv_config_change_errors counter
Add condition to increase the qbv counter during taprio qbv configuration only. There might be a case when TC already been setup then user configure the ETF/CBS qdisc and this counter will increase if no condition above. Fixes: ae4fe4698300 ("igc: Add qbv_config_change_errors counter") Signed-off-by: Muhammad Husaini Zulkifli <[email protected]> Tested-by: Naama Meir <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc.h')
-rw-r--r--drivers/net/ethernet/intel/igc/igc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc.h b/drivers/net/ethernet/intel/igc/igc.h
index 00a5ee487812..aa5ceab0d371 100644
--- a/drivers/net/ethernet/intel/igc/igc.h
+++ b/drivers/net/ethernet/intel/igc/igc.h
@@ -184,6 +184,7 @@ struct igc_adapter {
u32 max_frame_size;
u32 min_frame_size;
+ int tc_setup_type;
ktime_t base_time;
ktime_t cycle_time;
bool qbv_enable;