Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3568187ybg; Mon, 28 Oct 2019 15:06:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV5xmbIq8OLVNMgqf8IfC3dZunAHoxddd250wd6zigDbmYKWyaUzeydqqcx+gL8EVSDBxy X-Received: by 2002:a17:906:5859:: with SMTP id h25mr147062ejs.2.1572300414830; Mon, 28 Oct 2019 15:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300414; cv=none; d=google.com; s=arc-20160816; b=Bd8r1IDTnDSb6lIaAeqPSUZbOk8h6HWxFqWlZp9e5lLgMh5eCOiFVQX0eZxnbh9gWJ VGOn8nZAkLNJLPEbs8tMpBKW1pLHKZg1a0+gJo0ZAeORImoXJ21EA2bZiZCsqs4Vi7iR 8rGarv22BffaVHrEX/r7BMNRx5UxK9fZJV62u5c2eKUhBKdwMW4AD6x+cAaankM2wMDw H1utOKrMkPvi1kiEGJnClOnWj4HluqrKqvpLdqGjHMFeSU7mFdTUb+2ro4SI4j8AnKIc 29sxW9zbhOac/6NeWZB9LeWugOmWyKrNnWmJJGUgO7QE6kFZYdZLpAofCh22rWyWBhhq X3gg== 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=GIL9jFpIqrtdNRlvpOLFDdkagpqw7AHcpCtGwCiDzHSFmYQLOsiHrWdDnj32yo2HOf adEsXWIlS7dH4YUYS4oY4mCYfop2f2dVjgmZN6wCkWYqFkBj2ZgW+dNLHdC6pzBOsULR ia2MesZSyojU1AbuVOpwSdptpNgevdi6eHgH9VCCe9KpTTWcTu5u2UMZtsuWEw5Np4DB c5J1X/nKf0ZN+0yPSTYiZfCIMYwAxSU+No0b/bfirENY1fmdiXdJ0ab2TqdN/3YIEMKD rslJpBdQ44ai/cfj3zdh4xP5v55SuNLmb7X1Iu2CPuIJbaJFZQUxHeTYMctEJ9LdS4e7 gJsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lzKW9wy/"; 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 d10si8948632edb.226.2019.10.28.15.06.31; Mon, 28 Oct 2019 15:06:54 -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="lzKW9wy/"; 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 S1731862AbfJ1Twm (ORCPT + 99 others); Mon, 28 Oct 2019 15:52:42 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42917 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731823AbfJ1Twk (ORCPT ); Mon, 28 Oct 2019 15:52:40 -0400 Received: by mail-qk1-f196.google.com with SMTP id m4so9688167qke.9; Mon, 28 Oct 2019 12:52:40 -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=lzKW9wy/0/86TWk5tUgNvR0HwypHCx5Ke+7rBcwC1oNlfL3Q1O4E1fpwN8iYn12e0I eXEvn2VLGbx0qEvLAMzuCgwByzc/qQHM3007JnbqP+KybgFqkBvj1tWSTmQim3w1Txo+ 1RbUqYD4PK2qHUVjFysp5ezb6307s8KgAz0WSxQG6Sozh4RovOLkzaxzXMMzmcGXzwSe lqij+vZ/N0UH8cFYqpqiFpEK0CUIRB7+QDmnd/w9/rKD7p9zTZ2xIfMKwvH9ldh7LcoL SonzMRK6ctiXTwBNzFNhge17fDKAodxVvDamAZrSWpHcuMJAJKmXpyN9AXWEYoUKNFa2 PSVg== 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=OIauJzkKE6SYf88xY6obg2fryQP3vGJdIHfY0U+KkuMkQE+DpkiquTkUk84ODfk/bT gEwo0MZWyy7Tx/bP7usKzjDuBU25igSRZbZ4s+jRAyzruJab2GHerF6rwmzChiJhl4VG CHavttCqqiJ2AzY1Fqndm5CBwEmcl3b2jWMxVPgbTP7ILdqiSdj842EIMpaqoJVlxDNt whoHdEqg89QPc3M/HIkIm07brHyDKTwmEzeS0M9FYXiOSNN+xtEl4BRSWSIf/7VuqqWZ 0/QdlI7Scq3uflfhPCP2KdEXnsQAJyRfV2gDuX/T0d+Ksz+JGt41f8mJksKdPwWvz3A+ a+Mw== X-Gm-Message-State: APjAAAVzlalJKUA5be5Z9tB5EzftT30txiv1neygTkMyt6wWD8yODW2K rdGIKyh7rNKQA2340LMR9Zo= X-Received: by 2002:a37:bc86:: with SMTP id m128mr17662959qkf.110.1572292359634; Mon, 28 Oct 2019 12:52:39 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id x9sm3587690qtp.83.2019.10.28.12.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 12:52:39 -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 7/7] net: dsa: tag_8021q: clarify index limitation Date: Mon, 28 Oct 2019 15:52:20 -0400 Message-Id: <20191028195220.2371843-8-vivien.didelot@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191028195220.2371843-1-vivien.didelot@gmail.com> References: <20191028195220.2371843-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