]> www.infradead.org Git - users/hch/blktests.git/commitdiff
common/multipath-over-rdma: Rename two functions
authorBart Van Assche <bvanassche@acm.org>
Fri, 13 Dec 2019 14:32:30 +0000 (09:32 -0500)
committerOmar Sandoval <osandov@fb.com>
Thu, 19 Dec 2019 22:45:55 +0000 (14:45 -0800)
Since the meaning of this functions will change, make sure that the
function name will match the new meaning.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
common/multipath-over-rdma

index 15f296ef2ab7ffe8ec0bcc8498dec06f9fd568ed..9f645f759d2d59d3da56daf36a9789a8669a5130 100644 (file)
@@ -409,7 +409,7 @@ has_rdma_rxe() {
 }
 
 # Load the rdma_rxe kernel module and associate it with all network interfaces.
-start_rdma_rxe() {
+start_soft_rdma() {
        {
                modprobe rdma_rxe || return $?
                (
@@ -425,7 +425,7 @@ start_rdma_rxe() {
 
 # Dissociate the rdma_rxe kernel module from all network interfaces and unload
 # the rdma_rxe kernel module.
-stop_rdma_rxe() {
+stop_soft_rdma() {
        (
                cd /sys/class/net &&
                        for i in *; do
@@ -608,7 +608,7 @@ unload_null_blk() {
 }
 
 setup_rdma() {
-       start_rdma_rxe
+       start_soft_rdma
        (
                echo "RDMA interfaces:"
                cd /sys/class/infiniband &&
@@ -627,7 +627,7 @@ teardown_uncond() {
        killall -9 multipathd >&/dev/null
        rm -f /etc/multipath.conf
        stop_target
-       stop_rdma_rxe
+       stop_soft_rdma
        unload_null_blk
 }