mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvethernet: remove spin locks and re-initialize private variable
Issue: 1) Spin locks are used for code path which is already serialized by network stack 2) On interface down/up, MAC registers are getting reset and re-initialized but private structure variables are not updated Fix: 1) Remove spinlocks 2) Re-initialize private structure variables Bug 200548252 Bug 200547544 Change-Id: Ifb0ce27ba96f8657eebde21e5d02d8b36fb1778b Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2189974 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
8708cf6e98
commit
c080c796e2
@@ -273,12 +273,8 @@ struct ether_priv_data {
|
||||
* whcih has triggered */
|
||||
atomic_t therm_state;
|
||||
#endif /* THERMAL_CAL */
|
||||
/** Spin lock for filter code */
|
||||
spinlock_t lock;
|
||||
/** Spin lock for Tx/Rx interrupt enable registers */
|
||||
spinlock_t rlock;
|
||||
/** spin lock for filter code ioctl path */
|
||||
spinlock_t ioctl_lock;
|
||||
/** max address register count, 2*mac_addr64_sel */
|
||||
int num_mac_addr_regs;
|
||||
/** Last Multicast address reg filter index, If 0,no MC address added */
|
||||
|
||||
Reference in New Issue
Block a user