diff options
author | Parav Pandit <parav@mellanox.com> | 2018-08-28 12:51:37 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-08-30 22:31:50 +0200 |
commit | 3db2bceb29fd9a2f31d5df573f337dbba577f8e9 (patch) | |
tree | e305fa488aec703a43f4c40b22b8451312f446c7 /drivers/infiniband/sw/rxe/rxe_req.c | |
parent | IB/rxe: remove redudant qpn check (diff) | |
download | linux-3db2bceb29fd9a2f31d5df573f337dbba577f8e9.tar.xz linux-3db2bceb29fd9a2f31d5df573f337dbba577f8e9.zip |
IB/rxe: Simplify rxe_find_route() to avoid GID query for netdev
rxe_prepare() is called on an skb which has ndev already initialized by
rxe_init_packet().
Therefore avoid querying the GID attribute again and use the available
netdevice from the skb->dev.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Tested-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_req.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index 8be27238a86e..84d35520781c 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -476,7 +476,7 @@ static int fill_packet(struct rxe_qp *qp, struct rxe_send_wqe *wqe, u32 *p; int err; - err = rxe_prepare(rxe, pkt, skb, &crc); + err = rxe_prepare(pkt, skb, &crc); if (err) return err; |