staging: fsl-dpaa2/ethsw: Add comments to ETHSW_VLAN flags
authorRazvan Stefanescu <razvan.stefanescu@nxp.com>
Fri, 5 Jul 2019 14:27:16 +0000 (17:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:13 +0000 (07:34 +0200)
Document each ETHSW_VLAN flag with the appropriate comment.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/1562336836-17119-7-git-send-email-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.h

index c487836..3ea8a0a 100644 (file)
 /* 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) */