RDMA/rxe: Improve loopback marking
authorKamal Heib <kamalheib1@gmail.com>
Tue, 29 Jan 2019 10:08:50 +0000 (12:08 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Feb 2019 22:57:49 +0000 (15:57 -0700)
commit668aa15b5bf87f156ec805cb7348c785c56b82ab
tree1d70fe5922d8da7a127a92358b4f499862ab8389
parentfa40718804a1c164b62c95ca626f26308be44257
RDMA/rxe: Improve loopback marking

Currently a packet is marked for loopback only if the source and
destination addresses equals. This is not enough when multiple gids are
present in rxe device's gid table and the traffic is from one gid to
another. Fix it by marking the packet for loopback if the destination MAC
address is equal to the source MAC address.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Tested-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_av.c
drivers/infiniband/sw/rxe/rxe_net.c
include/uapi/rdma/rdma_user_rxe.h