aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2019-05-23 16:30:53 -0600
committerJon Mason <[email protected]>2019-06-13 08:59:47 -0400
commit246a42c51bc5dd247629f86c87d5e1b7628343c4 (patch)
tree92be49c08271bb83b9f5fc653192dc131b8f8301 /net/lapb/lapb_timer.c
parentfcdf8e95fa3b97097bd4e200f0ee04df85b04d99 (diff)
NTB: Introduce helper functions to calculate logical port number
This patch introduces the "Logical Port Number" which is similar to the "Port Number" in that it enumerates the ports in the system. The original (or Physical) "Port Number" can be any number used by the hardware to uniquely identify a port in the system. The "Logical Port Number" enumerates all ports in the system from 0 to the number of ports minus one. For example a system with 5 ports might have the following port numbers which would be enumerated thusly: Port Number: 1 2 5 7 116 Logical Port Number: 0 1 2 3 4 The logical port number is useful when calculating which resources to use for which peers. So we thus define two helper functions: ntb_logical_port_number() and ntb_peer_logical_port_number() which provide the "Logical Port Number" for the local port and any peer respectively. Signed-off-by: Logan Gunthorpe <[email protected]> Cc: Dave Jiang <[email protected]> Cc: Allen Hubbe <[email protected]> Cc: Serge Semin <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions