Skip to content

Commit df34dc9

Browse files
rpearsonhpe-designjgunthorpe
authored andcommitted
RDMA/rxe: Shorten pool names in rxe_pool.c
Replace pool names like "rxe-xx" with "xx". Just reduces clutter. Link: https://lore.kernel.org/r/20220304000808.225811-8-rpearsonhpe@gmail.com Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 3ccffe8 commit df34dc9

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/infiniband/sw/rxe/rxe_pool.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ static const struct rxe_type_info {
1919
u32 max_elem;
2020
} rxe_type_info[RXE_NUM_TYPES] = {
2121
[RXE_TYPE_UC] = {
22-
.name = "rxe-uc",
22+
.name = "uc",
2323
.size = sizeof(struct rxe_ucontext),
2424
.elem_offset = offsetof(struct rxe_ucontext, elem),
2525
.max_elem = UINT_MAX,
2626
},
2727
[RXE_TYPE_PD] = {
28-
.name = "rxe-pd",
28+
.name = "pd",
2929
.size = sizeof(struct rxe_pd),
3030
.elem_offset = offsetof(struct rxe_pd, elem),
3131
.max_elem = UINT_MAX,
3232
},
3333
[RXE_TYPE_AH] = {
34-
.name = "rxe-ah",
34+
.name = "ah",
3535
.size = sizeof(struct rxe_ah),
3636
.elem_offset = offsetof(struct rxe_ah, elem),
3737
.flags = RXE_POOL_INDEX,
@@ -40,7 +40,7 @@ static const struct rxe_type_info {
4040
.max_elem = RXE_MAX_AH_INDEX - RXE_MIN_AH_INDEX + 1,
4141
},
4242
[RXE_TYPE_SRQ] = {
43-
.name = "rxe-srq",
43+
.name = "srq",
4444
.size = sizeof(struct rxe_srq),
4545
.elem_offset = offsetof(struct rxe_srq, elem),
4646
.flags = RXE_POOL_INDEX,
@@ -49,7 +49,7 @@ static const struct rxe_type_info {
4949
.max_elem = RXE_MAX_SRQ_INDEX - RXE_MIN_SRQ_INDEX + 1,
5050
},
5151
[RXE_TYPE_QP] = {
52-
.name = "rxe-qp",
52+
.name = "qp",
5353
.size = sizeof(struct rxe_qp),
5454
.elem_offset = offsetof(struct rxe_qp, elem),
5555
.cleanup = rxe_qp_cleanup,
@@ -59,14 +59,14 @@ static const struct rxe_type_info {
5959
.max_elem = RXE_MAX_QP_INDEX - RXE_MIN_QP_INDEX + 1,
6060
},
6161
[RXE_TYPE_CQ] = {
62-
.name = "rxe-cq",
62+
.name = "cq",
6363
.size = sizeof(struct rxe_cq),
6464
.elem_offset = offsetof(struct rxe_cq, elem),
6565
.cleanup = rxe_cq_cleanup,
6666
.max_elem = UINT_MAX,
6767
},
6868
[RXE_TYPE_MR] = {
69-
.name = "rxe-mr",
69+
.name = "mr",
7070
.size = sizeof(struct rxe_mr),
7171
.elem_offset = offsetof(struct rxe_mr, elem),
7272
.cleanup = rxe_mr_cleanup,
@@ -76,7 +76,7 @@ static const struct rxe_type_info {
7676
.max_elem = RXE_MAX_MR_INDEX - RXE_MIN_MR_INDEX + 1,
7777
},
7878
[RXE_TYPE_MW] = {
79-
.name = "rxe-mw",
79+
.name = "mw",
8080
.size = sizeof(struct rxe_mw),
8181
.elem_offset = offsetof(struct rxe_mw, elem),
8282
.cleanup = rxe_mw_cleanup,

0 commit comments

Comments
 (0)