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.0 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 5D0FDC433ED for ; Tue, 20 Apr 2021 11:29:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24DF6613AB for ; Tue, 20 Apr 2021 11:29:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbhDTL37 (ORCPT ); Tue, 20 Apr 2021 07:29:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:53740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbhDTL3z (ORCPT ); Tue, 20 Apr 2021 07:29:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BC91361354; Tue, 20 Apr 2021 11:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618918164; bh=bWaQBvj9ziDXvzR9IBmXsCFCg4SVu2/7BkCp1xTmhC8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uP5ls1Tseb2gr+E18m6Yd2gYtLJUl2IWH2qFDQZP0MOhACYjD+Ym8KRwKNQJd5fbv WNXDylX1s0eF2iZrtuR4xPm3CUaFQMv6vRA/OBsYI2CdqRgRoan+s+Ld4mfrk25NHx SrsW34T4cIGPxISwCW7B3GXA1ejO4ppoxTgrFIOfdGLTRPpHpUPs89ohPIbesXGgKy g+txmRPh0VWvkFhI7XN0XufDpjSF4zzQp8EAbAW/leslCtNCUcKbixAmF7qXXZ//qV TCQ8rzX+uwhkPZ81T5t3T3rQ57UT7i4UFYslYPV8dzDvnOG0gSYGjWmKcVdYQYjJ1n 39kzQeEbc4GaQ== Date: Tue, 20 Apr 2021 14:29:20 +0300 From: Leon Romanovsky To: Jinpu Wang Cc: Jinpu Wang , Jack Wang , Doug Ledford , Jason Gunthorpe , 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 Tue, Apr 20, 2021 at 11:14:41AM +0200, Jinpu Wang wrote: > On Mon, Mar 22, 2021 at 7:56 AM Leon Romanovsky wrote: > > > > On Mon, Mar 22, 2021 at 07:08:01AM +0100, Jinpu Wang wrote: > > > On Sun, Mar 21, 2021 at 2:07 PM Leon Romanovsky wrote: > > > > > > > > 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 > > > Hi Leon, > > > > > > Thanks for the clarification, is this behavior documented somewhere? > > > is it specific to "enhanced IPoIB" for CX-5? > > > > It is specific to "enhanced IPoIB" and not to device. I don't know where > > we can document it. > > > > > Will it work differently if without MLX5_CORE_IPOIB enabled? > > > > Yes, without MLX5_CORE_IPOIB, the devices will work in "legacy IPoIB", > > exactly as cx-3. The best thing will be to change IPoIB ULP to behave > > like netdev, but we were not comfortable to do it back then due to > > user visible nature of such change. > > > Hi Leon, > > More testing reveals new problems with MLX5_CORE_IPOIB. > w MLX5_CORE_IPOIB, ping wors on both hosts, but iperf3 doens't send any data. In our regression, iperf3 works. Let's take it offline. Thanks