OSDN Git Service

RDMA/hns: Fix a bug with modifying mac address
authoroulijun <oulijun@huawei.com>
Wed, 7 Feb 2018 09:49:28 +0000 (17:49 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 14 Feb 2018 23:30:12 +0000 (16:30 -0700)
commit173bc6be96c733ff7e6418eece9d64d03e7465b3
tree17bdfb276f8ef37aa2063735291d4ec9fb89121c
parentfc968aee5e984c9cc2417147b9b5cd1da7ab43f3
RDMA/hns: Fix a bug with modifying mac address

When modifying mac address, it will trigger hns_roce_del_gid
function and can't delete the default gid matched the index
because the attribute of gid is null.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_main.c