]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set RoCEv2 MGID according to spec in ibcore.
authorhselasky <hselasky@FreeBSD.org>
Tue, 17 Jul 2018 09:07:36 +0000 (09:07 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 17 Jul 2018 09:07:36 +0000 (09:07 +0000)
commitaab495f4dc5afbb9d64153b1893a6a78dbe43003
treec6729f71f99f208d7674e7c15ee5c298706d5be4
parent36fd10650fd327a3c0e04c5ff39d691abc79d04f
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

MFC after: 1 week
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