swconfig: revert the portmapping patches, they seem to cause a segfault
Revert "kernel/swconfig: remove obsolete portmapping feature from swconfig" This reverts commit675407baa4. Revert "swconfig: remove obsolete portmapping feature" This reverts commitfca1eb349e. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -39,6 +39,7 @@ enum {
|
||||
SWITCH_ATTR_NAME,
|
||||
SWITCH_ATTR_VLANS,
|
||||
SWITCH_ATTR_PORTS,
|
||||
SWITCH_ATTR_PORTMAP,
|
||||
SWITCH_ATTR_CPU_PORT,
|
||||
/* attributes */
|
||||
SWITCH_ATTR_OP_ID,
|
||||
@@ -56,6 +57,14 @@ enum {
|
||||
SWITCH_ATTR_MAX
|
||||
};
|
||||
|
||||
enum {
|
||||
/* port map */
|
||||
SWITCH_PORTMAP_PORTS,
|
||||
SWITCH_PORTMAP_SEGMENT,
|
||||
SWITCH_PORTMAP_VIRT,
|
||||
SWITCH_PORTMAP_MAX
|
||||
};
|
||||
|
||||
/* commands */
|
||||
enum {
|
||||
SWITCH_CMD_UNSPEC,
|
||||
|
||||
Reference in New Issue
Block a user