From patchwork Wed Jan 6 23:17:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12002489 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF888C433E9 for ; Wed, 6 Jan 2021 23:19:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95AB922D6F for ; Wed, 6 Jan 2021 23:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbhAFXTR (ORCPT ); Wed, 6 Jan 2021 18:19:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbhAFXTL (ORCPT ); Wed, 6 Jan 2021 18:19:11 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0F5CC06135A for ; Wed, 6 Jan 2021 15:18:02 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id p22so5894236edu.11 for ; Wed, 06 Jan 2021 15:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y4su5mRJeL7lcVdGeCkPLkZrBkKn3R8c9JM0amouMgI=; b=ZbTvy4Kti5LPSpUCLvxw2hoSy19aDWxANKc2wJetlptsxHeosbidQws7WaoI40QCQG 71CO24+Go2/rNCo3mwme9COaDkZiGEHLXTg8rhQ+8+sWD04b33FXzXtuIp4IDowq3AlT 5ALXjLyQ6FQnInowxw6jsnSra+eZqo8uGQT7jIVvsvUv/pn9p7L2gtQhkHJfstuRD9Fx NtPpaU54QGbRYSNvldlyK9iEqPLWo1McF4zxlQzujWN7PC69Q6l0kwzUE/536WnpKv0n b8aHzWUYGIpl3ozX8xCyDo//b+dHEIkC5Cf6smmD+eJZUDyriKHYGjhXyFute4XIaEPO eNSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y4su5mRJeL7lcVdGeCkPLkZrBkKn3R8c9JM0amouMgI=; b=YDTiguT5zHQL03W8sm215xd9egkzsVNZx50dNAjc4laVjVjlLEQj9iVJUKjGpWK13f DBovUepdAoJxpmBFgTpB+/5DDJcKGdvWxorO9EYepCGKHxO6gVSFNhuERLxPqyqn71F9 DD/SuHcjUmSu6kO6FbmkfQNANMR3RYG4fGNmHfhm2ymLmKPqyYtcjyrayrBidv3lHPCo kbgrnqnsMotx3frd6qkZ77KG54ZRSVGnZjWhdpvLfPKghxmfOHUk3RTx+6ASWH84tkIE vkrCHM+ggZVKnoh/0XAk7liHVHJ7hkSIG14/iiM9tDPFAPMHQxdJntSniP7dseMxsURf PcmA== X-Gm-Message-State: AOAM532mYeUBwZaQJ2Is/HLK3BqwpigOttnbXZmxViRmEUCyT45WABBY ucAv5jw3PRjf0dd2gB0H5Z8= X-Google-Smtp-Source: ABdhPJxty743CmbAS73U2FlE40Vd7quB5PjtwrrSV9t/t7NjNcPCAp2S5AcKyfkrN/CJ8AyqpPr2cg== X-Received: by 2002:a05:6402:1a2f:: with SMTP id be15mr5558544edb.209.1609975081647; Wed, 06 Jan 2021 15:18:01 -0800 (PST) Received: from localhost.localdomain (5-12-227-87.residential.rdsnet.ro. [5.12.227.87]) by smtp.gmail.com with ESMTPSA id a6sm1958263edv.74.2021.01.06.15.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 15:18:01 -0800 (PST) From: Vladimir Oltean To: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , Microchip Linux Driver Support , Sean Wang , Landen Chao , Claudiu Manoil , Alexandre Belloni , Linus Walleij , Vadym Kochan , Taras Chornyi , Jiri Pirko , Ido Schimmel , Grygorii Strashko , Ioana Ciornei , Ivan Vecera Subject: [PATCH v3 net-next 09/11] net: dsa: remove obsolete comments about switchdev transactions Date: Thu, 7 Jan 2021 01:17:26 +0200 Message-Id: <20210106231728.1363126-10-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210106231728.1363126-1-olteanv@gmail.com> References: <20210106231728.1363126-1-olteanv@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Vladimir Oltean Now that all port object notifiers were converted to be non-transactional, we can remove the comments that say otherwise. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Acked-by: Linus Walleij Acked-by: Jiri Pirko --- Changes in v3: None. Changes in v2: None. net/dsa/slave.c | 5 ----- net/dsa/switch.c | 4 ---- 2 files changed, 9 deletions(-) diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 4f0aae1192e5..963607547ab3 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -373,11 +373,6 @@ static int dsa_slave_port_obj_add(struct net_device *dev, struct dsa_port *dp = dsa_slave_to_port(dev); int err; - /* For the prepare phase, ensure the full set of changes is feasable in - * one go in order to signal a failure properly. If an operation is not - * supported, return -EOPNOTSUPP. - */ - switch (obj->id) { case SWITCHDEV_OBJ_ID_PORT_MDB: if (obj->orig_dev != dev) diff --git a/net/dsa/switch.c b/net/dsa/switch.c index f92eaacb17cf..21d2f842d068 100644 --- a/net/dsa/switch.c +++ b/net/dsa/switch.c @@ -298,10 +298,6 @@ static int dsa_switch_event(struct notifier_block *nb, break; } - /* Non-switchdev operations cannot be rolled back. If a DSA driver - * returns an error during the chained call, switch chips may be in an - * inconsistent state. - */ if (err) dev_dbg(ds->dev, "breaking chain for DSA event %lu (%d)\n", event, err);