igc: Add qbv_config_change_errors counter
authorMuhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Thu, 16 Feb 2023 02:07:31 +0000 (10:07 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 7 Mar 2023 21:45:56 +0000 (13:45 -0800)
commitae4fe46983007bc46d87dcb284a5e5851c3e1c84
treee236e6c7d617ec81741c04b8b3fe09868baf6a86
parent36e5e391a25af28dc1f4586f95d577b38ff4ed72
igc: Add qbv_config_change_errors counter

Add ConfigChangeError(qbv_config_change_errors) when user try to set the
AdminBaseTime to past value while the current GCL is still running.

The ConfigChangeError counter should not be increased when a gate control
list is scheduled into the future.

User can use "ethtool -S <interface> | grep qbv_config_change_errors"
command to check the counter values.

Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_ethtool.c
drivers/net/ethernet/intel/igc/igc_main.c
drivers/net/ethernet/intel/igc/igc_tsn.c