Re: [Lagopus-devel] Lagopus Switch Set-up errors with Intel NICs !
Status: Alpha
Brought to you by:
ddnakajima
|
From: Yoshihiro N. <nak...@la...> - 2014-10-08 13:34:12
|
Hi,
Lagopus switch uses same prefix, "ethX" of interface name in
lagopus.conf, but an interface names in lagopus.conf does not refer
a network interface name that are managed by Linux kernel.
I suppose that your linux machine configuration is as follows:
eth0: linux commnication
eth1: lagopus under DPDK #0
eth2: lagopus under DPDK #1
If you want to use eth1 and eth2 for lagopus with DPDK.
Please specify "-p3" for DPDK option.
> step2. sudo lagopus -d -- -c3 -n1 -- -p6
sudo lagopus -d -- -c3 -n1 -- -p3
In case of "-p6" option, Lagopus tries to enable DPDK #1 and DPDK #2
ports, but there is no DPDK #2 port. As a result, Lagopus may exit
as your log.
> ===========================lagopus.conf==================================
> interface {
> ethernet {
> eth1;
> eth2;
> }
> }
> bridge-domains {
> br0 {
> port {
> eth1;
> eth2;
> }
> controller {
> 127.0.0.1;
> }
> }
> }
> ===========================lagopus.conf==================================
Please modify lagopus.conf as follows when two interfaces (eth1 and
eth2 of linux kernel) for Lagopus with DPDK :
===========================lagopus.conf==================================
interface {
ethernet {
eth0;
eth1;
}
}
bridge-domains {
br0 {
port {
eth0;
eth1;
}
controller {
127.0.0.1;
}
}
}
===========================lagopus.conf==================================
These descriptions of lagopus.conf sometimes confuse user, therefore,
we plan to improve way to configure interfaces on Lagopus.
Yoshi
At Mon, 6 Oct 2014 21:22:45 +0530,
அருண் குமார் - Arun Kumar wrote:
>
> [1 <multipart/alternative (7bit)>]
> [1.1 <text/plain; UTF-8 (quoted-printable)>]
>
> [1.2 <text/html; UTF-8 (quoted-printable)>]
> Hi,
>
> I followed your handson.tar.gz(from: http://t.co/7TfGEwmMw5) files for my experiment.
> Compiled lagopus with dpdk-1.7.0 and tried to set-up lagopus vswitch using below configuration.
>
> ===========================lagopus.conf==================================
> interface {
> ethernet {
> eth1;
> eth2;
> }
> }
> bridge-domains {
> br0 {
> port {
> eth1;
> eth2;
> }
> controller {
> 127.0.0.1;
> }
> }
> }
> ===========================lagopus.conf==================================
>
> Here
> eth0 for internet access
> eth1ð2(82540EM Gigabit Ethernet NICs) for switch.
>
> Execution sequence
> step0. install-dpdk.sh
> step1. ryu-manager --verbose simple_switch_13.py
> step2. sudo lagopus -d -- -c3 -n1 -- -p6
>
> But failed to run the switch, and got following erros(from step0-1)
>
> +++++++++++++++++++++++++Errors+++++++++++++++++++++++++++++++
> DMESG: Kernel Log <== Inerting igb_uio.ko &rte_kni.ko modules
>
> [11742.888105] igb_uio: module verification failed: signature and/or required key missing - tainting kernel
> [11742.888469] Use MSIX interrupt by default
> [11742.911315] KNI: ######## DPDK kni module loading ########
> [11742.911368] KNI: loopback disabled
> [11742.911370] KNI: ######## DPDK kni module loaded ########
> [11743.164302] fail to enable pci msix, or not enough msix entries
> [11743.164534] uio device registered with irq 10
> [11743.280291] fail to enable pci msix, or not enough msix entries
> [11743.280504] uio device registered with irq 11
>
> SWITCH Command
>
> sudo lagopus -d -- -c3 -n1 -- -p6
> EAL: Detected lcore 0 as core 0 on socket 0
> EAL: Detected lcore 1 as core 2 on socket 0
> EAL: Detected lcore 2 as core 0 on socket 0
> EAL: Detected lcore 3 as core 2 on socket 0
> EAL: Support maximum 64 logical core(s) by configuration.
> EAL: Detected 4 lcore(s)
> EAL: cannot open VFIO container, error 2 (No such file or directory)
> EAL: VFIO support could not be initialized
> EAL: Setting up memory...
> EAL: Ask a virtual area of 0x1400000 bytes
> EAL: Virtual area found at 0x7f68ede00000 (size = 0x1400000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f68eda00000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f68ed600000 (size = 0x200000)
> EAL: Ask a virtual area of 0xbe00000 bytes
> EAL: Virtual area found at 0x7f68e1600000 (size = 0xbe00000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f68e1200000 (size = 0x200000)
> EAL: Ask a virtual area of 0x12400000 bytes
> EAL: Virtual area found at 0x7f68cec00000 (size = 0x12400000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f68ce800000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f68ce400000 (size = 0x200000)
> EAL: Requesting 256 pages of size 2MB from socket 0
> EAL: TSC frequency is ~3058998 KHz
> EAL: Master core 0 is ready (tid=f3727840)
> EAL: Core 1 is ready (tid=cdbfe700)
> EAL: PCI device 0000:02:00.0 on NUMA socket -1
> EAL: probe driver: 8086:100e rte_em_pmd
> EAL: PCI memory mapped at 0x7f68f36d1000
> EAL: PCI memory mapped at 0x7f68f36b1000
> EAL: PCI device 0000:02:01.0 on NUMA socket -1
> EAL: probe driver: 8086:100e rte_em_pmd
> EAL: PCI memory mapped at 0x7f68f3691000
> EAL: PCI memory mapped at 0x7f68f3671000
> Creating the mbuf pool for socket 0 ...
> Creating ring to connect I/O lcore 1 (socket 0) with worker lcore 1 ...
> Creating ring to connect worker lcore 1 with TX port 1 (through I/O lcore 1) (socket 0) ...
> Creating ring to connect worker lcore 1 with TX port 2 (through I/O lcore 1) (socket 0) ...
> Initializing NIC port 1 ...
> Initializing NIC port 1 RX queue 0 ...
> Initializing NIC port 1 TX queue 0 ...
>
> Checking link status............................Port 1 Link Up - speed 100 Mbps - full-duplex
> Initializing NIC port 2 ...
> PANIC in app_init_nics():
> Cannot init NIC port 2 (Invalid argument)
> 12: [lagopus() [0x404b23]]
> 11: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f68f0857ec5]]
> 10: [lagopus() [0x405a35]]
> 9: [lagopus() [0x4053f9]]
> 8: [/usr/local/lib/liblagopus_util.so.0(lagopus_module_initialize_all+0x76) [0x7f68f154b3c7]]
> 7: [/usr/local/lib/liblagopus_util.so.0(+0x1ee36) [0x7f68f154ae36]]
> 6: [/usr/local/lib/liblagopus_dataplane.so.0(datapath_initialize+0x41) [0x7f68f1cfcea6]]
> 5: [/usr/local/lib/liblagopus_dataplane.so.0(lagopus_datapath_init+0xc6) [0x7f68f1d273f6]]
> 4: [/usr/local/lib/liblagopus_dataplane.so.0(app_init+0x1d) [0x7f68f1d2714f]]
> 3: [/usr/local/lib/liblagopus_dataplane.so.0(app_init_nics+0xe8) [0x7f68f1d3103d]]
> 2: [lagopus(__rte_panic+0xc1) [0x4049b9]]
> 1: [lagopus() [0x4964d8]]
>
> DMESG----Kernel Log
>
> [11863.717415] Bits 55-60 of /proc/PID/pagemap entries are about to stop being page-shift some time soon. See the linux/Documentation/vm/pagemap.txt for details.
>
> +++++++++++++++++++++++++Errors+++++++++++++++++++++++++++++++
>
> FYI. I tested both NICs(eth1, eth2) individually both are working fine.
> The moment i run install-dpdk.sh and sudo lagopus -d -- -c3 -n1 -- -p6, Its end-up with above errors
>
> Let me know if i am doing anything wrong.
>
> Thanks
> Arun
>
> ஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃ
> அன்புடன்
> அருண்
> நுட்பம் நம்மொழியில் தழைக்கச் செய்வோம்
> http://thangamaniarun.wordpress.com
> ஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃஃ
>
>
> [2 <text/plain; us-ascii (7bit)>]
> ------------------------------------------------------------------------------
> Slashdot TV. Videos for Nerds. Stuff that Matters.
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> [3 <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Lagopus-devel mailing list
> Lag...@li...
> https://lists.sourceforge.net/lists/listinfo/lagopus-devel
|