projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6acc0a5
)
Fix test_call1 for systems without default qdisc
author
Brenden Blanco
<bblanco@plumgrid.com>
Mon, 8 Jun 2015 19:06:00 +0000
(12:06 -0700)
committer
Brenden Blanco
<bblanco@plumgrid.com>
Mon, 8 Jun 2015 19:06:35 +0000
(12:06 -0700)
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
tests/cc/test_call1.py
patch
|
blob
|
history
diff --git
a/tests/cc/test_call1.py
b/tests/cc/test_call1.py
index
8fdedd5
..
21bae29
100755
(executable)
--- a/
tests/cc/test_call1.py
+++ b/
tests/cc/test_call1.py
@@
-27,8
+27,9
@@
class TestBPFSocket(TestCase):
eop_fn = b.load_func("eop", BPF.SCHED_CLS)
ip = IPRoute()
ifindex = ip.link_lookup(ifname="eth0")[0]
+ ip.tc("add", "sfq", ifindex, "1:")
ip.tc("add-filter", "bpf", ifindex, ":1", fd=ether_fn.fd,
- name=ether_fn.name, parent="
0
:", action="ok", classid=1)
+ name=ether_fn.name, parent="
1
:", action="ok", classid=1)
self.jump = b.get_table("jump", c_int, c_int)
self.jump.update(c_int(S_ARP), c_int(arp_fn.fd))
self.jump.update(c_int(S_IP), c_int(ip_fn.fd))