From: David Ahern Subject: Re: [RFC v4 2/5] l3mdev: add function to retreive upper master Date: Thu, 22 Nov 2018 10:11:52 -0700 Message-ID: <0a2b224c-b4d9-2b91-ade7-5d9e5fa2667e@cumulusnetworks.com> References: <20181122010713.3995-1-abauvin@scaleway.com> <20181122010713.3995-3-abauvin@scaleway.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, akherbouche@scaleway.com To: Alexis Bauvin , roopa@cumulusnetworks.com Return-path: Received: from mail-it1-f196.google.com ([209.85.166.196]:38970 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732541AbeKWDwL (ORCPT ); Thu, 22 Nov 2018 22:52:11 -0500 Received: by mail-it1-f196.google.com with SMTP id m15so14714339itl.4 for ; Thu, 22 Nov 2018 09:11:54 -0800 (PST) In-Reply-To: <20181122010713.3995-3-abauvin@scaleway.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/21/18 6:07 PM, Alexis Bauvin wrote: > Existing functions to retreive the l3mdev of a device did not walk the > master chain to find the upper master. This patch adds a function to > find the l3mdev, even indirect through e.g. a bridge: > > ... > > This will properly resolve the l3mdev of eth0 to vrf-blue. > > Signed-off-by: Alexis Bauvin > Reviewed-by: Amine Kherbouche > Tested-by: Amine Kherbouche > --- > include/net/l3mdev.h | 22 ++++++++++++++++++++++ > net/l3mdev/l3mdev.c | 18 ++++++++++++++++++ > 2 files changed, 40 insertions(+) > Reviewed-by: David Ahern