]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336370:
authorhselasky <hselasky@FreeBSD.org>
Thu, 2 Aug 2018 08:12:52 +0000 (08:12 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 2 Aug 2018 08:12:52 +0000 (08:12 +0000)
commit992eac3c3e816b546c355952055874426b6f6c75
tree1eada80d8a30a040d77217f2fdf7f56f41ab98e7
parentb6d173d1e0473431e72efa55ad19d553c1ef39f5
MFC r336370:
Set RoCEv2 MGID according to spec in ibcore.

RoCEv2 Annex states that for RoCEv2 over IPv4, the corresponding
IPv4 address is encoded into the GID according to the following rule:
GID= :ffff:<IPv4 address>

Remove the 0xff0e prefix for RoCEv2 packets with IPv4 and leave it
zeroed and change rdma_is_multicast_addr() to consider the new logic.

Linux commit:
be1d325a335840a86c133a56c6a911c368bac0fd
1c3aea2bc8f0b2e5b57375ead40457ff75a3a2ec

Sponsored by: Mellanox Technologies
sys/ofed/drivers/infiniband/core/ib_cma.c
sys/ofed/drivers/infiniband/core/ib_verbs.c
sys/ofed/include/rdma/ib_addr.h