Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3550273rwb; Mon, 3 Oct 2022 17:23:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NWwtbhbXLfghT6Yk8t5VLY74OQOwVfooGcpWmpuTLwLHGuafOt6GR/o2a94uyJYBv9r40 X-Received: by 2002:a17:902:b115:b0:17a:d42:a0e8 with SMTP id q21-20020a170902b11500b0017a0d42a0e8mr24813389plr.75.1664843022252; Mon, 03 Oct 2022 17:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664843022; cv=none; d=google.com; s=arc-20160816; b=KFCRGcd78popFuSCkEp6Pj4ibJmxDqq1PAHU6jhfwfgGHyL3Wnjzc1jQTgBMfKLb1I bULWJ5moOdaOLkBJrK9/xWezDwUY5DFy9YzcqLzuBni1Y3wbwV1+qZclHLvPDZCcAbrK 7Tds8RDtNE1RJpZslFWZc/WoeAZG/hgWuJBBheC8T1hdnbNsdRcPlrYBLE8dGCKd5y9B 1wacE4GVZYuBIGMYACQkknvo7SnBrCZ0+MyAFizpLQdOV5VzFryYZNWSgxHC6/BWvBSM wDpjKFES08KzhV+pPiJENqyP6Lqq0tW/f1WeT1sLpQzJusjOFmf6MQGlghyqPemMJPZK /fzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=DM9gkSKKb8UHctPavkKh9d4DtvTG7D6IhOkgdAnQjmQ=; b=Xlzpiq3CVflxYBO3Jh4nr+MV8mjBUAlDlTjQnhJZyxwzWoApv4s+BFetKkaHU3Mpso AIpPUtAJI0lR8Wkg6lwgoifs0WvjjPJv9EY4c1RMufgr8Qj4+Q/bLLANtL/g+PoCi2bK rsZZ2hoamcZgE9dNrXyDqv/7w5JK1ZjCqTQx03K7Ac70/MAIN6cQGKQffX5feKzXOXVq MZuqejylxh5BLrNPtVw8DA+vMxFOSf9jiFCqGkZCHdF1z7sMXwhZkuz/m8tWPfDyVwNr GZLrRptqO9Jf+6pT8GTjvSj70BK/XV26bkPJMy5M0qcDbpJuoThx7LelkRUBefRAdUW7 xrFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K1W5m0Wd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a63cd13000000b0043560d14c72si10635835pgg.105.2022.10.03.17.23.30; Mon, 03 Oct 2022 17:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K1W5m0Wd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiJCXe6 (ORCPT + 99 others); Mon, 3 Oct 2022 19:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiJCXez (ORCPT ); Mon, 3 Oct 2022 19:34:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 822DE1B9ED; Mon, 3 Oct 2022 16:34:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0E0C661202; Mon, 3 Oct 2022 23:34:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCA23C433C1; Mon, 3 Oct 2022 23:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664840092; bh=DM9gkSKKb8UHctPavkKh9d4DtvTG7D6IhOkgdAnQjmQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=K1W5m0WdFXAF7UPCmXehc+jkBtL/EZf36Ki50wZM4Q8086Dzp65pruvZFVd1tuxn8 v3Ld4VGnHcT0NiTGDNuceo1CuUY7wzNCygCTwBDZVd6luh/pVFYnKvSpFqgDhyasrz AY81lexkAC7+irLyAA/CPpqcnCs7GG/i7AS0avOONfVxYvjoJNqqpcCxWku8A+QESc frYTP8YQaEV3YnWZm+Nrkr3+9iZdnnTiVjSzeciG84QV3G/cFdBty4DtNu5HvHCDMm 9XDfeOph0wFAYUfYfX0mkdboavR1pYbp/Kl5QysylWEiGidgNTFFXrQ5MHXqugdJ2X Zz2PaGWRd/QiA== Date: Mon, 3 Oct 2022 16:34:50 -0700 From: Jakub Kicinski To: Cc: , , , , , , , , , , , , , , , , Subject: Re: [PATCH net-next v2 1/6] net: dcb: add new pcp selector to app object Message-ID: <20221003163450.7e6cbf3a@kernel.org> In-Reply-To: References: <20220929185207.2183473-1-daniel.machon@microchip.com> <20220929185207.2183473-2-daniel.machon@microchip.com> <87leq1uiyc.fsf@nvidia.com> <20220930175452.1937dadd@kernel.org> <87pmf9xrrd.fsf@nvidia.com> <20221003092522.6aaa6d55@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 Oct 2022 21:59:49 +0000 Daniel.Machon@microchip.com wrote: > If lldpad was idd able to emit the new pcp app entries, they would be idd? > emitted as invalid TLV's (assuming 255 or 24 selector value), because the > selector would be either zero or seven, which is currently not used for > any selector by the std. We then have time to patch lldpad to do whatever > with the new attr. Wouldn't this be acceptable? I'm not sure I can provide sensible advice given I don't really know how the information flow looks in case of DCB. First off - we're talking about netlink TLVs not LLDP / DCB wire message TLVs? What I was saying is that if lldpad dumps the information from the kernel and gets confused by certain TLVs - we can add an opt-in attribute to whatever Netlink request lldpad uses, and only add the new attrs if that opt-in attribute is present. Normal GET or DUMP requests can both take input attributes. Old lldpad will not send this attribute to the kernel - the kernel will not respond with confusing attrs. The new lldpad can be patched to send the attribute and will get all the attrs (if it actually cares).