vlandev: support setting ingress/egress QoS mappings
[project/netifd.git] / system.h
index b3774169d4dc5d2cc09c6379c1c4a943680ad287..252fd923dd23a61db83b349bfe12e47b780c9dfc 100644 (file)
--- a/system.h
+++ b/system.h
@@ -21,6 +21,7 @@
 #include "device.h"
 #include "interface-ip.h"
 #include "iprule.h"
+#include "utils.h"
 
 enum tunnel_param {
        TUNNEL_ATTR_TYPE,
@@ -158,9 +159,17 @@ enum vlan_proto {
        VLAN_PROTO_8021AD = 0x88A8
 };
 
+struct vlan_qos_mapping {
+       struct vlist_simple_node node; /* entry in vlandev_config->{e,in}gress_qos_mapping_list */
+       uint32_t from;
+       uint32_t to;
+};
+
 struct vlandev_config {
        enum vlan_proto proto;
        uint16_t vid;
+       struct vlist_simple_tree ingress_qos_mapping_list; /* list of struct vlan_qos_mapping */
+       struct vlist_simple_tree egress_qos_mapping_list;  /* list of struct vlan_qos_mapping */
 };
 
 static inline int system_get_addr_family(unsigned int flags)