Patch "RDMA/rxe: Fix a bug in rxe_fill_ip_info()" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    RDMA/rxe: Fix a bug in rxe_fill_ip_info()

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rdma-rxe-fix-a-bug-in-rxe_fill_ip_info.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 460f206221b83dfb73ca0fff17d289c471ccb764
Author: Bob Pearson <rpearsonhpe@xxxxxxxxx>
Date:   Tue Apr 20 22:59:53 2021 -0500

    RDMA/rxe: Fix a bug in rxe_fill_ip_info()
    
    [ Upstream commit 45062f441590810772959d8e1f2b24ba57ce1bd9 ]
    
    Fix a bug in rxe_fill_ip_info() which was attempting to convert from
    RDMA_NETWORK_XXX to RXE_NETWORK_XXX. .._IPV6 should have mapped to .._IPV6
    not .._IPV4.
    
    Fixes: edebc8407b88 ("RDMA/rxe: Fix small problem in network_type patch")
    Link: https://lore.kernel.org/r/20210421035952.4892-1-rpearson@xxxxxxx
    Suggested-by: Frank Zago <frank.zago@xxxxxxx>
    Signed-off-by: Bob Pearson <rpearson@xxxxxxx>
    Acked-by: Zhu Yanjun <zyjzyj2000@xxxxxxxxx>
    Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/infiniband/sw/rxe/rxe_av.c b/drivers/infiniband/sw/rxe/rxe_av.c
index df0d173d6acb..da2e867a1ed9 100644
--- a/drivers/infiniband/sw/rxe/rxe_av.c
+++ b/drivers/infiniband/sw/rxe/rxe_av.c
@@ -88,7 +88,7 @@ void rxe_av_fill_ip_info(struct rxe_av *av, struct rdma_ah_attr *attr)
 		type = RXE_NETWORK_TYPE_IPV4;
 		break;
 	case RDMA_NETWORK_IPV6:
-		type = RXE_NETWORK_TYPE_IPV4;
+		type = RXE_NETWORK_TYPE_IPV6;
 		break;
 	default:
 		/* not reached - checked in rxe_av_chk_attr */



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux