aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorWeihang Li <[email protected]>2020-11-28 18:22:39 +0800
committerJason Gunthorpe <[email protected]>2020-12-01 20:58:43 -0400
commit05201e01be937be47e4c970c0a9eb6b6fb375b1e (patch)
tree7e1598008a15cd0384867658f5ec574e787a93de /net/lapb/lapb_subr.c
parentd34895c319faa1e0fc1a48c3b06bba6a8a39ba44 (diff)
RDMA/hns: Refactor process of setting extended sge
The variable 'cnt' is used to represent the max number of sge an SQ WQE can use at first, then it means how many extended sge an SQ has. In addition, this function has no need to return a value. So refactor and encapsulate the parts of getting number of extended sge a WQE can use to make it easier to understand. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Weihang Li <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions