diff options
author | Scott Franco <safranco@intel.com> | 2017-09-26 15:44:13 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-09-27 17:21:57 +0200 |
commit | 4bbdfe25600c1909c26747d0b5c39fd0e409bb87 (patch) | |
tree | 705f5afcee749eb99cfa932a0bfdbcec8c5b5b8d /drivers/infiniband/ulp/opa_vnic | |
parent | IB/opa_vnic: Properly return the total MACs in UC MAC list (diff) | |
download | linux-4bbdfe25600c1909c26747d0b5c39fd0e409bb87.tar.xz linux-4bbdfe25600c1909c26747d0b5c39fd0e409bb87.zip |
IB/opa_vnic: Properly clear Mac Table Digest
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>
Diffstat (limited to 'drivers/infiniband/ulp/opa_vnic')
-rw-r--r-- | drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c b/drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c index afa938bd26d6..a72278e9cd27 100644 --- a/drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c +++ b/drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c @@ -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); } |