[PATCH 2/2] vlan: add MVRP VLAN flag

Jiří Klimeš jklimes at redhat.com
Thu Sep 3 05:23:53 PDT 2015


Kernel patch:   http://patchwork.ozlabs.org/patch/219040/
iproute2 patch: http://patchwork.ozlabs.org/patch/219364/

Signed-off-by: Jiří Klimeš <jklimes at redhat.com>
---
 include/linux-private/linux/if_vlan.h | 1 +
 lib/route/link/vlan.c                 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/linux-private/linux/if_vlan.h b/include/linux-private/linux/if_vlan.h
index 67affd1..bae71c5 100644
--- a/include/linux-private/linux/if_vlan.h
+++ b/include/linux-private/linux/if_vlan.h
@@ -33,6 +33,7 @@ enum vlan_flags {
 	VLAN_FLAG_REORDER_HDR	= 0x1,
 	VLAN_FLAG_GVRP		= 0x2,
 	VLAN_FLAG_LOOSE_BINDING	= 0x4,
+	VLAN_FLAG_MVRP		= 0x8,
 };
 
 enum vlan_name_types {
diff --git a/lib/route/link/vlan.c b/lib/route/link/vlan.c
index d815f65..d266b7e 100644
--- a/lib/route/link/vlan.c
+++ b/lib/route/link/vlan.c
@@ -612,6 +612,7 @@ static const struct trans_tbl vlan_flags[] = {
 	__ADD(VLAN_FLAG_REORDER_HDR, reorder_hdr),
 	__ADD(VLAN_FLAG_GVRP, gvrp),
 	__ADD(VLAN_FLAG_LOOSE_BINDING, loose_binding),
+	__ADD(VLAN_FLAG_MVRP, mvrp),
 };
 
 /**
-- 
2.1.0




More information about the libnl mailing list