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=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 82053C54FC9 for ; Tue, 21 Apr 2020 16:02:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5CDA62068F for ; Tue, 21 Apr 2020 16:02:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20150623.gappssmtp.com header.i=@resnulli-us.20150623.gappssmtp.com header.b="fa6bftIt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726124AbgDUQCc (ORCPT ); Tue, 21 Apr 2020 12:02:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725870AbgDUQCb (ORCPT ); Tue, 21 Apr 2020 12:02:31 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7BC6C061A10 for ; Tue, 21 Apr 2020 09:02:30 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id i10so17028678wrv.10 for ; Tue, 21 Apr 2020 09:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ye/SmwElLwM30oPz5wYhXP29ThHh4Zq79pAOX5B7shk=; b=fa6bftItDO5LWCl1lBELjz2ahU79ilbe11/KVvNYjdY6Eo8imcM7RF/9gMwoO1bOHx 6ndmu+Kfuxjg+tvLGgWjxL87R7ciqGIux6sbihBr08Sg69uLZlIEU+7V7NSpNtMN96Nj /SNyfM07U0mgb/RiZ50esRfNwf1Z95HuOK6pdLPeMZZD3g0e/ntIDEG3c15F6RFsOxiJ zkP1/K3BPnnhp3A3dkd23ZOOVRD9mYYf+UNa5kA9PfZGzazKJjTVtt+xpp/KJ2QSXp9t 5fQ2hVyln5U7RvLzmc6xY4zbQoUHVlvmD5KbK1BpFfpbbF678zj4/fuuopX9WAqR/5PD FlkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ye/SmwElLwM30oPz5wYhXP29ThHh4Zq79pAOX5B7shk=; b=DlY65u1s4PZOdr2CCyfDDt/Mhed5+y2vXaWPIq9ZQ/wFaC0DjdmacGqm6Q6AdnjeL/ z5YnfgSzIzMZ949g1xrggy85KPsPo/K+VG6H1i4sfkc4qA1mYiEEJk/bZRDe2rCJPKmG tsAh4MKCyaH6cLslnz0jvjncO/IJ0MGHhyf9DaJf09hdmIEE16mr3TLXBFjKF+pamogH QIkYpUTwnpfu99kSRj89XUbCkKvTNJIiPftjdXzWinV7nondXhPFkrCgO4spz+Z47th5 kVpDo9In9P2rqJF175IycWRdWCT6/ws6+ZSxEkXC0Yf4N5LCmXB0vm5HzXBszTlSUse+ DSfQ== X-Gm-Message-State: AGi0PubeP/fIo9njj67+ZV1p/EITBT0AgRkLZdAa1W91UwhZc7r68sJU Xlv1b9khh/pPG5HsYE58by49cw== X-Google-Smtp-Source: APiQypK+crp30ycYZdIpo/J9zfjwOREnnhrm2+qdXs/8OC1g2sMHjRWB5siPT7J/wz6FqNKYoXI4gA== X-Received: by 2002:a05:6000:114c:: with SMTP id d12mr9428752wrx.381.1587484949682; Tue, 21 Apr 2020 09:02:29 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id n2sm4784159wrq.74.2020.04.21.09.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 09:02:28 -0700 (PDT) Date: Tue, 21 Apr 2020 18:02:27 +0200 From: Jiri Pirko To: Maor Gottlieb Cc: davem@davemloft.net, jgg@mellanox.com, dledford@redhat.com, j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, kuba@kernel.org, jiri@mellanox.com, dsahern@kernel.org, leonro@mellanox.com, saeedm@mellanox.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, alexr@mellanox.com Subject: Re: [PATCH V3 mlx5-next 04/15] bonding/alb: Add helper functions to get the xmit slave Message-ID: <20200421160227.GC6581@nanopsycho.orion> References: <20200421102844.23640-1-maorg@mellanox.com> <20200421102844.23640-5-maorg@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200421102844.23640-5-maorg@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Tue, Apr 21, 2020 at 12:28:33PM CEST, maorg@mellanox.com wrote: >Add two helper functions to get the xmit slave of bond in alb or tlb >mode. Extract the logic of find the xmit slave from the xmit flow >to function. Xmit flow will xmit through this slave and in the >following patches the new .ndo will call to the helper function >to return the xmit slave. > >Signed-off-by: Maor Gottlieb Reviewed-by: Jiri Pirko