Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2013 11:10:39 +0330
From:      h bagade <bagadeh@gmail.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Errors on running kipfw with vale switches
Message-ID:  <CAARSjE39dDLMJfEZexZQ=YGHhCNR69vKzPAB6ojYdJSZopysGQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I want to run userland ipfw with netmap support(kipfw). When I try to
follow the example to test kipfw, it encounters an error on following
command:

# connect the firewall to two vale switches
./kipfw valeA:f valeB:f &

command output:
root@zharf-bsd-9:/ipfw-user # ./kipfw valeA:f valeB:f &
[1] 2278

[  10.971878] missing.c:callout_startup [356] start
init_children mod_idx value 9
+++ start module 0 ipfw ipfw at 0x61dc60 order 0x1
+++ start module 1 sy_ipfw SYSINIT at 0x0 order 0x2
ipfw2 initialized, divert loadable, nat loadable, rule-based
forwarding disabled, default to accept, logging disabled

+++ start module 2 sy_Vnet_ipfw SYSINIT at 0x0 order 0x3
[  10.971944] missing.c:callout_init [303] c 0x61e380 mpsafe 8
[  10.971949] missing.c:pfil_head_get [86] called
[  10.971952] missing.c:pfil_add_hook [93] called

+++ start module 3 dummynet dummynet at 0x61dca0 order 0x4
DUMMYNET 0x0 with IPv6 initialized (100409)
[  10.971966] missing.c:taskqueue_create [422] start dummynet fn
0x414ba0 ctx 0x61e400
[  10.971970] missing.c:taskqueue_start_threads [430] tqp 0x61e400
count 1 (dummy)

[  10.971973] missing.c:callout_init [303] c 0x61e4a0 mpsafe 8
+++ start module 4 dn_fifo dn_fifo at 0x61dcf0 order 0x5
[  10.971982] ip_dummynet.c:load_dn_sched [2250] dn_sched FIFO loaded
+++ start module 5 dn_wf2qp dn_wf2qp at 0x61ddd0 order 0x6

[  10.971989] ip_dummynet.c:load_dn_sched [2250] dn_sched WF2Q+ loaded
+++ start module 6 dn_rr dn_rr at 0x61deb0 order 0x7
[  10.971995] ip_dummynet.c:load_dn_sched [2250] dn_sched RR loaded
+++ start module 7 dn_qfq dn_qfq at 0x61df90 order 0x8

[  10.972000] ip_dummynet.c:load_dn_sched [2250] dn_sched QFQ loaded
+++ start module 8 dn_prio dn_prio at 0x61e070 order 0x9
[  10.972005] ip_dummynet.c:load_dn_sched [2250] dn_sched PRIO loaded
*** Global Sysctl Table entries = 39, total size = 2052 ***

[  10.972055] session.c:do_server  [531] +++ listening tcp 127.0.0.1:5555
[  10.972065] netmap_io.c:netmap_add_port [272] opening netmap device valeA:f
netmap_open [131] /dev/netmap opened ok

netmap_open [139] cannot get info on valeA:f, errno 6 ver 3
[  10.972098] netmap_io.c:netmap_add_port [283] error opening valeA:f
[  10.972103] netmap_io.c:netmap_add_port [272] opening netmap device valeB:f
netmap_open [131] /dev/netmap opened ok

netmap_open [139] cannot get info on valeB:f, errno 6 ver 3
[  13.019760] netmap_io.c:netmap_add_port [283] error opening valeB:f
[  13.019779] session.c:do_server  [531] +++ listening tcp 127.0.0.1:5556

[  13.021023] missing.c:callout_run [373] running 0x61e4a0 due at 1 now 2049
[  13.021035] missing.c:callout_run [373] running 0x61e380 due at 1000 now 2049

I am running firewall on FreeBSD 9.2-stable.
It seems that there is some problem with vale but I don't know what it
is! Is it possible that my netmap module doesn't support vale?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAARSjE39dDLMJfEZexZQ=YGHhCNR69vKzPAB6ojYdJSZopysGQ>