RDMA/erdma: Remove deliver net device event
authorYuyu Li <liyuyu6@huawei.com>
Fri, 22 Nov 2024 10:53:00 +0000 (18:53 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 25 Dec 2024 07:35:47 +0000 (02:35 -0500)
commit18eb2bf3df190f03f62e8ed45730229002cc341f
tree25346c9c492f4b55ecc9289ecc9a04d79db1b468
parentd3b15fcc4201f886c75fc55bb6bdd1056c7ea433
RDMA/erdma: Remove deliver net device event

Since the netdev events of link status is now handled in ib_core,
remove the related code in drivers.

In addition, remove dev->state as it is only used in erdma_query_port(),
and it can be replaced by ib_get_curr_port_state().

Signed-off-by: Yuyu Li <liyuyu6@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma.h
drivers/infiniband/hw/erdma/erdma_main.c
drivers/infiniband/hw/erdma/erdma_verbs.c