Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp966841rwb; Wed, 26 Jul 2023 05:51:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlEX0SDiqvVrFdH7glR0QB0h/Q0cIS/413nnOz00VpQLp0TGPbgrgWxCTpNeFA5B6cqBwLH2 X-Received: by 2002:a17:907:7617:b0:99b:ce19:ec1c with SMTP id jx23-20020a170907761700b0099bce19ec1cmr611774ejc.73.1690375904320; Wed, 26 Jul 2023 05:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690375904; cv=none; d=google.com; s=arc-20160816; b=XnAPbN4pqh8wvUdzt7GCY78V9s52IgKGgNe5hfjfTxqSLDhJ0AfaJlwMEbH/ZPOmdT 4XbOER/zcivdcJM6IBlCUlO68/22LJgegHd+EID598KCzY00Zysik9TU7D3sjXvRIOV6 q9fpJUWyo+zQSG6zkvC0AfligGD8Q5OdMYK5wA9mZ0tO/UV+R5wj64Q5mmXlo7VVYJBN 4LZ1SGiOVSAgsHJtMtvizL5dcjD3l4CBd9WXiEd23GfSrO8xZ1oHThbPOq/t332U1EMi fyUs4nNi0EFLJux5o00aIEfwn7bBbaoLAMzyfvGU8+35hWJVCCE58ZFxXeODm7bLU8Z3 jB8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o/ynjO23HFdCrYklHUN+6zq8DWOUsElQ5pQJdXR+FlI=; fh=TwC6sG0F9eBULFHOSXpQBVgADZnomj32y8ZD3/csH3I=; b=ONSFcXY8KyE5EOgAYQoN835nPbG6pbY39z1TGYH4KCYIfAYzlFSj2YNC3B0QXj7q83 4cR6P09OnDoV1lZIwtlgnPl+0FOHxmTHiqx6HgHpKboiCkO0kUfV8oAZZT9QV4Gy/lvg ID7Q+gz5rY7WPQKl/tbmu8JTnwc5PwtModLR+zSI3vH8NLO1l8tGZK3N06ktYFYI7M5e V99tAHc4Ff8OHuca7++y7uUudGobIoJTNe09tXMEXbWkmsTgdQIjSQbZwZ8DPSLx5ALc +MIutITQd8WYuxj75ZayV2fPIdW/x24pTQZKWm1ekJBXdPjiL5cI9x3zpdaeyz2Z8Nu6 7pTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gRQNOMEa; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy26-20020a170906b7da00b0099bbff8672fsi1146361ejb.696.2023.07.26.05.51.18; Wed, 26 Jul 2023 05:51:44 -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=@gmail.com header.s=20221208 header.b=gRQNOMEa; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233904AbjGZMOr (ORCPT + 99 others); Wed, 26 Jul 2023 08:14:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233911AbjGZMOl (ORCPT ); Wed, 26 Jul 2023 08:14:41 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442C519BF; Wed, 26 Jul 2023 05:14:40 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fbef8ad9bbso68105135e9.0; Wed, 26 Jul 2023 05:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690373679; x=1690978479; 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=o/ynjO23HFdCrYklHUN+6zq8DWOUsElQ5pQJdXR+FlI=; b=gRQNOMEam8G5d6CAh5u/aOAw2L8qg/n/05jy0BEtwiONVwXbBUO9a/K7svGAPPNU/W N/ENYsH/sdaoNTT06xRmQtP+WbvPpEmBGI+4SKS0GWMpLwAnawqbG8ro08RohiGBqQSX RTlQtVWFbjVGSnZUNHseYPQKwB9Qc+TQswhpJWJUWnz307IM52Gw5JQof55M9rxr0/n2 MxS6/ySN9WkJG152EmK/jnoUSOQ0UbSpqSiGM/MPmAKlWoNkbe5v0g4b+FxVvtVwqIbK GMhjNGoA7Gs5gqYIiX0fYojCf+gzd0f50OWXW0EqtvOUwnd+A9Tj46aRbyCYqfdJE6j9 y95w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690373679; x=1690978479; 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=o/ynjO23HFdCrYklHUN+6zq8DWOUsElQ5pQJdXR+FlI=; b=c8HDyNSCVqK9hexnITYVtOyQvWOKbj4f4NhEiAKNxVrdETOQjxynrhfDrp1w3gTV1/ mJnvoLZO3EnUMTMzoMuq6JO2WQGbjA4B5haaM6P3hSaoNjbT0xv4bD1FB2+Z1Z7ZOpW2 Mei3+JzMCjrLaDzds7g4W/TFYgvLKRNeF7K4P1Hr9B5vM9sO4FdbzCKnKvar/iMzKZ1P lDoAk2t6+6i/CFiGEvmasIowOxbbu4uu5mwDwF9YothEPzqJ2ArNnlnO2xR9ls0ppA+G S5zRa+OTjhfltKOpdeE6bosdNWMUGg4t6Fb98vIWQNXXncNTP8lCR3xPJK63FTNpy657 Ci0A== X-Gm-Message-State: ABy/qLYZ3rYtwGD2AQAV7E2ybb77dQVdodNg8kbgHvsilCqLDFDJzSRv i0OqmomBz2/Uu0TImOWRAbA= X-Received: by 2002:a1c:7310:0:b0:3fb:a0fc:1ba1 with SMTP id d16-20020a1c7310000000b003fba0fc1ba1mr1284026wmb.35.1690373678427; Wed, 26 Jul 2023 05:14:38 -0700 (PDT) Received: from skbuf ([188.25.175.105]) by smtp.gmail.com with ESMTPSA id o10-20020a1c750a000000b003fc01189b0dsm1821361wmc.42.2023.07.26.05.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 05:14:38 -0700 (PDT) Date: Wed, 26 Jul 2023 15:14:35 +0300 From: Vladimir Oltean To: Simon Horman Cc: Christian Marangi , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Atin Bainada , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH 2/3] net: dsa: qca8k: make learning configurable and keep off if standalone Message-ID: <20230726121435.stqwc3jzjll222ck@skbuf> References: <20230724033058.16795-1-ansuelsmth@gmail.com> <20230724033058.16795-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Jul 26, 2023 at 10:19:34AM +0200, Simon Horman wrote: > > +int qca8k_port_pre_bridge_flags(struct dsa_switch *ds, int port, > > + struct switchdev_brport_flags flags, > > + struct netlink_ext_ack *extack) > > +{ > > + if (flags.mask & ~BR_LEARNING) > > + return -EINVAL; > > If I am reading things right then some implementation of this callback > return -EINVAL when they see unexpected flags. And some seem not to > - possibly because all flags are expected. > > So I'm slightly unsure if this is correct or not. Which ones don't? All handlers of SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS should return -EINVAL for changes made to bridge port flags that aren't supported.