-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ans configuration. #120
Comments
On whis VM with rte_kni work all fine! |
tcp_http_server run over ans. |
But i can't login to it. What i did wrong? |
What is your problem? |
Cant connect to any dpdk server( tcp, http). And can't inisialize connection to outside. |
I have VM (ESXI 6.7) with 2 vmxnet3 interfaces & 2 virtual cores on 1 socket configuration
ubuntu: 16.04.6 lts
kernel:
Linux dpdk 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
with bind-essenstials updated to today (12 month /01 day /19 year)
all compiled done
libs: Your native march is haswell.
dpdk start ok.
ans start command is:
./ans -l 0 -n 1 --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,0)"
stdout:
EAL: Detected 2 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:0b:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 15ad:7b0 net_vmxnet3
EAL: PCI device 0000:13:00.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 15ad:7b0 net_vmxnet3
Start to Init port
port 0:
port name net_vmxnet3:
max_rx_queues 16: max_tx_queues:8
rx_offload_capa 0x2a1f: tx_offload_capa:0x802f
Creating queues: rx queue number=1 tx queue number=1...
MAC Address:00:0C:29:58:3F:39
Deault-- tx pthresh:0, tx hthresh:0, tx wthresh:0, tx offloads:0x0
lcore id:0, tx queue id:0, socket id:0
Conf-- tx pthresh:0, tx hthresh:0, tx wthresh:0, tx offloads:0x2e
Allocated mbuf pool on socket 0, mbuf number: 32768
Initializing rx queues on lcore 0 ...
Default-- rx pthresh:0, rx hthresh:0, rx wthresh:0, rx offloads:0x0
Conf-- rx pthresh:0, rx hthresh:0, rx wthresh:0, rx offloads:0xf
port id:0, rx queue id: 0, socket id:0
rx core: 1, worker core: 0, sockets number:1, lcore number:1
start to init ans
USER8: LCORE[0] lcore number 1
USER1: rte_ip_frag_table_create: allocated of 25165952 bytes at socket 0
add veth0 device, kni id 0
USER8: LCORE[0] Interface veth0 if_capabilities: 0x802f
add IP a000002 on device veth0
show all IPs:
veth0: mtu 1500
link/ether 00:0c:29:58:3f:39
inet addr: 10.0.0.2/24
add static route
ANS IP routing table
10.0.0.0/24 via dev veth0 src 10.0.0.2
10.10.0.0/24 via 10.0.0.5 dev veth0
Checking link status done
Port 0 Link Up - speed 10000 Mbps - full-duplex
USER8: main loop on lcore 0
USER8: -- lcoreid=0 portid=0 rxqueueid=0
hz: 3192607986
after by anscli i do:
ip addr del 10.0.0.2/24 dev veth0
ip addr add 10.10.10.9/24 dev veth0
ip route del 10.10.0.0/24
ip route add 0.0.0.0/0 via 10.10.10.1
acl add index 100 srcaddr 0.0.0.0/0 dstaddr 0.0.0.0/0 srcportstart 0 srcportend 65535 dstportstart 0 dstportend 65535 protocol 0 iface any accept
bypass add protocol 6 dstport 8089
--- All done ---
after if I write:
port queue show
i recieve - bad argument
But afrter ping 10.10.10.9 from another client (10.10.10.0/24 local network)
i so fromping (:)) ip on ip neigh show list
10.10.10.2 dev veth0 lladdr 52:ed:fb:5d:26:18 REACHABLE
10.10.10.8 dev veth0 lladdr 00:0c:29:58:3f:2f REACHABLE
I tried to run tcp_http_server from example and recive follow stdout:
affinity to 0 core by default
EAL: Detected 2 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_1924_62cefab359c
EAL: Probing VFIO support...
USER8: LCORE[-1] anssock any lcore id 0xffffffff
USER8: LCORE[2] anssock app id: 1924
USER8: LCORE[2] anssock app name: http_server
USER8: LCORE[2] anssock app lcoreId: 2
USER8: LCORE[2] mp ops number 4, mp ops index: 0
open socket on ip:0.0.0.0 port: 8089
It's not working!!!
is it correct ? - > USER8: LCORE[-1] anssock any lcore id 0xffffffff
Help me, what i did wrong ?
And where (on what file) i can configure my ip setting (addr, route, acl , bypass) ?
Thanks
The text was updated successfully, but these errors were encountered: