summaryrefslogtreecommitdiff
path: root/lib/nlattr.c
diff options
context:
space:
mode:
authorNoa Osherovich <noaos@mellanox.com>2017-06-12 11:14:03 +0300
committerDoug Ledford <dledford@redhat.com>2017-07-24 17:40:23 +0300
commitbe1d325a335840a86c133a56c6a911c368bac0fd (patch)
tree99f54a1d65b2ae6726e8f76f47d281dab31e5bbf /lib/nlattr.c
parent5236333592244557a19694a51337df6ac018f0a7 (diff)
downloadlinux-be1d325a335840a86c133a56c6a911c368bac0fd.tar.xz
IB/core: Set RoCEv2 MGID according to spec
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. Signed-off-by: Noa Osherovich <noaos@mellanox.com> Reviewed-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions