Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3492383pxf; Mon, 29 Mar 2021 03:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Noo79XfKNGifXpxglETHTVM/ZoEGqDxU9HaH9xkCdH0njeI94sBpDOcoJyvF0mieN1uv X-Received: by 2002:a17:906:3c46:: with SMTP id i6mr28407700ejg.80.1617015288909; Mon, 29 Mar 2021 03:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015288; cv=none; d=google.com; s=arc-20160816; b=jyUVx0QyUQtISeArZdHThJimD7htO2Kk9RPej64NkqbvF5hqSP0k1ffCFen4gXYrDF dbpiQYNk1Ji4LBq3Og3TTImSVce4lfwd9XUX4L6U22GITOOWq0zP5NQmFbGS30cpfl6S NmtMqatRzrH6+D4QoBmhWdbeEaPgTEgqLAzdwJenPGHaAU6Dxr4jDTKFiMfQiMqVKOQ7 gNEM/srpd6PPCHYNX4vlPSw/6z89OFAsbHr7UFzNoFdWMYmaAr56nwC+Jv20DCBYRueQ 4K8q+iY9PwtEfYRDshSUtx1Yjeh6C1Nm54fGRtAWRriZTkbegMeg+IfYl2PiUEvrn573 hQfQ== 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=7q+z/J5CySMgAAo/FC8z8sgzhq49hH7/t2nIclKG69c=; b=JZSA82/CiyAtbFYqJqBEZAJGYvEA7xO6bTAeSnhV+AdZrZuVb5oMbTp94S/Cd5xIGm Pnq90AHpP4HQhTXW8LwhhlcgLj5Qy0d/a4W6j/UqytNdDD1wOgAtx1g0+fQyYW77pv/n DRLhCk12gONbYaN3AtmQ4aRomQ2NPqYi4Of8b5uOKUo6NHyoeNtqcKF0l5LpKHlsNYx+ RUAdaf4Mf1YObYMXuoraU1agfiiqDNmntymgUjDfMCD4NKMS2zz61PVC8I58wcfi4yWy MrL55FriAP5dgZz3xk21k/VHxa0p89WHPosEymF7NlvZJLuHquYIzgmoKF9dzRpn6Zwd ypAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E7gSxKEB; 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 hd8si12553090ejc.78.2021.03.29.03.54.26; Mon, 29 Mar 2021 03:54:48 -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=E7gSxKEB; 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 S234555AbhC2Ing (ORCPT + 99 others); Mon, 29 Mar 2021 04:43:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbhC2IZy (ORCPT ); Mon, 29 Mar 2021 04:25:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F783619AE; Mon, 29 Mar 2021 08:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006312; bh=ur5QoLtOwu6/H7SFtp2hAiwQK1B7phpLPDJ6jcafkIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E7gSxKEBgNtAnGXsJY6nREDEcRPCAVLzHGeHK3WTkKZAlsVdemfpEkXr4em/vtqDz a3NVyY03RMiJXkI8t35n20BmsrllzmeKBj9GWBbY4u/Uj8x4ag9nLXmeY8I6vGhZSU Og4e3PAvoSJ88ohg/ZdzcUcWzQfh5nP/A+XofpfQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Potnuri Bharat Teja , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.10 178/221] RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server Date: Mon, 29 Mar 2021 09:58:29 +0200 Message-Id: <20210329075635.089834647@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@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: Potnuri Bharat Teja [ Upstream commit 3408be145a5d6418ff955fe5badde652be90e700 ] Not setting the ipv6 bit while destroying ipv6 listening servers may result in potential fatal adapter errors due to lookup engine memory hash errors. Therefore always set ipv6 field while destroying ipv6 listening servers. Fixes: 830662f6f032 ("RDMA/cxgb4: Add support for active and passive open connection with IPv6 address") Link: https://lore.kernel.org/r/20210324190453.8171-1-bharat@chelsio.com Signed-off-by: Potnuri Bharat Teja Reviewed-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/cxgb4/cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 8769e7aa097f..81903749d241 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -3610,13 +3610,13 @@ int c4iw_destroy_listen(struct iw_cm_id *cm_id) ep->com.local_addr.ss_family == AF_INET) { err = cxgb4_remove_server_filter( ep->com.dev->rdev.lldi.ports[0], ep->stid, - ep->com.dev->rdev.lldi.rxq_ids[0], 0); + ep->com.dev->rdev.lldi.rxq_ids[0], false); } else { struct sockaddr_in6 *sin6; c4iw_init_wr_wait(ep->com.wr_waitp); err = cxgb4_remove_server( ep->com.dev->rdev.lldi.ports[0], ep->stid, - ep->com.dev->rdev.lldi.rxq_ids[0], 0); + ep->com.dev->rdev.lldi.rxq_ids[0], true); if (err) goto done; err = c4iw_wait_for_reply(&ep->com.dev->rdev, ep->com.wr_waitp, -- 2.30.1