[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1427882882-2533-8-git-send-email-sfeldma@gmail.com>
Date: Wed, 1 Apr 2015 03:07:43 -0700
From: sfeldma@...il.com
To: netdev@...r.kernel.org
Cc: jiri@...nulli.us, roopa@...ulusnetworks.com, linux@...ck-us.net,
f.fainelli@...il.com, sridhar.samudrala@...el.com,
ronen.arad@...el.com
Subject: [PATCH net-next v2 07/26] switchdev: add port vlan obj
From: Scott Feldman <sfeldma@...il.com>
VLAN obj has flags (PVID and untagged) as well as start and end vid ranges.
The swdev driver can optimize programing the device using the ranges.
Signed-off-by: Scott Feldman <sfeldma@...il.com>
---
include/net/switchdev.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index 39665b4..f1fa5fc 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -38,11 +38,19 @@ struct fib_info;
enum swdev_obj_id {
SWDEV_OBJ_UNDEFINED,
+ SWDEV_OBJ_PORT_VLAN,
};
struct swdev_obj {
enum swdev_obj_id id;
u32 flags;
+ union {
+ struct swdev_obj_vlan { /* PORT_VLAN */
+ u16 flags;
+ u16 vid_start;
+ u16 vid_end;
+ } vlan;
+ };
};
/**
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists