OSDN Git Service

IB/rxe: Do not hide uABI stuff in memcpy
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 12 Jun 2018 02:56:50 +0000 (20:56 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 17:09:05 +0000 (11:09 -0600)
commit7f3ee8e030d851fdb0eace00cc5ceb294238c1b8
tree1c0965e43a2b67193941ef34dddab156ef4b5c73
parentaaf5e003b1c454c5722bc4ea9dfd3506c57d36a9
IB/rxe: Do not hide uABI stuff in memcpy

struct rxe_global_route and struct ib_global_route are not the same thing
and should not be memcpy'd over each other, do a member by member copy
instead. This allows the layout of the in-kernel struct ib_global_route to
be changed without breaking rxe.

Reviewed-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_av.c