swconfig: revert the portmapping patches, they seem to cause a segfault
[openwrt/openwrt.git] / target / linux / generic / files / include / linux / switch.h
index a381fd006c4417eab3a86acac5578e220b1fbc20..dda4820a7a4bb85896b48162d2993b5b9a254cbb 100644 (file)
@@ -105,6 +105,7 @@ struct switch_dev_ops {
 };
 
 struct switch_dev {
+       struct device_node *of_node;
        const struct switch_dev_ops *ops;
        /* will be automatically filled */
        char devname[IFNAMSIZ];
@@ -125,6 +126,7 @@ struct switch_dev {
 
        struct mutex sw_mutex;
        struct switch_port *portbuf;
+       struct switch_portmap *portmap;
        struct switch_port_link linkbuf;
 
        char buf[128];
@@ -139,6 +141,11 @@ struct switch_port {
        u32 flags;
 };
 
+struct switch_portmap {
+       u32 virt;
+       const char *s;
+};
+
 struct switch_val {
        const struct switch_attr *attr;
        int port_vlan;