mbox series

[RFC,for-next,0/6] ofed support to send ib port link event

Message ID 1579147847-12158-1-git-send-email-liweihang@huawei.com (mailing list archive)
Headers show
Series ofed support to send ib port link event | expand

Message

Weihang Li Jan. 16, 2020, 4:10 a.m. UTC
Some provider's driver has supported to send port link event to ofed, but
this function is implemented separately by each manufacturer.

This series provides a solution in ib core, and remove the relevant codes
of some manufacturers, supports reporting port active time during device
registration and sending port error events when device is deregistered.

The key point is how to shield the port event of the backup port in the ib
bonding scenario. Since the active-backup control is judged by the vendor
driver, so the ops.query_port of vendor would determine the port role. And
there is no relevant data structure in ib_core, so modify struct
ib_port_cache to store this information.

Lang Cheng (6):
  RDMA/core: support deliver net device event
  RDMA/mlx5: remove deliver net device event
  RDMA/i40iw: remove deliver net device event
  RDMA/qedr: remove deliver net device event
  RDMA/vmw_pvrdma: remove deliver net device event
  qede: remove invalid notify operation

 drivers/infiniband/core/cache.c                |  21 ++++-
 drivers/infiniband/core/device.c               | 123 +++++++++++++++++++++++++
 drivers/infiniband/hw/i40iw/i40iw_main.c       |   6 --
 drivers/infiniband/hw/i40iw/i40iw_utils.c      |  44 ---------
 drivers/infiniband/hw/mlx5/main.c              |  95 ++-----------------
 drivers/infiniband/hw/qedr/main.c              |  19 ----
 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c |   5 -
 drivers/net/ethernet/qlogic/qede/qede_rdma.c   |   4 -
 include/rdma/ib_cache.h                        |  13 +++
 include/rdma/ib_verbs.h                        |   8 ++
 10 files changed, 173 insertions(+), 165 deletions(-)

Comments

Leon Romanovsky Jan. 16, 2020, 11:15 a.m. UTC | #1
On Thu, Jan 16, 2020 at 12:10:41PM +0800, Weihang Li wrote:
> Some provider's driver has supported to send port link event to ofed, but

How is "ofed" related here?