Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3457301ybi; Fri, 5 Jul 2019 07:40:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvXug1kubNuaPTxOpIirPkd8ZDkC6AYNsbzMJCv6fwK4PhmZC6dbt2sCmpzYmf9a+HHiMU X-Received: by 2002:a17:902:b586:: with SMTP id a6mr3792270pls.165.1562337638904; Fri, 05 Jul 2019 07:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562337638; cv=none; d=google.com; s=arc-20160816; b=d6ZQtRMkzZgjYRkW7MECp5cAE/KYMPLJXm3tDcRer58eOYiTFK6tzpn5kXKTfxmJZR kotN2MQY9W8j8gko8mws0gj3g44+FV089G8fKYo0Kn+E6uTTf85yGMrkdM1f6Id3IxhU p7VJTkMK0mwvZ7COS2zIdIVuZE/jc+k2+SjoUkNPzhf/4YItCTL9IL8Lg048R930n6rz +Y5TltcyKBM4N5L7UzkpNHLjFNlMkzSy0YkMHQGc0UgUhkC+DdYCGFuNeFBFiFo7CmpS rrwq7JL9DEsO9M9Ma3ZeDiC3x7GlxBAXwyqdH1GVZ4rQYZrS1Iv0FwwOSPIHqUVp1Am+ xUYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=dStx1E1/ibuyCerAMu8p07CsSNmlfRmUIxmKnJpaWsc=; b=Xy4Q04VEB0Czum/Gx24VyBHAQEZjBATbIba+/IfM07a+fLGbtJ9ppqAbY+UrQJDHNY l11K9NMwiQ92nL+xh4SPWqyBEx723Kd3CeNCy0gm49bbVbpHsoIz3cNNosGrqSYW2ciF bzLg7WNyM1Z41dL2kjxKfgBTX7sOnBYYToKzIcctKGZXMDdTgjtdjevqVQaGkNNdy1u3 S/EqgmQeaaP0M8MIYDZ5GaSAKzMeqntfmNwKRT3Il/AcwHpIOh3MNEJb9BRi3Fh8eX56 D4dnvMMJz2FTNrI0by9rmr7wtjIg1v3ym36b+OntiqTLAIwdqWJMWCtR0u4rEBxmHYJH 62OA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si3916958pfg.260.2019.07.05.07.40.22; Fri, 05 Jul 2019 07:40:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727383AbfGEO1a (ORCPT + 99 others); Fri, 5 Jul 2019 10:27:30 -0400 Received: from inva020.nxp.com ([92.121.34.13]:36128 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbfGEO1V (ORCPT ); Fri, 5 Jul 2019 10:27:21 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C56611A07CE; Fri, 5 Jul 2019 16:27:19 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B92EA1A07CD; Fri, 5 Jul 2019 16:27:19 +0200 (CEST) Received: from fsr-ub1464-137.ea.freescale.net (fsr-ub1464-137.ea.freescale.net [10.171.82.114]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 78BAC204D6; Fri, 5 Jul 2019 16:27:19 +0200 (CEST) From: Ioana Ciornei To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: ruxandra.radulescu@nxp.com, Razvan Stefanescu , Ioana Ciornei Subject: [PATCH v2 6/6] staging: fsl-dpaa2/ethsw: Add comments to ETHSW_VLAN flags Date: Fri, 5 Jul 2019 17:27:16 +0300 Message-Id: <1562336836-17119-7-git-send-email-ioana.ciornei@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1562336836-17119-1-git-send-email-ioana.ciornei@nxp.com> References: <1562336836-17119-1-git-send-email-ioana.ciornei@nxp.com> Reply-to: ioana.ciornei@nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Razvan Stefanescu Document each ETHSW_VLAN flag with the appropriate comment. Signed-off-by: Razvan Stefanescu Signed-off-by: Ioana Ciornei --- Changes in v2: - none drivers/staging/fsl-dpaa2/ethsw/ethsw.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.h b/drivers/staging/fsl-dpaa2/ethsw/ethsw.h index c48783680a05..3ea8a0ad8c10 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.h +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.h @@ -23,9 +23,13 @@ /* Number of IRQs supported */ #define DPSW_IRQ_NUM 2 +/* Port is member of VLAN */ #define ETHSW_VLAN_MEMBER 1 +/* VLAN to be treated as untagged on egress */ #define ETHSW_VLAN_UNTAGGED 2 +/* Untagged frames will be assigned to this VLAN */ #define ETHSW_VLAN_PVID 4 +/* VLAN configured on the switch */ #define ETHSW_VLAN_GLOBAL 8 /* Maximum Frame Length supported by HW (currently 10k) */ -- 1.9.1