Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d322f004 authored by oulijun's avatar oulijun Committed by Doug Ledford
Browse files

IB/hns: Fix the bug with modifying the MAC address without removing the driver



When modified the MAC address used hns_roce_mac function, we release and create
reserved qp again, It is not necessary to use spin_lock_bh and spin_unlock_bh in
handle_en_event, Otherwise, it will occur a error. This patch mainly fixes it.

Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 9de61d3f
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -125,8 +125,6 @@ static int handle_en_event(struct hns_roce_dev *hr_dev, u8 port,
		return -ENODEV;
		return -ENODEV;
	}
	}


	spin_lock_bh(&hr_dev->iboe.lock);

	switch (event) {
	switch (event) {
	case NETDEV_UP:
	case NETDEV_UP:
	case NETDEV_CHANGE:
	case NETDEV_CHANGE:
@@ -144,7 +142,6 @@ static int handle_en_event(struct hns_roce_dev *hr_dev, u8 port,
		break;
		break;
	}
	}


	spin_unlock_bh(&hr_dev->iboe.lock);
	return 0;
	return 0;
}
}