Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp6962lfv; Tue, 12 Apr 2022 15:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza3YDffe9LcAHmTFAjpPUFPlBNpxRf8SrZqa9lwX+4YGP/XoSUKYCydAbHKIIFyR4XVISp X-Received: by 2002:a17:903:41c5:b0:158:6bde:1d8b with SMTP id u5-20020a17090341c500b001586bde1d8bmr11004564ple.74.1649800983482; Tue, 12 Apr 2022 15:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649800983; cv=none; d=google.com; s=arc-20160816; b=RJbcEPWPqhJa4EUYtDHvvY4JowWpohZKKiUtlxvtBhP9BJr1bkUqzSpr33mhZtdwtD ACjCDYStURnQMYzSBWO8ZjXsIGx3e9uqaYNsCDaeLQtdMh3xHEsfMHL6c5w9vNv3RHs3 Rs8/NNAMHoFMEnBQAezIUszTr8wS3lPjgQysOBKcTRt2g8jwY7g2TLoEp5n5SMxTMPC2 +2EehiKVsH4g5F7p8kNM9OPKvR9m7EiAyfrIEoBnsmjkccw+YoBaS7a9CVemdiS1hepj 6cD/a4Q5AFVaK3/pfQznZucpXPbdqpYG+nYCeZe8goN/3rOf41oqUhkK36qPe6BsSYlb Kk/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=o7oEYqJA/d5IArOhVozPfC14JD5dGf+xmNe6gfeEErQ=; b=eASqthu1go5LftO6udt0Xn2GmTVrP0AoAQX7b0/0Tal6pKgUY2dzHUgI7X65skD084 uRT+9fbKZvej42ceCXSm3SO/exIq0AruecDY9ogGzCu3w35EfOvaz2ahf4ZRm4piSUMS lhrJTBU3I+ykXNmUHVCh4XW/Xd93VjgHWbuBIb7JsbnpXXWfs3zu4wZnwq8D3W2dNRkM Q7ujB/UxhmkSP3Zdm0c7yyHOJdSIOmsKAY5oq/G5mr+VLNtMi0UMY/oVbWnayMB/ZFV0 X5ShqQafdKnIIz2+eKOC3osRoxKBcOoXL40CAfLipkLlOTJmXJ1hsDGM5cT1wPhhDgvO +X6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lk3-20020a17090b33c300b001cb7ebf92d6si9678007pjb.116.2022.04.12.15.03.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70AD715DA91; Tue, 12 Apr 2022 13:55:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241798AbiDLPNJ (ORCPT + 99 others); Tue, 12 Apr 2022 11:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356854AbiDLPNG (ORCPT ); Tue, 12 Apr 2022 11:13:06 -0400 X-Greylist: delayed 547 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 12 Apr 2022 08:10:46 PDT Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC7EE5D664; Tue, 12 Apr 2022 08:10:46 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id 84A41B00220; Tue, 12 Apr 2022 17:01:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 82CD5B001DF; Tue, 12 Apr 2022 17:01:36 +0200 (CEST) Date: Tue, 12 Apr 2022 17:01:36 +0200 (CEST) From: Christoph Lameter To: Jason Gunthorpe cc: Leon Romanovsky , Mark Zhang , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, syzbot+8fcbb77276d43cc8b693@syzkaller.appspotmail.com Subject: Re: [PATCH rdma-rc] RDMA/cma: Limit join multicast to UD QP type only In-Reply-To: <20220412141134.GI2120790@nvidia.com> Message-ID: References: <4132fdbc9fbba5dca834c84ae383d7fe6a917760.1649083917.git.leonro@nvidia.com> <20220408182440.GA3647277@nvidia.com> <20220412141134.GI2120790@nvidia.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Apr 2022, Jason Gunthorpe wrote: > The only places setting non-default qkeys are SIDR, maybe nobody uses > SIDR with multicast. IP port numbers provided are ignored by the RDMA subsytem when doing multicast joins. Thus no need to do SIDRs with RDMA multicast. Some middleware solutions (like LLM by IBM and Confinity) are creating their own custom MGID because of this problem. The custom MGID will then contain the port number. On the subject of this patch: There is a usecase for Multicast with IBV_QPT_RAW_PACKET too. A multicast join is required to redirect traffic for a multicast group to the raw socket.