[ofa-general] [RFC v2 PATCH 4/5] rdma/cma: implement RDMA_ALIGN_WITH_NETDEVICE ha mode
Steve Wise
swise at opengridcomputing.com
Thu May 15 07:36:02 PDT 2008
Or Gerlitz wrote:
> RDMA_ALIGN_WITH_NETDEVICE high availability (ha) mode means that the consumer
> of the rdma-cm wants that RDMA sessions would always use the same links (eg <hca/port>)
> as the IP stack does. In the current code, this does not happen when bonding did
> fail-over but the IB link used by an already existing session is operating fine.
>
> Use netevent notification for sensing that a change has happened in the IP stack,
> then scan the rdma-cm IDs list to see if there is an ID that is misaligned
> in that respect with the IP stack, and deliver RDMA_CM_EVENT_NETDEV_CHANGE for this
> ID, in case this is what the user asked by setting this mode for the ID.
>
> Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
>
At this point, I wonder if the naming should be different. IE the
consumer really just wants notification of device change events.
So instead of adding a new function rdma_set_high_availability_mode, you
could just set an option saying WANT_NETDEV_CHANGE_EVENTS. Maybe we
need to add rdma_set_option() to the kernel RDMA-CM API?
IE make it more generic.
Just a thought...
Steve.
More information about the general
mailing list