Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4634482pxj; Wed, 12 May 2021 09:42:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCs+wW7Q8Me7sV9VeEhedTC2XaNGHAMxYyVPcxxK1gdGwTxftZaTP+vvIT1W7jSYLzdSDV X-Received: by 2002:a05:651c:201e:: with SMTP id s30mr5674051ljo.223.1620837753387; Wed, 12 May 2021 09:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837753; cv=none; d=google.com; s=arc-20160816; b=DJ/eRd6VtB7grN78HRpAn4UGQBerWltIkGe9fZBYt5ndiO5gEwT/RrmrbdhlHvSUOm SXKaMkAT82IiVJPRUxoZLFVDiqbKMPgeMpJ8JoM2Z4EoeH9pIYy/Yeu9BpHRt0JodN9U gR1TnI7475cdCYA+MkpFn93/NepI/8pZZPZ6FOx6owAZnvWpbdXYpudOzA0jZ6scXQuh Xl6dBc69atgBHZB2gAwrK+pBXu3iwT7otEFtxFr/w4FpO2nc75eI/wI7rI52vn6r7ZKB nsLZY2k/+MzbnpZipMDU6uEiLKmysgV3c7IvvWGd4JBH7N7Bw0WgjgV+zkScA1AfrkQw MxCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SX3VRg3FxYJxYkVzP7EFDdnBkao0/KfdrKSyKdEnf+I=; b=KjXq4jl2g+P4D9HEyF4oK3Nzm1+CrmCCh/xWObtFSOe9GAm8glvZzLPUY4djpRWFAg tF7PEmSyX0YNU3jOvWauXCcG+ymy6d/VZs7hGabEpJmT1vfhjv0RtpQqMOU7jR9VU6vA rGaNE6bJCXDs3dPfQ9cwIj+BAtT55W6RvTvib+g2OjpEwdc2AjprZGNThnrQMZoCyrVB h8QqGwNg+koAbsvJa/J0uEAmPRJlIzp7bjrq2Cegblt2WZQlrkk5B/BJf64UdeuKc8yH oRFIwQP1ESijp/upnPGuVTH1KhTBsnw/SVIPQWCc9G4QKOapZs1i2osbiPRR3liRMmgG VBQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FNUi90Sx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o20si544802lfu.226.2021.05.12.09.41.54; Wed, 12 May 2021 09:42:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FNUi90Sx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239243AbhELQiz (ORCPT + 99 others); Wed, 12 May 2021 12:38:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:40250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236757AbhELPqF (ORCPT ); Wed, 12 May 2021 11:46:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DD57B61C9D; Wed, 12 May 2021 15:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833021; bh=kL0SoY78/Ia2wiBtVrHuK92g/GpWUYRL3KVqgA3sy9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNUi90SxknYmxkn+wCH1w9JyRITyldGcSaSSUZXcRcysYA+hd9uCGraevbRnRP9er G72OX96dnmNHzWfeL1U/QoYSpyWuHmx0If5BkEwu2x8i9TdCBTnSd6QOORKR7n04jq aaah/f6Wh3E5l5FaUPghZvmnfxhnspyv9aRkiYTc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Frank Zago , Bob Pearson , Zhu Yanjun , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.10 483/530] RDMA/rxe: Fix a bug in rxe_fill_ip_info() Date: Wed, 12 May 2021 16:49:53 +0200 Message-Id: <20210512144835.635355860@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bob Pearson [ 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@hpe.com Suggested-by: Frank Zago Signed-off-by: Bob Pearson Acked-by: Zhu Yanjun Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/sw/rxe/rxe_av.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2