]> 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)
commitfeb7a75856c6135f444ae19778c9dfcceef1b513
tree35893c38e0d87f382bb6aa2950070cc08bc361d2
parent8804516a278dbf21f36eefc8cae496de213edea0
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