diff options
author | Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com> | 2023-08-07 13:51:29 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-08 16:36:23 -0700 |
commit | 06b412589eef780b792e73df131d35dc43cc4a49 (patch) | |
tree | 0fb28ac74ffbde3be8e0a8e846f7e0d40fb50a9b /virt/Makefile | |
parent | b9077ef4c1368b5a51852facc53c24fcd234e910 (diff) | |
download | lwn-06b412589eef780b792e73df131d35dc43cc4a49.tar.gz lwn-06b412589eef780b792e73df131d35dc43cc4a49.zip |
igc: Add lock to safeguard global Qbv variables
Access to shared variables through hrtimer requires locking in order
to protect the variables because actions to write into these variables
(oper_gate_closed, admin_gate_closed, and qbv_transition) might potentially
occur simultaneously. This patch provides a locking mechanisms to avoid
such scenarios.
Fixes: 175c241288c0 ("igc: Fix TX Hang issue when QBV Gate is closed")
Suggested-by: Leon Romanovsky <leon@kernel.org>
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>
Link: https://lore.kernel.org/r/20230807205129.3129346-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'virt/Makefile')
0 files changed, 0 insertions, 0 deletions