From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7908C433DB for ; Sun, 21 Mar 2021 13:08:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6EF461929 for ; Sun, 21 Mar 2021 13:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbhCUNH0 (ORCPT ); Sun, 21 Mar 2021 09:07:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:38948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbhCUNHG (ORCPT ); Sun, 21 Mar 2021 09:07:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EC54261929; Sun, 21 Mar 2021 13:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616332025; bh=kz67jfuLiKSRfd7GT/AahoV+H8VsZVPqyuSyHJd3AB4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l901/mOjz3Z+jZhEsWwaqjEbiujTWSz/4CDBhZt6d9Ryo986ky09VjuynHL+YrlV7 VSd78nc2Yl6dJF6jbL8arncWE4zOoNoSJurwmtK+DlUT4B5x/Nsn/j9YgxgVav4Gh3 zBkSrw6oA7L71GG4ar8D12ucLJ4e9JzQ6CqfRFSu0TvKVNWZLUXEPhNjhl03xyUvtL 6+eiBAYRRdo4JH19x/gtQPMQ3QqtHwxRJAIjWTB9zKSgsQng1N2tQ+ssIPsvbg2FBo AR/0o2jtJiTnuA+77bZu6voorlsYspv7DEpXHen4An+3Pxv+umZ17/erQuicVenBRI 9PiqD7o6cvtaQ== Date: Sun, 21 Mar 2021 15:07:00 +0200 From: Leon Romanovsky To: Jack Wang Cc: Doug Ledford , Jason Gunthorpe , Jinpu Wang , linux-rdma@vger.kernel.org Subject: Re: IPoIB child interfaces not working with mlx5 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Sat, Mar 20, 2021 at 02:09:50PM +0100, Jack Wang wrote: > Leon Romanovsky 于2021年3月20日 周六12:17写道: > > > On Fri, Mar 19, 2021 at 08:44:29AM +0100, Jinpu Wang wrote: > > > Hi Jason and Leon, > > > > > > We recently switch to use upstream OFED from MLNX-OFED, and we notice > > > IPoIB stop working with upstream kernel 5.4.102 with mellanox CX-5 > > > HCA, it's working fine on CX-2/CX-3. I tested also on 5.11 kernel it > > > behaves the same. > > > > Are you using "enhanced IPoIB" for CX-5 devices? MLX5_CORE_IPOIB? > > > > Thanks > > Yes. > Is this expected behavor? Yes, we wanted to make IPoIB behave like any other netdev interfaces and if parent interface isn't enabled, no traffic should pass. More on that, in our internal implementation of enhanced IPoIB, we are reusing same resources for both parent and child, this requires us to wait for "UP" event before allowing traffic. Thanks > > > > >