]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitd322f004aaa647a5dc9dcddfe5ab1bff1e92f634
tree35893c38e0d87f382bb6aa2950070cc08bc361d2
parent9de61d3fcdde06087f65b4022a1a966c10ab5803
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