aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorChengchang Tang <[email protected]>2024-01-13 16:59:31 +0800
committerLeon Romanovsky <[email protected]>2024-01-25 11:54:38 +0200
commit4f5731b1fb2246719513dfb918bf71b6818aa5f5 (patch)
treeb139092e9d1de800fd2824fc9f40002dc4646843 /net/lapb/lapb_subr.c
parenta4ca341080758d847db155b97887bff6f84016a4 (diff)
RDMA/hns: Refactor mtr_init_buf_cfg()
page_shift and page_cnt is only used in mtr_map_bufs(). And these parameter could be calculated indepedently. Strip the computation of page_shift and page_cnt from mtr_init_buf_cfg(), reducing the number of parameters of it. This helps reducing coupling between mtr_init_buf_cfg() and mtr_map_bufs(). Signed-off-by: Chengchang Tang <[email protected]> Signed-off-by: Junxian Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions