From patchwork Sun Feb 21 21:33:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 386100 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 66EA9C433DB for ; Sun, 21 Feb 2021 21:35:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3741260295 for ; Sun, 21 Feb 2021 21:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbhBUVfM (ORCPT ); Sun, 21 Feb 2021 16:35:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbhBUVes (ORCPT ); Sun, 21 Feb 2021 16:34:48 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1A72C06178A for ; Sun, 21 Feb 2021 13:34:07 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id e13so22856499ejl.8 for ; Sun, 21 Feb 2021 13:34:07 -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=1IpLJbP5ciwR6SMBLis+whJOXKeaI6W/OneiV4n/9jo=; b=SGKVwIom1x2WQ14lWlfc5n7xdraES6n4DpaRzx5GimcrLarAVxQ1Gs1xx25wxec3qK 7Yc0YN6dBMV7Q9p1+hIo5iVAH6S/GwhFmviICmInV2xxCW0sYFSOArrfLP17nyy5n7xf HLK21rPZBcA4wG05wAhFV59RFSSLSswiEggzhHd903w5zZhw/SdoE0ORib4WNtwcve1Q jd3bif7kjdXWN3a9pyNC2bNAL69+Z/Z0jtI5FEoETaSF3mXmT/r1Pvt/JHaP9oF9BxD6 2wqNpF+oqJvhneeTXt50LvfEX31H7iW27kVXbNdwo53s8fY0rFIhdnFQJ2Zq0w/cCPJi 1RlA== 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=1IpLJbP5ciwR6SMBLis+whJOXKeaI6W/OneiV4n/9jo=; b=UtXAk+5ti44kpc1kJz92WJl54zqFIDgGkg5gzDD2QQ3V0yJDWRoXSdLcj7IikxLoPE A/xoEJO2fnsEydEk2PmBhAOB/9VcY/XgaQImVEaAn6+KoOKpy9yBfsxtXAxjOYm1twnO GDaUuOLrByQImbj26UsKkJsVn+UUN3lIY4dOf4xOvDza/6/Lln/zAwsS8N1IMDiN5qei IAK0itdiInMSOBRUYd7TEVqbs0oGOfjt8tL4Z+oRNk0tnq5NxBgaOnj5p9gxb78lffAE 4gHQ99ouQd8pJfvimB9B0cF1483cBSXA4zkQqIDZS3Wk75Gzf3InyM01Yui2qg0/nO04 OBkw== X-Gm-Message-State: AOAM533DWF30bjOKde0Gjp9gl0uoycVqq9JeQHlxn0K0Gtv+op5+SvCe 7rlCwjtPe56nYhI5wHXsTH8plVmZuSQ= X-Google-Smtp-Source: ABdhPJxAmGTt7X0z4rC7Gw+BBYPZV5u6FGPPfsMKUYsfw5HSk7z1OlzOuDds9f4HIeZwOWsoOIDw5w== X-Received: by 2002:a17:906:ad3:: with SMTP id z19mr16436817ejf.350.1613943246441; Sun, 21 Feb 2021 13:34:06 -0800 (PST) Received: from localhost.localdomain ([188.25.217.13]) by smtp.gmail.com with ESMTPSA id rh22sm8948779ejb.105.2021.02.21.13.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 13:34:06 -0800 (PST) From: Vladimir Oltean To: netdev@vger.kernel.org Cc: Andrew Lunn , Florian Fainelli , Vivien Didelot , Jiri Pirko , Ido Schimmel , DENG Qingfang , Tobias Waldekranz , George McCollister , Horatiu Vultur , Kurt Kanzenbach Subject: [RFC PATCH net-next 01/12] Documentation: networking: update the graphical representation Date: Sun, 21 Feb 2021 23:33:44 +0200 Message-Id: <20210221213355.1241450-2-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210221213355.1241450-1-olteanv@gmail.com> References: <20210221213355.1241450-1-olteanv@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Vladimir Oltean While preparing some slides for a customer presentation, I found the existing high-level view to be a bit confusing, so I modified it a little bit. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Tobias Waldekranz --- Documentation/networking/dsa/dsa.rst | 45 +++++++++++++++++----------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/Documentation/networking/dsa/dsa.rst b/Documentation/networking/dsa/dsa.rst index e9517af5fe02..e20fbad2241a 100644 --- a/Documentation/networking/dsa/dsa.rst +++ b/Documentation/networking/dsa/dsa.rst @@ -172,23 +172,34 @@ Graphical representation Summarized, this is basically how DSA looks like from a network device perspective:: - - |--------------------------- - | CPU network device (eth0)| - ---------------------------- - | | - |--------------------------------------------| - | Switch driver | - |--------------------------------------------| - || || || - |-------| |-------| |-------| - | sw0p0 | | sw0p1 | | sw0p2 | - |-------| |-------| |-------| - - + Unaware application + opens and binds socket + | ^ + | | + +-----------v--|--------------------+ + |+------+ +------+ +------+ +------+| + || swp0 | | swp1 | | swp2 | | swp3 || + |+------+-+------+-+------+-+------+| + | DSA switch driver | + +-----------------------------------+ + | ^ + Tag added by | | Tag consumed by + switch driver | | switch driver + v | + +-----------------------------------+ + | Unmodified host interface driver | Software + --------+-----------------------------------+------------ + | Host interface (eth0) | Hardware + +-----------------------------------+ + | ^ + Tag consumed by | | Tag added by + switch hardware | | switch hardware + v | + +-----------------------------------+ + | Switch | + |+------+ +------+ +------+ +------+| + || swp0 | | swp1 | | swp2 | | swp3 || + ++------+-+------+-+------+-+------++ Slave MDIO bus --------------