summaryrefslogtreecommitdiff
path: root/tor2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tor2.c')
-rw-r--r--tor2.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tor2.c b/tor2.c
index 4e10b12..ef2cf05 100644
--- a/tor2.c
+++ b/tor2.c
@@ -202,11 +202,7 @@ static int tor2_spanconfig(struct zt_span *span, struct zt_lineconfig *lc)
if (debug)
printk("Tor2: Configuring span %d\n", span->spanno);
- /* XXX We assume lineconfig is okay and shouldn't XXX */
- span->lineconfig = lc->lineconfig;
- span->lbo = lc->lbo;
- span->txlevel = lc->lbo;
- span->rxlevel = 0;
+
span->syncsrc = p->tor->syncsrc;
/* remove this span number from the current sync sources, if there */
@@ -225,6 +221,7 @@ static int tor2_spanconfig(struct zt_span *span, struct zt_lineconfig *lc)
/* If we're already running, then go ahead and apply the changes */
if (span->flags & ZT_FLAG_RUNNING)
return tor2_startup(span);
+
return 0;
}