@@ -957,24 +957,11 @@ static void qedr_remove(struct qedr_dev *dev)
ib_dealloc_device(&dev->ibdev);
}
-static void qedr_close(struct qedr_dev *dev)
-{
- if (test_and_clear_bit(QEDR_ENET_STATE_BIT, &dev->enet_state))
- qedr_ib_dispatch_event(dev, QEDR_PORT, IB_EVENT_PORT_ERR);
-}
-
static void qedr_shutdown(struct qedr_dev *dev)
{
- qedr_close(dev);
qedr_remove(dev);
}
-static void qedr_open(struct qedr_dev *dev)
-{
- if (!test_and_set_bit(QEDR_ENET_STATE_BIT, &dev->enet_state))
- qedr_ib_dispatch_event(dev, QEDR_PORT, IB_EVENT_PORT_ACTIVE);
-}
-
static void qedr_mac_address_change(struct qedr_dev *dev)
{
union ib_gid *sgid = &dev->sgid_tbl[0];
@@ -1014,12 +1001,6 @@ static void qedr_mac_address_change(struct qedr_dev *dev)
static void qedr_notify(struct qedr_dev *dev, enum qede_rdma_event event)
{
switch (event) {
- case QEDE_UP:
- qedr_open(dev);
- break;
- case QEDE_DOWN:
- qedr_close(dev);
- break;
case QEDE_CLOSE:
qedr_shutdown(dev);
break;