]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/P2PDMA: Rename upstream_bridge_distance() and rework doc
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 10 Jun 2021 16:06:04 +0000 (10:06 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Jun 2021 23:01:24 +0000 (18:01 -0500)
commit6db42efbd4376231a8e312eb9c7a258150df3451
tree712e75d76def6ae0647b39ab7a38afb5ced3e76d
parent9fb51bb203ba1c67f480638e9d0605db59810687
PCI/P2PDMA: Rename upstream_bridge_distance() and rework doc

The function upstream_bridge_distance() has evolved such that its name is
no longer entirely reflective of what the function does.  It not only
calculates the distance between two peers but also calculates how the DMA
addresses for those two peers should be mapped.

Rename it to calc_map_type_and_dist() and rework the documentation to
better describe the two pieces of information the function returns.

[bhelgaas: tweak comment wording]
Link: https://lore.kernel.org/r/20210610160609.28447-2-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/p2pdma.c