mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-05 04:33:05 +09:00
IB/opa_vnic: Properly clear Mac Table Digest
[ Upstream commit 4bbdfe2560 ]
Clear the MAC table digest when the MAC table is freed.
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Scott Franco <safranco@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0d74c05ca7
commit
ecffae1122
@@ -139,6 +139,7 @@ void opa_vnic_release_mac_tbl(struct opa_vnic_adapter *adapter)
|
||||
rcu_assign_pointer(adapter->mactbl, NULL);
|
||||
synchronize_rcu();
|
||||
opa_vnic_free_mac_tbl(mactbl);
|
||||
adapter->info.vport.mac_tbl_digest = 0;
|
||||
mutex_unlock(&adapter->mactbl_lock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user