Rename Ethernet interfaces to match Optimus design
Change-Id: Ice1d8267a9fd9e78b778f8baf1175fb41867b3ae
diff --git a/cmm/src/itf.c b/cmm/src/itf.c
index 1d5ef6c..9df9f76 100644
--- a/cmm/src/itf.c
+++ b/cmm/src/itf.c
@@ -18,9 +18,9 @@
#include "ffbridge.h"
struct gemac_port port_table[GEM_PORTS] = {
- {"eth0", "wan", GEMAC_PORT_TYPE_WAN, 0, GEMAC0_PORT, 1},
- {"eth2", "lan", GEMAC_PORT_TYPE_LAN, 0, GEMAC1_PORT, 1},
- {"eth3", "wan1", GEMAC_PORT_TYPE_WAN, 0, GEMAC2_PORT, 1}
+ {"lan0", "lan0", GEMAC_PORT_TYPE_WAN, 0, GEMAC0_PORT, 1},
+ {"wan0", "wan0", GEMAC_PORT_TYPE_LAN, 0, GEMAC1_PORT, 1},
+ {"moca0", "moca0", GEMAC_PORT_TYPE_LAN, 0, GEMAC2_PORT, 1}
};
struct interface_table itf_table;
diff --git a/cmm/src/module_stat.c b/cmm/src/module_stat.c
index d671bf8..4bdf23d 100644
--- a/cmm/src/module_stat.c
+++ b/cmm/src/module_stat.c
@@ -583,12 +583,12 @@
if (cmd_type == FPP_STAT_UNKNOWN_CMD || cmd_type == FPP_STAT_QUEUE_CMD)
{
cmm_print(DEBUG_STDOUT,
- "Usage: set stat queue {queue_no} interface {wan|lan|eth0|eth2} reset \n");
+ "Usage: set stat queue {queue_no} interface {wan|lan|wan0|lan0} reset \n");
}
if (cmd_type == FPP_STAT_UNKNOWN_CMD || cmd_type == FPP_STAT_INTERFACE_PKT_CMD)
{
cmm_print(DEBUG_STDOUT,
- "Usage: set stat interface {wan|lan|eth0|eth2} reset\n");
+ "Usage: set stat interface {wan|lan|wan0|lan0} reset\n");
}
if (cmd_type == FPP_STAT_UNKNOWN_CMD || cmd_type == FPP_STAT_VLAN_CMD)
{