mirror of
https://github.com/torvalds/linux.git
synced 2026-10-14 11:54:03 +02:00
RDMA/rxe: Add query_gid support
The query_gid is not implemented in RXE. After the raw_gid is added, this query_gid should be implemented in RXE. Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev> Link: https://patch.msgid.link/20250119172831.3123110-3-yanjun.zhu@linux.dev Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
d34d0bdb50
commit
93486fc96f
|
|
@ -80,6 +80,18 @@ static int rxe_query_port(struct ib_device *ibdev,
|
|||
return err;
|
||||
}
|
||||
|
||||
static int rxe_query_gid(struct ib_device *ibdev, u32 port, int idx,
|
||||
union ib_gid *gid)
|
||||
{
|
||||
struct rxe_dev *rxe = to_rdev(ibdev);
|
||||
|
||||
/* subnet_prefix == interface_id == 0; */
|
||||
memset(gid, 0, sizeof(*gid));
|
||||
memcpy(gid->raw, rxe->raw_gid, ETH_ALEN);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rxe_query_pkey(struct ib_device *ibdev,
|
||||
u32 port_num, u16 index, u16 *pkey)
|
||||
{
|
||||
|
|
@ -1493,6 +1505,7 @@ static const struct ib_device_ops rxe_dev_ops = {
|
|||
.query_ah = rxe_query_ah,
|
||||
.query_device = rxe_query_device,
|
||||
.query_pkey = rxe_query_pkey,
|
||||
.query_gid = rxe_query_gid,
|
||||
.query_port = rxe_query_port,
|
||||
.query_qp = rxe_query_qp,
|
||||
.query_srq = rxe_query_srq,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user