Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp505459ybx; Wed, 30 Oct 2019 19:10:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0/Js/msVlhFQywnvdZ0LgxX4annaHC88/VFKS14yXbh6q/mEFngn2sxKC8+TqBKX4p3ga X-Received: by 2002:a17:907:20e7:: with SMTP id rh7mr1389729ejb.150.1572487856140; Wed, 30 Oct 2019 19:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572487856; cv=none; d=google.com; s=arc-20160816; b=lGM+lyUZa2FG0s8YsvYOxJPcanSrY7G9zEyFrE4ONrJDL7rge04g/E+5jqhtB7WKYq g1wrXOT28b1PGuJr5duz1eQrnYMsweYqE+NUqZVJq+aL12KLs0U1GE1ukvxZ8vK7L54Z 3SChsvozAbPdb3upMPmeqzgClPAhhh+uVFM4sZJvOoUIkT3rGJONC/uWdoYdqGZt5RSz D8IyaH+OHBxXN2Z/Y8y6AFaz4HV6EoxywxNvhniqErd7a1ivWMZB9E2sFR0WNGx/S7nr 7QWbUMJbV9BVzIM1bwpyfFl5obsN7yK62o3GML1VpgsOJ5JJlOdwCYTe3AxGbjz4PYlR uc0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MCaeEL/78MnjFFwuHJ0AYNxPqsK2pIIoZSumh2mRdY8=; b=NE2Zo9xvLf9Cx8yIz5M3UR53i5N4ppyh9Vcm7yO4Ve1lbRElNWkNSc3eO9pAYJV3zs WENpcm8cB81Bvam8CApJcupdceXXLDyBUSSA4P6L//tKhun1yZB2b41cCJozoTgr8Nv8 uyxJiRcxFWixfo+B2OVAk8kFS89I6QGjVPqHs0BHFKecbBSgPjUgBNgwTB6bvdZUxnju 84WUSrobIswOzi1IO1JzteyxQa3GmDr3963mdOlymT3pu0YK/ZbWWM5kFaAtnbUs9tgB valXRj38z51R1+NXbHaixwUffdBQ38JG6cvUEHEjMJdpY8Y6tVHJBv9hA00/tS2EmW0j 1qlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pzQcnJ/X"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g31si3195488edg.206.2019.10.30.19.10.33; Wed, 30 Oct 2019 19:10:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pzQcnJ/X"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726900AbfJaCJr (ORCPT + 99 others); Wed, 30 Oct 2019 22:09:47 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:47004 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbfJaCJp (ORCPT ); Wed, 30 Oct 2019 22:09:45 -0400 Received: by mail-qk1-f194.google.com with SMTP id e66so5188058qkf.13; Wed, 30 Oct 2019 19:09:44 -0700 (PDT) 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=MCaeEL/78MnjFFwuHJ0AYNxPqsK2pIIoZSumh2mRdY8=; b=pzQcnJ/Xh2T0A3D9AJizp8dc8rBAwm9kBW/jWELzn7TQ+ijlpc7rJIVDGV8iGTyCM6 DDgGzI8++Pdmbl15KcLpciH+dQznaIfhAqy2G1BEbE/PawE0PT128x2XLrIB+M+0Ce4O sPetXiQ33gWMgFQ5PW59KMxtSCF9uk+3i2lAHLvxB4hDAEbpZWPB5Gvue2LgZAJUedsq z9WB0M3G2Sowi2ylAvlgRyhRRGvXFWfhvHGP8hJeudKCqxiJeh0OoUFjPafuwPP0wz2J QLQ+BgbP2b8yRCM4J5ZP9d58sMfFqOkxjyS3C/vQT8hZEA0v+o09pvFb+MWWxehs8nEY YV/A== 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=MCaeEL/78MnjFFwuHJ0AYNxPqsK2pIIoZSumh2mRdY8=; b=unhL2sW27EhPCreDcY3irYqj0IEhtMPhtKVakoaJ8GKqyOZibEcWTUJ0pmRteN69be bzFlCFBgxYHP6E6cyXjpk2prrVE2lSWjFaL7QN98AgSoZ5iafq2AsSUVWVIuBdVT8YF8 7s1O1LU9/mPZ7F6AJSEcJYadI5D1cGUyIcEgeXFucz55gFSVpHXOEWfFA0DnnRSvnXPO 63pDXxjrdHi82snMqiODkY9k6w+aYhmfGmzXcaz33v7pZcPEA6s0zvyOOxrnHLSzW7GZ taPoIqWNQh8HOdslnHMRKO9t4qfL+82h58YBUfOAK967591gCeUq9Cjy/a5PME85+b5Y ZiEw== X-Gm-Message-State: APjAAAUtxb+8EbUIjIcm7uHqzb45TfjkXZAgAAIl65o/j95jEo1Luz7i T/wuXaYGNs6QpTXoKwiYW3iecOJ9 X-Received: by 2002:a37:4dd1:: with SMTP id a200mr3051041qkb.419.1572487783999; Wed, 30 Oct 2019 19:09:43 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id c17sm305597qkg.135.2019.10.30.19.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 19:09:43 -0700 (PDT) From: Vivien Didelot To: "David S. Miller" Cc: linux-kernel@vger.kernel.org, Vivien Didelot , Florian Fainelli , Andrew Lunn , netdev@vger.kernel.org Subject: [PATCH net-next v2 7/7] net: dsa: tag_8021q: clarify index limitation Date: Wed, 30 Oct 2019 22:09:19 -0400 Message-Id: <20191031020919.139872-8-vivien.didelot@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191031020919.139872-1-vivien.didelot@gmail.com> References: <20191031020919.139872-1-vivien.didelot@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that there's no restriction from the DSA core side regarding the switch IDs and port numbers, only tag_8021q which is currently reserving 3 bits for the switch ID and 4 bits for the port number, has limitation for these values. Update their descriptions to reflect that. Signed-off-by: Vivien Didelot --- net/dsa/tag_8021q.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/dsa/tag_8021q.c b/net/dsa/tag_8021q.c index bf91fc55fc44..bc5cb91bf052 100644 --- a/net/dsa/tag_8021q.c +++ b/net/dsa/tag_8021q.c @@ -31,15 +31,14 @@ * Must be transmitted as zero and ignored on receive. * * SWITCH_ID - VID[8:6]: - * Index of switch within DSA tree. Must be between 0 and - * DSA_MAX_SWITCHES - 1. + * Index of switch within DSA tree. Must be between 0 and 7. * * RSV - VID[5:4]: * To be used for further expansion of PORT or for other purposes. * Must be transmitted as zero and ignored on receive. * * PORT - VID[3:0]: - * Index of switch port. Must be between 0 and DSA_MAX_PORTS - 1. + * Index of switch port. Must be between 0 and 15. */ #define DSA_8021Q_DIR_SHIFT 10 -- 2.23.0