]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hns: Fix the bug with modifying the MAC address without removing the driver
authoroulijun <oulijun@huawei.com>
Sat, 10 Jun 2017 10:49:24 +0000 (18:49 +0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Jul 2017 01:21:29 +0000 (21:21 -0400)
commit334543e20ceec1daf23f7802ac4a9f06b65b9c0f
tree35893c38e0d87f382bb6aa2950070cc08bc361d2
parentac2327778de2781b902a2fb2beaeb2cf0f88f42b
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: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_main.c