mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fixed priomap: do not delay other traffic
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@88 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
0c1e40dfff
commit
84016ec7eb
2 changed files with 5 additions and 4 deletions
|
@ -58,7 +58,7 @@ static void start()
|
|||
|
||||
/* Create priority queuing discipline */
|
||||
tc_reset(i);
|
||||
tc_prio(i, TC_HDL(4000, 0), i->refcnt + 2);
|
||||
tc_prio(i, TC_HDL(4000, 0), i->refcnt);
|
||||
}
|
||||
|
||||
/* Connect and bind nodes to their sockets, set socket options */
|
||||
|
|
7
src/tc.c
7
src/tc.c
|
@ -26,13 +26,14 @@ int tc_prio(struct interface *i, tc_hdl_t handle, int bands)
|
|||
{
|
||||
char cmd[128];
|
||||
int len = 0;
|
||||
int priomap[] = { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 };
|
||||
|
||||
len += snprintf(cmd+len, sizeof(cmd)-len,
|
||||
"tc qdisc add dev %s root handle %u prio bands %u priomap",
|
||||
i->name, TC_HDL_MAJ(handle), bands);
|
||||
i->name, TC_HDL_MAJ(handle), bands + 3);
|
||||
|
||||
for (int i = 0; i < bands; i++)
|
||||
len += snprintf(cmd+len, sizeof(cmd)-len, " 0");
|
||||
for (int i = 0; i < 16; i++)
|
||||
len += snprintf(cmd+len, sizeof(cmd)-len, " %u", priomap[i] + bands);
|
||||
|
||||
debug(6, "system: %s", cmd);
|
||||
return system(cmd);
|
||||
|
|
Loading…
Add table
Reference in a new issue