]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: initialize the rd struct
authorSteve Wise <swise@opengridcomputing.com>
Thu, 29 Mar 2018 16:10:35 +0000 (09:10 -0700)
committerDavid Ahern <dsahern@gmail.com>
Sun, 1 Apr 2018 15:18:43 +0000 (08:18 -0700)
commit80c0478fdf39c7b599b3f4f2ada497ab7bbd7030
treef4d0e6d7ab876c0e509bf25e7a499948c2c153f1
parent8d61311611a8e6762861f159cb395274f1a79f54
rdma: initialize the rd struct

Initialize the rd struct so port_idx is 0 unless set otherwise.
Otherwise, strict_port queries end up passing an uninitialized PORT
nlattr.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
rdma/rdma.c