From: Razvan Stefanescu <razvan.stefane...@nxp.com>

Document each ETHSW_VLAN flag with the appropriate comment.

Signed-off-by: Razvan Stefanescu <razvan.stefane...@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.cior...@nxp.com>
---
 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 c487836..3ea8a0a 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

Reply via email to