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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D897C4321E for ; Mon, 5 Dec 2022 10:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2tQs6Kg6u0tf3j8yRCWlt3z1idQbIjK3Fr8wQD2U77I=; b=0cMwlwLd8rs4fX 9W+7WUcH4LunKZG5KjYqLZvj3IAXYtRS8i0WVG3FLd8m7nNeGq3CGmFT0K8P+GHlZNghMKRpZaggW Dd4Ufr4YFzoTS8P+7gW91LgBQkwY06Vm9SOwbmB+LYZP8W4no450RKYTnLV2TBohmU1ICJ1w4U4di JRXTFivf2rwRBJgMCp0vQ6zOIc3Jv8JKyuYEORF0iD89EZQhdoWdQ0EEfvEPwEdj9vLGhD0tqPu0Y 99ESjxC9GXRbE2w2p2IMCdh8IL+W+OjpGEqVeMwua2FAR3tzrwGrh89plpjtMCGMxHlEz2+cAzo4/ lUlMO1A+nYS6RloV0ArQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p28li-000i2E-Fs; Mon, 05 Dec 2022 10:32:15 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p28ld-000hyn-QZ for linux-arm-kernel@lists.infradead.org; Mon, 05 Dec 2022 10:32:12 +0000 Received: by mail-ed1-x533.google.com with SMTP id l11so15143576edb.4 for ; Mon, 05 Dec 2022 02:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5fpoZJPaIxa+iAwbcp/aUZH0HPeDz4PPni1VjWgLtZs=; b=tG60iLLOTJzz/wdBJOABaJkp41N7vWZuGWo3OfpG0y4mIn7iLlr5LFlGFQ4LRWN9de fDT6GRKZ4OX820ZQpxodCU4W02sEr/McVZbEDygubp1Ui5LNvYQTkGeNdzlpDYNu0maG Fk7M4xL8VDo29lS8R8rFx54ErIwc+FUFW8zzxaTWdtoXrKYXWi4kpKbJpezqJtc+dgK6 nJys8tdoOw/0x8XvDw+VRnMtOE/yHDAesRrniTEMims89aIfmN6G1iDUBfylhlFn/9Pu fItBBy4HYjnpo2aFww0sDxbgDL5vWXHHEspLoq0vKky7e7PJo1RR0tBqyjtc9tl398Hm F84g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5fpoZJPaIxa+iAwbcp/aUZH0HPeDz4PPni1VjWgLtZs=; b=bvAFuJhQuF86DkUlDPE4kOd77S5srh4YXkCElNspTVB4KYWaR3vrruESlqr1Eu8gBG 7nNyifdyY/pDoufJm78pWKwaOpvamoFsqDNdH+N8stXMDQSwFWfliflafCjCtgeAbimA zfMJ+3qJXoeDAszTimA47bHIFmBAt3NsLLrv0zpj3l1GlVJRSYi6yy4Mo17Ubw8/uURz 2YaaDSL6X4j3I1L24/PwLD49ie5O+Te9E38sCbVeTwFTsLkkANVLtojqHoMzScJFVdfw g+63GZXJTJq5c1HpZQy7D3tE1Qwlq0eSD5N0TehXQbYzft4rtGkGN72z8BjTka8+/9II 88Ww== X-Gm-Message-State: ANoB5pmGod65cyUqg+7Gl65uP1HCE8ntjtXZaJpzAhVzA5aoVZMpHF92 xxYdElIfUiMzqRBe6LV7SxBUcA== X-Google-Smtp-Source: AA0mqf6uqbOB5OxqzEMjwdQ0h5HDWCr4Cs7UQe0Ido3SB9WNJ7dIV7UGBAws/2Jm7WwGS9+B1EuQZA== X-Received: by 2002:aa7:c502:0:b0:46c:6bdc:40fd with SMTP id o2-20020aa7c502000000b0046c6bdc40fdmr7258470edq.74.1670236325970; Mon, 05 Dec 2022 02:32:05 -0800 (PST) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id l2-20020a056402124200b004615f7495e0sm6109204edw.8.2022.12.05.02.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 02:32:05 -0800 (PST) Date: Mon, 5 Dec 2022 11:32:04 +0100 From: Jiri Pirko To: Jakub Kicinski Cc: "Kubalewski, Arkadiusz" , Vadim Fedorenko , Jonathan Lemon , Paolo Abeni , "netdev@vger.kernel.org" , Vadim Fedorenko , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, "Olech, Milena" , "Michalik, Michal" Subject: Re: [RFC PATCH v4 2/4] dpll: Add DPLL framework base functions Message-ID: References: <20221129213724.10119-1-vfedorenko@novek.ru> <20221129213724.10119-3-vfedorenko@novek.ru> <20221202212206.3619bd5f@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221202212206.3619bd5f@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221205_023209_894994_F9974BBD X-CRM114-Status: GOOD ( 14.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Sat, Dec 03, 2022 at 06:22:06AM CET, kuba@kernel.org wrote: >On Fri, 2 Dec 2022 17:15:23 +0100 Jiri Pirko wrote: >> >OK, I now see your point what is the confusion. >> >Thanks for explanation. >> >But I am still not sure how to make it this way in Linux, if interface added to >> >netns uses original netdev ifindex, and driver after reload receives new >> >(previously unused ifindex) what would be the steps/commands to make it as you >> >described? >> >> As I said, I don't see a way to have the ifindex exposed throught dpll >> at all. > >We can quite easily only report ifindexes in the same namespace >as the socket, right? Sure, hmm, thinkign about it more, this would be probably a good start. > >> I believe we should do it only the other way around. Assign >> dpll_pin pointer to struct net_device and expose this over new attr >> IFLA_DPLL_PIN over RT netlink. > >The ID table is global, what's the relationship between DPLLs >and net namespaces? We tie DPLLs to a devlink instance which >has a namespace? We pretend namespaces don't exist? :S Well, if would be odd to put dpll itself into a namespace. It might not have anything to do with networking, for example in case of ptp_ocp. What would mean for a dpll to be in a net namespace? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel