From 675407baa44a8700de20b6b2857009a552a807ba Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 12 Aug 2016 14:51:59 +0200 Subject: kernel/swconfig: remove obsolete portmapping feature from swconfig Signed-off-by: John Crispin --- target/linux/generic/files/include/linux/switch.h | 7 ------- target/linux/generic/files/include/uapi/linux/switch.h | 9 --------- 2 files changed, 16 deletions(-) (limited to 'target/linux/generic/files/include') diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h index dda4820a7a..a381fd006c 100644 --- a/target/linux/generic/files/include/linux/switch.h +++ b/target/linux/generic/files/include/linux/switch.h @@ -105,7 +105,6 @@ 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]; @@ -126,7 +125,6 @@ struct switch_dev { struct mutex sw_mutex; struct switch_port *portbuf; - struct switch_portmap *portmap; struct switch_port_link linkbuf; char buf[128]; @@ -141,11 +139,6 @@ struct switch_port { u32 flags; }; -struct switch_portmap { - u32 virt; - const char *s; -}; - struct switch_val { const struct switch_attr *attr; int port_vlan; diff --git a/target/linux/generic/files/include/uapi/linux/switch.h b/target/linux/generic/files/include/uapi/linux/switch.h index ea449653fa..2a67da2e9d 100644 --- a/target/linux/generic/files/include/uapi/linux/switch.h +++ b/target/linux/generic/files/include/uapi/linux/switch.h @@ -39,7 +39,6 @@ enum { SWITCH_ATTR_NAME, SWITCH_ATTR_VLANS, SWITCH_ATTR_PORTS, - SWITCH_ATTR_PORTMAP, SWITCH_ATTR_CPU_PORT, /* attributes */ SWITCH_ATTR_OP_ID, @@ -57,14 +56,6 @@ enum { SWITCH_ATTR_MAX }; -enum { - /* port map */ - SWITCH_PORTMAP_PORTS, - SWITCH_PORTMAP_SEGMENT, - SWITCH_PORTMAP_VIRT, - SWITCH_PORTMAP_MAX -}; - /* commands */ enum { SWITCH_CMD_UNSPEC, -- cgit v1.2.3