Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2337825pxb; Tue, 12 Oct 2021 04:38:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymOvrTH8A8NO2RHJ3LTzCNpzuaeomoOuL0n8TwmF84hxQMoSOkISlg3I8jlb7sDf/XmQ8w X-Received: by 2002:a17:906:3956:: with SMTP id g22mr32994690eje.572.1634038719763; Tue, 12 Oct 2021 04:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634038719; cv=none; d=google.com; s=arc-20160816; b=oupKKcy4g/NRLdAG7PwIT1QVJOVPI9OvWg8qCe9Jd4DhSQ0i9xbdj9gwj8SCHrkAyo QDY+6cd01wGWCTKydwoW4GuQ3xKJqfVGuGxnKreCWvwc8U4aoGqCj8OBwGZ5L225DYUp fV/5z6ADQFUC7nDwvuhzjDVDKmitw6dstKQzzg2DWyyh5vBv+s26Ohts8AFz+GQTVw2u kjhMETAPKmwSflFeRBKtxCaKPvViTgXhPKSoySIIny6V9mObTyMVe9ISpp3TxEJMEv0R yT3xullg1BPga0ktmhZwh0FxNP4bgwFuLpi+wAZ8WLvcsKTlFshrvUx+Wsp1qRl+FYMn Rw7w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Cv09Uzz4AMtrdLJZ5UZjOHd8Tiq6ImxAlIz05CK9/+E=; b=qbALXheqxg4RUSGr+BvCZ+D7hAxYx/ytXdVmxBDn7lKtHxdnrOhGBpSmZrAyOHvu6C YK8/LlQeGSnwl0FHIxZmON4/e8wpuS6oTgrVlp4I/o0wxjhlr+qhirpwtiS5+Dl7Fobp bUAx2/4DEJu7k54BCKa0kd1vo8/WUt1LivxsgoxNgAAnSWSmayvJwhhuoMlu5nKKSvXo SYhAzDO057R7HC6/xYtk1VSSTAD/KWZZM4jvfsA/0izntpI6Bv+em8bLU6K5UeiQm7zF 4MVEnAP1SFeYob6FzfzhiiRr8WO1SXEtSZM+rnhuK8/v92KQ0j++CB0k2DTjSEWxaXq+ 3W0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j5cuUb7K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si11894710edm.632.2021.10.12.04.38.15; Tue, 12 Oct 2021 04:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j5cuUb7K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236242AbhJLLif (ORCPT + 99 others); Tue, 12 Oct 2021 07:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232665AbhJLLie (ORCPT ); Tue, 12 Oct 2021 07:38:34 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03DE7C061570; Tue, 12 Oct 2021 04:36:33 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id r18so80037570edv.12; Tue, 12 Oct 2021 04:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Cv09Uzz4AMtrdLJZ5UZjOHd8Tiq6ImxAlIz05CK9/+E=; b=j5cuUb7Knk/rorV2lZi5Nfo2fyNSQ/i/uvK0eKwXmLappUMuLpS+WAGlqScNr5RZ7T OIzOcHTxt7DQbrXra+T1c3f+2tJQu4BKTmgnQYYE8D2W1NXQOsDRfu2cZvrNb20khsQ7 qEoDVWYvLXIi97FGu2wqZ03eKHBTeTUfVOhGPt0Bg/6AQIQLGnwmUKp3n+UBUvWwuLBV Y6jTUUj47O5sNtm1Cg6YhDKc8m03S0rkd3KWLT54UnDugjm4BJBKNskHe1aTxEwCDh92 lpDenkFBT4eMVwTp1yVvFioTMj2ELsUOSJTOWtLWFGqA5pczMz35CPTX5ElJCDG3SPi9 3s9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Cv09Uzz4AMtrdLJZ5UZjOHd8Tiq6ImxAlIz05CK9/+E=; b=Pvscit3TOWNTIlJ5L4h1lQiM1kiXzrF1NdQy7zQgT3Sm2Z1qxwhYfSdM9Ckxib02uz MZBPTw67KF3hBX/+Bji4qtNQ6gRVTfT0ClBwsYX6nCLajHXGND8oJ1+piw4nsQcHD4Dp +dDXWDzq1eRVQWt0d+ztWWAJdgIeuQf5XjBeiSIoNwRmPonpAgerZWqEPdMoT+PgCERt y/nK1xSusJOAaoIJxLkRer5oiwDobzJ5/b2HaTpRjTsOIoLS7SNA1QdrfxDeIBuLwjlh IvF1y2GJJTJptUZ3TWprJAZYsRld0gXq59clZ4SgQi2cM65Xl0+1NG+8usC5nGsaBhYT 0Z4w== X-Gm-Message-State: AOAM533eByTaW4wdF0tPGUTPJdlnN1U5RB2QjmlKr8r4ncH+faA786MY 1iRG1zq9uqqtNMOehmEXArA= X-Received: by 2002:a50:9b06:: with SMTP id o6mr50396874edi.284.1634038591578; Tue, 12 Oct 2021 04:36:31 -0700 (PDT) Received: from skbuf ([188.26.53.217]) by smtp.gmail.com with ESMTPSA id l16sm4715224eje.67.2021.10.12.04.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 04:36:31 -0700 (PDT) Date: Tue, 12 Oct 2021 14:36:30 +0300 From: Vladimir Oltean To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Alvin =?utf-8?Q?=C5=A0ipraga?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: dsa: fix spurious error message when unoffloaded port leaves bridge Message-ID: <20211012113630.f4memvtchrgxswti@skbuf> References: <20211012112730.3429157-1-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211012112730.3429157-1-alvin@pqrs.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 01:27:31PM +0200, Alvin Šipraga wrote: > From: Alvin Šipraga > > Flip the sign of a return value check, thereby suppressing the following > spurious error: > > port 2 failed to notify DSA_NOTIFIER_BRIDGE_LEAVE: -EOPNOTSUPP > > ... which is emitted when removing an unoffloaded DSA switch port from a > bridge. > > Fixes: d371b7c92d19 ("net: dsa: Unset vlan_filtering when ports leave the bridge") > Signed-off-by: Alvin Šipraga > --- > net/dsa/switch.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/dsa/switch.c b/net/dsa/switch.c > index 1c797ec8e2c2..6466d0539af9 100644 > --- a/net/dsa/switch.c > +++ b/net/dsa/switch.c > @@ -168,7 +168,7 @@ static int dsa_switch_bridge_leave(struct dsa_switch *ds, > if (extack._msg) > dev_err(ds->dev, "port %d: %s\n", info->port, > extack._msg); > - if (err && err != EOPNOTSUPP) > + if (err && err != -EOPNOTSUPP) > return err; > } > > -- > 2.32.0 > Ouch, good catch. Reviewed-by: Vladimir Oltean