From patchwork Sat Jan 9 00:01:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12007799 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.8 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 DBA12C433DB for ; Sat, 9 Jan 2021 00:03:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B115523A9D for ; Sat, 9 Jan 2021 00:03:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726522AbhAIADm (ORCPT ); Fri, 8 Jan 2021 19:03:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbhAIADf (ORCPT ); Fri, 8 Jan 2021 19:03:35 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BEE1C061793 for ; Fri, 8 Jan 2021 16:02:27 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id ga15so16821669ejb.4 for ; Fri, 08 Jan 2021 16:02:27 -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=NPBHPuzaf/+nyn5ga7U5YD4f7nfe2EXeI8cs0L23BX4=; b=Vb8gM8jFFNKaJ7k6OOquPO2Un9dguVyxS+V2v5x88IE/47BM4C4pyAs++dLuBPhC3W AawfWExxS6dj/GahV8XX2011S6xLgIut/IXIzSwRSB2/idjnuyJokGVfo56NUpfVZe4l rbUBqmzqO3vF/TMOSNfX9Mm/5lAG3RUzMjosw3kxafLji5b3iEqiYlpOBW42/F/TmkKJ aM4VX8iWjmFLGDqVVbjE5xcPodk62sbpH/+lhMT9A60iy/7Wj+fkD4hUa8AZp4JNllTx lIbyE1jw6l1HpinePaWpslerI11S3DbFd2vGi7O1XheAIROsyhUZb7l59XiNyIfxf5Yv sTjw== 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=NPBHPuzaf/+nyn5ga7U5YD4f7nfe2EXeI8cs0L23BX4=; b=Ax6u6LZuYM8WyE5J7LDmTYHw/kcLAjUSGUjeKyhvtvc7bV4tm5RODUAB5cD+wN0MGi 6ksfXirD4m1Oq/TiuqkLGhPSuhZ+rX6qye7HmeiHDZhsTcDSaUUK2hzxXiVIrvMP4hnt mC6PM0kLyHVZlQerR98pVa67pk0nDozvX1gREd3XNZX2frooZVESaVyvko8xYQG2u9RR EDPHiCh/loZgt/MywjIVhERKUBiXkXriWm0XpU5JuhTLZCqn2VYpsx+KhOwYXD7ngCm3 Tza/PNHZuV4KT8E0AgeLPomnYezhvYPhrKa32mj0g7hqAHkJOSGRToVze5hzAeVEUJgC Jvpw== X-Gm-Message-State: AOAM533gPQmxPbZbI6RfHyhf2XWUVRqwVK/rOOybzBwhS+a3Ik7bkurp LWFybFnlTNw0BGCp+Bv2xcg= X-Google-Smtp-Source: ABdhPJyJt6Dr4mfyo2ZIHkiTCV+hrmxV0JeZVQsugDa+QY20WQ6Oxl3Ud4qSzR/GnWmq7KNW3Utptw== X-Received: by 2002:a17:906:ec9:: with SMTP id u9mr4319667eji.400.1610150545983; Fri, 08 Jan 2021 16:02:25 -0800 (PST) Received: from localhost.localdomain (5-12-227-87.residential.rdsnet.ro. [5.12.227.87]) by smtp.gmail.com with ESMTPSA id dx7sm4045346ejb.120.2021.01.08.16.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 16:02:25 -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 , Petr Machata Subject: [PATCH v4 net-next 09/11] net: dsa: remove obsolete comments about switchdev transactions Date: Sat, 9 Jan 2021 02:01:54 +0200 Message-Id: <20210109000156.1246735-10-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210109000156.1246735-1-olteanv@gmail.com> References: <20210109000156.1246735-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 v4: None. 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 ca0be052af25..d84ddf889f3a 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);