Skip to content
Snippets Groups Projects
Commit e9f5db2d authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

userspace/wrsw_hal: don't bring up wr interfaces in HAL


Delay bring up of wr interfaces to be able to configure VLANs first.
Otherwise some network traffic can be passed befre VLANs are configured corectly.

Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent f21300b0
No related merge requests found
......@@ -86,14 +86,6 @@ static int hal_port_check_presence(const char *if_name, unsigned char *mac)
return 1;
}
static void hal_port_enable(int port, int enable)
{
char str[50];
snprintf(str, sizeof(str), "/sbin/ifconfig wr%d %s", port,
enable ? "up" : "down");
system(str);
}
/* Port initialization, from dot-config values */
static int hal_port_init(int index)
{
......@@ -142,7 +134,7 @@ static int hal_port_init(int index)
p->t4_phase_transition = DEFAULT_T4_PHASE_TRANS;
p->clock_period = REF_CLOCK_PERIOD_PS;
hal_port_enable(p->hw_index, 1);
/* enabling of ports is done by startup script */
{
static struct roletab { char *name; int value; } *rp, rt[] = {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment