* [dpdk-users] Newbie: Help requested to get l2fwd example working
@ 2017-01-13 8:12 David Aldrich
2017-01-13 11:01 ` Marco Kwok
0 siblings, 1 reply; 12+ messages in thread
From: David Aldrich @ 2017-01-13 8:12 UTC (permalink / raw)
To: users
Hi
To get familiar with DPDK, I am running the l2fwd example on a PC running Wind River Linux and fitted with an HP 560SFP+ 2-port NIC. I enable one port for l2fwd and send UDP packets to it from another PC. The problem is that the l2fwd example does not report these packets in its statistics - it reports 0 packets received. I would like some advice on how to debug this please.
Here's some more information:
I have a bash script that initialises the dpdk environment and calls dpdk_nic_bind.py. The output looks ok and is shown at the end of this email.
I run l2fwd as follows:
build/l2fwd -c f -n2 -- -q 1 -p 2
This runs the example on 2 lcores, 1 port (the second one) and 1 rx queue per lcore.
On the sending PC I have added an arp entry for the remote port and, using Wireshark, I can see that the UDP packet is sent with the correct MAC address.
So all seems set up ok, but l2fwd does not see a packet. Please can someone help me with this?
Best regards
David
Output of bash script
=================
# ./leda_dpdk_setup.sh
Using directory: /root/dpdk-2.2.0/x86_64-native-linuxapp-gcc
HugePages_Total: 28
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 1048576 kB
trying to remove old igb_uio module and may get an error message, ignore it trying to remove old rte_kni module and may get an error message, ignore it
Network devices using DPDK-compatible driver ============================================
0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio unused=windrvr1221
0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio unused=windrvr1221
Network devices using kernel driver
===================================
0000:09:00.0 'I210 Gigabit Network Connection' if=eth0 drv=igb unused=windrvr1221,igb_uio
0000:0a:00.0 'I210 Gigabit Network Connection' if=eth1 drv=igb unused=windrvr1221,igb_uio *Active*
Other network devices
=====================
<none>
Command 'lspci | grep Ether' output for reference
04:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
04:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
09:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
0a:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) root@localhost:~#
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-13 8:12 [dpdk-users] Newbie: Help requested to get l2fwd example working David Aldrich
@ 2017-01-13 11:01 ` Marco Kwok
2017-01-13 11:12 ` David Aldrich
0 siblings, 1 reply; 12+ messages in thread
From: Marco Kwok @ 2017-01-13 11:01 UTC (permalink / raw)
To: David Aldrich; +Cc: users
Hello,
I am new here too. I am also playing with this example but my environment
is different from you which is ubuntu 16.04 and dpdk 16.07.2. My example
works fine with the parameters you given above.
Hugepages and drivers is correct. Do you see any EAL: message when starting
the program?
Best,
Mark
2017-01-13 16:12 GMT+08:00 David Aldrich <David.Aldrich@emea.nec.com>:
> Hi
>
> To get familiar with DPDK, I am running the l2fwd example on a PC running
> Wind River Linux and fitted with an HP 560SFP+ 2-port NIC. I enable one
> port for l2fwd and send UDP packets to it from another PC. The problem is
> that the l2fwd example does not report these packets in its statistics - it
> reports 0 packets received. I would like some advice on how to debug this
> please.
>
> Here's some more information:
>
> I have a bash script that initialises the dpdk environment and calls
> dpdk_nic_bind.py. The output looks ok and is shown at the end of this email.
>
> I run l2fwd as follows:
>
> build/l2fwd -c f -n2 -- -q 1 -p 2
>
> This runs the example on 2 lcores, 1 port (the second one) and 1 rx queue
> per lcore.
>
> On the sending PC I have added an arp entry for the remote port and, using
> Wireshark, I can see that the UDP packet is sent with the correct MAC
> address.
>
> So all seems set up ok, but l2fwd does not see a packet. Please can
> someone help me with this?
>
> Best regards
>
> David
>
> Output of bash script
> =================
>
> # ./leda_dpdk_setup.sh
> Using directory: /root/dpdk-2.2.0/x86_64-native-linuxapp-gcc
> HugePages_Total: 28
> HugePages_Free: 0
> HugePages_Rsvd: 0
> HugePages_Surp: 0
> Hugepagesize: 1048576 kB
> trying to remove old igb_uio module and may get an error message, ignore
> it trying to remove old rte_kni module and may get an error message, ignore
> it
>
> Network devices using DPDK-compatible driver ==============================
> ==============
> 0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio
> unused=windrvr1221
> 0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio
> unused=windrvr1221
>
> Network devices using kernel driver
> ===================================
> 0000:09:00.0 'I210 Gigabit Network Connection' if=eth0 drv=igb
> unused=windrvr1221,igb_uio
> 0000:0a:00.0 'I210 Gigabit Network Connection' if=eth1 drv=igb
> unused=windrvr1221,igb_uio *Active*
>
> Other network devices
> =====================
> <none>
>
> Command 'lspci | grep Ether' output for reference
> 04:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+
> Network Connection (rev 01)
> 04:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+
> Network Connection (rev 01)
> 09:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network
> Connection (rev 03)
> 0a:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network
> Connection (rev 03) root@localhost:~#
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-13 11:01 ` Marco Kwok
@ 2017-01-13 11:12 ` David Aldrich
2017-01-13 11:24 ` Marco Kwok
2017-01-15 19:01 ` David Aldrich
0 siblings, 2 replies; 12+ messages in thread
From: David Aldrich @ 2017-01-13 11:12 UTC (permalink / raw)
To: maruko.kwok; +Cc: users
Hi Mark
Thanks for your reply. Below is the entire output.
Best regards
David
-----------------------------------------------
# build/l2fwd -c f -n2 -- -q 2 -p 3
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
EAL: Detected lcore 4 as core 4 on socket 0
EAL: Detected lcore 5 as core 5 on socket 0
EAL: Detected lcore 6 as core 0 on socket 1
EAL: Detected lcore 7 as core 1 on socket 1
EAL: Detected lcore 8 as core 2 on socket 1
EAL: Detected lcore 9 as core 3 on socket 1
EAL: Detected lcore 10 as core 4 on socket 1
EAL: Detected lcore 11 as core 5 on socket 1
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 12 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x340000000 bytes
EAL: Virtual area found at 0x7fee00000000 (size = 0x340000000)
EAL: Ask a virtual area of 0x3c0000000 bytes
EAL: Virtual area found at 0x7fea00000000 (size = 0x3c0000000)
EAL: Requesting 13 pages of size 1024MB from socket 0
EAL: Requesting 15 pages of size 1024MB from socket 1
EAL: TSC frequency is ~2394810 KHz
EAL: Master lcore 0 is ready (tid=cbe4b8c0;cpuset=[0])
EAL: lcore 3 is ready (tid=c9777700;cpuset=[3])
EAL: lcore 2 is ready (tid=c9f78700;cpuset=[2])
EAL: lcore 1 is ready (tid=ca779700;cpuset=[1])
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL: probe driver: 8086:10fb rte_ixgbe_pmd
EAL: PCI memory mapped at 0x7ff140000000
EAL: PCI memory mapped at 0x7ff140100000
PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 1
PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x10fb
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL: probe driver: 8086:10fb rte_ixgbe_pmd
EAL: PCI memory mapped at 0x7ff140104000
EAL: PCI memory mapped at 0x7ff140204000
PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 12, SFP+: 3
PMD: eth_ixgbe_dev_init(): port 1 vendorID=0x8086 deviceID=0x10fb
EAL: PCI device 0000:09:00.0 on NUMA socket 0
EAL: probe driver: 8086:1533 rte_igb_pmd
EAL: Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:0a:00.0 on NUMA socket 0
EAL: probe driver: 8086:1533 rte_igb_pmd
EAL: Not managed by a supported kernel driver, skipped
Lcore 0: RX port 0
Lcore 0: RX port 1
Initializing port 0... PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7ff13e8fed40 sw_sc_ring=0x7ff13e8fe800 hw_ring=0x7ff13e8ff280 dma_addr=0x43e8ff280
PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7ff13e8ec640 hw_ring=0x7ff13e8ee680 dma_addr=0x43e8ee680
PMD: ixgbe_set_tx_function(): Using simple tx code path
PMD: ixgbe_set_tx_function(): Vector tx enabled.
PMD: ixgbe_set_rx_function(): Vector rx enabled, please make sure RX burst size no less than 4 (port=0).
done:
Port 0, MAC address: 38:EA:A7:33:8F:68
Initializing port 1... PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7ff13e8dbc40 sw_sc_ring=0x7ff13e8db700 hw_ring=0x7ff13e8dc180 dma_addr=0x43e8dc180
PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7ff13e8c9540 hw_ring=0x7ff13e8cb580 dma_addr=0x43e8cb580
PMD: ixgbe_set_tx_function(): Using simple tx code path
PMD: ixgbe_set_tx_function(): Vector tx enabled.
PMD: ixgbe_set_rx_function(): Vector rx enabled, please make sure RX burst size no less than 4 (port=1).
done:
Port 1, MAC address: 38:EA:A7:33:8F:69
Checking link status..........................................................................................done
Port 0 Link Down
Port 1 Link Up - speed 10000 Mbps - full-duplex
L2FWD: lcore 1 has nothing to do
L2FWD: lcore 2 has nothing to do
L2FWD: entering main loop on lcore 0
L2FWD: -- lcoreid=0 portid=0
L2FWD: -- lcoreid=0 portid=1?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-13 11:12 ` David Aldrich
@ 2017-01-13 11:24 ` Marco Kwok
2017-01-15 19:01 ` David Aldrich
1 sibling, 0 replies; 12+ messages in thread
From: Marco Kwok @ 2017-01-13 11:24 UTC (permalink / raw)
To: David Aldrich; +Cc: users
Not so sure if it is related to the NIC driver or version? I just saw you
are using dpdk 2.2.
Have you tried to use the uio_pci_generic driver or try the testpmd program
on quick start page(http://dpdk.org/doc/quick-start)?
I am not able to help you much, may be more experienced users could found
some clue.
2017-01-13 19:12 GMT+08:00 David Aldrich <David.Aldrich@emea.nec.com>:
> Hi Mark
>
>
> Thanks for your reply. Below is the entire output.
>
>
> Best regards
>
>
> David
>
>
> -----------------------------------------------
>
>
> # build/l2fwd -c f -n2 -- -q 2 -p 3
> EAL: Detected lcore 0 as core 0 on socket 0
> EAL: Detected lcore 1 as core 1 on socket 0
> EAL: Detected lcore 2 as core 2 on socket 0
> EAL: Detected lcore 3 as core 3 on socket 0
> EAL: Detected lcore 4 as core 4 on socket 0
> EAL: Detected lcore 5 as core 5 on socket 0
> EAL: Detected lcore 6 as core 0 on socket 1
> EAL: Detected lcore 7 as core 1 on socket 1
> EAL: Detected lcore 8 as core 2 on socket 1
> EAL: Detected lcore 9 as core 3 on socket 1
> EAL: Detected lcore 10 as core 4 on socket 1
> EAL: Detected lcore 11 as core 5 on socket 1
> EAL: Support maximum 128 logical core(s) by configuration.
> EAL: Detected 12 lcore(s)
> EAL: VFIO modules not all loaded, skip VFIO support...
> EAL: Setting up physically contiguous memory...
> EAL: Ask a virtual area of 0x340000000 bytes
> EAL: Virtual area found at 0x7fee00000000 (size = 0x340000000)
> EAL: Ask a virtual area of 0x3c0000000 bytes
> EAL: Virtual area found at 0x7fea00000000 (size = 0x3c0000000)
> EAL: Requesting 13 pages of size 1024MB from socket 0
> EAL: Requesting 15 pages of size 1024MB from socket 1
> EAL: TSC frequency is ~2394810 KHz
> EAL: Master lcore 0 is ready (tid=cbe4b8c0;cpuset=[0])
> EAL: lcore 3 is ready (tid=c9777700;cpuset=[3])
> EAL: lcore 2 is ready (tid=c9f78700;cpuset=[2])
> EAL: lcore 1 is ready (tid=ca779700;cpuset=[1])
> EAL: PCI device 0000:04:00.0 on NUMA socket 0
> EAL: probe driver: 8086:10fb rte_ixgbe_pmd
> EAL: PCI memory mapped at 0x7ff140000000
> EAL: PCI memory mapped at 0x7ff140100000
> PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 1
> PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x10fb
> EAL: PCI device 0000:04:00.1 on NUMA socket 0
> EAL: probe driver: 8086:10fb rte_ixgbe_pmd
> EAL: PCI memory mapped at 0x7ff140104000
> EAL: PCI memory mapped at 0x7ff140204000
> PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 12, SFP+: 3
> PMD: eth_ixgbe_dev_init(): port 1 vendorID=0x8086 deviceID=0x10fb
> EAL: PCI device 0000:09:00.0 on NUMA socket 0
> EAL: probe driver: 8086:1533 rte_igb_pmd
> EAL: Not managed by a supported kernel driver, skipped
> EAL: PCI device 0000:0a:00.0 on NUMA socket 0
> EAL: probe driver: 8086:1533 rte_igb_pmd
> EAL: Not managed by a supported kernel driver, skipped
> Lcore 0: RX port 0
> Lcore 0: RX port 1
> Initializing port 0... PMD: ixgbe_dev_rx_queue_setup():
> sw_ring=0x7ff13e8fed40 sw_sc_ring=0x7ff13e8fe800 hw_ring=0x7ff13e8ff280
> dma_addr=0x43e8ff280
> PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7ff13e8ec640
> hw_ring=0x7ff13e8ee680 dma_addr=0x43e8ee680
> PMD: ixgbe_set_tx_function(): Using simple tx code path
> PMD: ixgbe_set_tx_function(): Vector tx enabled.
> PMD: ixgbe_set_rx_function(): Vector rx enabled, please make sure RX burst
> size no less than 4 (port=0).
> done:
> Port 0, MAC address: 38:EA:A7:33:8F:68
>
> Initializing port 1... PMD: ixgbe_dev_rx_queue_setup():
> sw_ring=0x7ff13e8dbc40 sw_sc_ring=0x7ff13e8db700 hw_ring=0x7ff13e8dc180
> dma_addr=0x43e8dc180
> PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7ff13e8c9540
> hw_ring=0x7ff13e8cb580 dma_addr=0x43e8cb580
> PMD: ixgbe_set_tx_function(): Using simple tx code path
> PMD: ixgbe_set_tx_function(): Vector tx enabled.
> PMD: ixgbe_set_rx_function(): Vector rx enabled, please make sure RX burst
> size no less than 4 (port=1).
> done:
> Port 1, MAC address: 38:EA:A7:33:8F:69
>
>
> Checking link status......................................................
> ....................................done
> Port 0 Link Down
> Port 1 Link Up - speed 10000 Mbps - full-duplex
> L2FWD: lcore 1 has nothing to do
> L2FWD: lcore 2 has nothing to do
> L2FWD: entering main loop on lcore 0
> L2FWD: -- lcoreid=0 portid=0
> L2FWD: -- lcoreid=0 portid=1
>
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-13 11:12 ` David Aldrich
2017-01-13 11:24 ` Marco Kwok
@ 2017-01-15 19:01 ` David Aldrich
2017-01-16 3:12 ` zhilong zheng
1 sibling, 1 reply; 12+ messages in thread
From: David Aldrich @ 2017-01-15 19:01 UTC (permalink / raw)
To: users
If anyone can help me with this issue I would be grateful.
David
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-15 19:01 ` David Aldrich
@ 2017-01-16 3:12 ` zhilong zheng
2017-01-16 11:34 ` David Aldrich
0 siblings, 1 reply; 12+ messages in thread
From: zhilong zheng @ 2017-01-16 3:12 UTC (permalink / raw)
To: David Aldrich; +Cc: users
Hi David,
In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “ Port 0 Link Down”. So are there some problems in your port connection? Or you can send packets to Port 1to check statistics.
I am new here too. Hope it can help you.
Best regard
Zhilong
> 在 2017年1月16日,03:01,David Aldrich <David.Aldrich@EMEA.NEC.COM> 写道:
>
> If anyone can help me with this issue I would be grateful.
>
> David
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-16 3:12 ` zhilong zheng
@ 2017-01-16 11:34 ` David Aldrich
2017-01-16 13:37 ` zhilong zheng
0 siblings, 1 reply; 12+ messages in thread
From: David Aldrich @ 2017-01-16 11:34 UTC (permalink / raw)
To: zhilong zheng; +Cc: users
Hi Zhilong
> In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
> Port 0 Link Down”. So are there some problems in your port connection? Or you
> can send packets to Port 1to check statistics.
I am only sending packets to port 1, and these packets are not indicated in the statistics. I need to find out why.
BR
David
> -----Original Message-----
> From: zhilong zheng [mailto:zhengzl0715@gmail.com]
> Sent: 16 January 2017 03:13
> To: David Aldrich <David.Aldrich@EMEA.NEC.COM>
> Cc: users@dpdk.org
> Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
>
> Hi David,
>
> In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
> Port 0 Link Down”. So are there some problems in your port connection? Or you
> can send packets to Port 1to check statistics.
>
> I am new here too. Hope it can help you.
>
> Best regard
>
> Zhilong
>
> > 在 2017年1月16日,03:01,David Aldrich <David.Aldrich@EMEA.NEC.COM>
> 写道:
> >
> > If anyone can help me with this issue I would be grateful.
> >
> > David
> >
> >
>
>
>
> Click
> https://www.mailcontrol.com/sr/IFLl+xFB62DGX2PQPOmvUnFKm77zQC2t5698
> BxDV8BRko9RQvSR0PuAKFjWd14NB0E99NUsTSwWURD1dro2FIg== to report
> this email as spam.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-16 11:34 ` David Aldrich
@ 2017-01-16 13:37 ` zhilong zheng
2017-01-16 13:41 ` David Aldrich
0 siblings, 1 reply; 12+ messages in thread
From: zhilong zheng @ 2017-01-16 13:37 UTC (permalink / raw)
To: David Aldrich; +Cc: users
Hi David,
A similar problem happened to me before. However when I changed another packet sender, it works fine. What’s your packet sender that you sending UDP packets?
Best regards
Zhilong
> 在 2017年1月16日,19:34,David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>> 写道:
>
> Hi Zhilong
>
>> In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
>> Port 0 Link Down”. So are there some problems in your port connection? Or you
>> can send packets to Port 1to check statistics.
>
> I am only sending packets to port 1, and these packets are not indicated in the statistics. I need to find out why.
>
> BR
>
> David
>
>> -----Original Message-----
>> From: zhilong zheng [mailto:zhengzl0715@gmail.com <mailto:zhengzl0715@gmail.com>]
>> Sent: 16 January 2017 03:13
>> To: David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>>
>> Cc: users@dpdk.org <mailto:users@dpdk.org>
>> Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
>>
>> Hi David,
>>
>> In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
>> Port 0 Link Down”. So are there some problems in your port connection? Or you
>> can send packets to Port 1to check statistics.
>>
>> I am new here too. Hope it can help you.
>>
>> Best regard
>>
>> Zhilong
>>
>>> 在 2017年1月16日,03:01,David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>>
>> 写道:
>>>
>>> If anyone can help me with this issue I would be grateful.
>>>
>>> David
>>>
>>>
>>
>>
>>
>> Click
>> https://www.mailcontrol.com/sr/IFLl+xFB62DGX2PQPOmvUnFKm77zQC2t5698 <https://www.mailcontrol.com/sr/IFLl+xFB62DGX2PQPOmvUnFKm77zQC2t5698>
>> BxDV8BRko9RQvSR0PuAKFjWd14NB0E99NUsTSwWURD1dro2FIg== to report
>> this email as spam.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-16 13:37 ` zhilong zheng
@ 2017-01-16 13:41 ` David Aldrich
2017-01-16 13:48 ` zhilong zheng
0 siblings, 1 reply; 12+ messages in thread
From: David Aldrich @ 2017-01-16 13:41 UTC (permalink / raw)
To: zhilong zheng; +Cc: users
Hi Zhilong
I have written a simple program in C, which sends udp packets.
Which sender are you using?
David
From: zhilong zheng [mailto:zhengzl0715@gmail.com]
Sent: 16 January 2017 13:38
To: David Aldrich <David.Aldrich@EMEA.NEC.COM>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
Hi David,
A similar problem happened to me before. However when I changed another packet sender, it works fine. What’s your packet sender that you sending UDP packets?
Best regards
Zhilong
在 2017年1月16日,19:34,David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>> 写道:
Hi Zhilong
In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
Port 0 Link Down”. So are there some problems in your port connection? Or you
can send packets to Port 1to check statistics.
I am only sending packets to port 1, and these packets are not indicated in the statistics. I need to find out why.
BR
David
-----Original Message-----
From: zhilong zheng [mailto:zhengzl0715@gmail.com]
Sent: 16 January 2017 03:13
To: David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>>
Cc: users@dpdk.org<mailto:users@dpdk.org>
Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
Hi David,
In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
Port 0 Link Down”. So are there some problems in your port connection? Or you
can send packets to Port 1to check statistics.
I am new here too. Hope it can help you.
Best regard
Zhilong
在 2017年1月16日,03:01,David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>>
写道:
If anyone can help me with this issue I would be grateful.
David
Click
https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
BxDV8BRko9RQvSR0PuAKFjWd14NB0E99NUsTSwWURD1dro2FIg== to report
this email as spam.
<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-16 13:41 ` David Aldrich
@ 2017-01-16 13:48 ` zhilong zheng
2017-01-16 17:55 ` David Aldrich
0 siblings, 1 reply; 12+ messages in thread
From: zhilong zheng @ 2017-01-16 13:48 UTC (permalink / raw)
To: David Aldrich; +Cc: users
Hi David,
You can try to replace it with “Linux pktgen”(no need of DPDK-driver for NIC) or “DPDK pktgen”(Need DPDK-driver) in your packet sending host. They both work fine for me.
Best regards
Zhilong
> 在 2017年1月16日,21:41,David Aldrich <David.Aldrich@EMEA.NEC.COM> 写道:
>
> Hi Zhilong
>
> I have written a simple program in C, which sends udp packets.
>
> Which sender are you using?
>
> David
>
> From: zhilong zheng [mailto:zhengzl0715@gmail.com <mailto:zhengzl0715@gmail.com>]
> Sent: 16 January 2017 13:38
> To: David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>>
> Cc: users@dpdk.org <mailto:users@dpdk.org>
> Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
>
> Hi David,
>
> A similar problem happened to me before. However when I changed another packet sender, it works fine. What’s your packet sender that you sending UDP packets?
>
> Best regards
>
> Zhilong
>
>
> 在 2017年1月16日,19:34,David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>> 写道:
>
> Hi Zhilong
>
>
> In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
> Port 0 Link Down”. So are there some problems in your port connection? Or you
> can send packets to Port 1to check statistics.
>
> I am only sending packets to port 1, and these packets are not indicated in the statistics. I need to find out why.
>
> BR
>
> David
>
>
> -----Original Message-----
> From: zhilong zheng [mailto:zhengzl0715@gmail.com <mailto:zhengzl0715@gmail.com>]
> Sent: 16 January 2017 03:13
> To: David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>>
> Cc: users@dpdk.org <mailto:users@dpdk.org>
> Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
>
> Hi David,
>
> In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
> Port 0 Link Down”. So are there some problems in your port connection? Or you
> can send packets to Port 1to check statistics.
>
> I am new here too. Hope it can help you.
>
> Best regard
>
> Zhilong
>
>
> 在 2017年1月16日,03:01,David Aldrich <David.Aldrich@EMEA.NEC.COM <mailto:David.Aldrich@emea.nec.com>>
> 写道:
>
>
> If anyone can help me with this issue I would be grateful.
>
> David
>
>
>
>
>
> Click
> https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
> BxDV8BRko9RQvSR0PuAKFjWd14NB0E99NUsTSwWURD1dro2FIg== to report
> this email as spam.
>
> <https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
>
> <https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-16 13:48 ` zhilong zheng
@ 2017-01-16 17:55 ` David Aldrich
2017-01-19 9:05 ` David Aldrich
0 siblings, 1 reply; 12+ messages in thread
From: David Aldrich @ 2017-01-16 17:55 UTC (permalink / raw)
To: zhilong zheng; +Cc: users
Hi
I’ve tried sending packets with packETH, and I have tried using testpmd (instead of l2fwd) to receive them. I still see no packets.
Any other suggestions please?
Best regards
David
From: zhilong zheng [mailto:zhengzl0715@gmail.com]
Sent: 16 January 2017 13:48
To: David Aldrich <David.Aldrich@EMEA.NEC.COM>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
Hi David,
You can try to replace it with “Linux pktgen”(no need of DPDK-driver for NIC) or “DPDK pktgen”(Need DPDK-driver) in your packet sending host. They both work fine for me.
Best regards
Zhilong
在 2017年1月16日,21:41,David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>> 写道:
Hi Zhilong
I have written a simple program in C, which sends udp packets.
Which sender are you using?
David
From: zhilong zheng [mailto:zhengzl0715@gmail.com]
Sent: 16 January 2017 13:38
To: David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>>
Cc: users@dpdk.org<mailto:users@dpdk.org>
Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
Hi David,
A similar problem happened to me before. However when I changed another packet sender, it works fine. What’s your packet sender that you sending UDP packets?
Best regards
Zhilong
在 2017年1月16日,19:34,David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>> 写道:
Hi Zhilong
In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
Port 0 Link Down”. So are there some problems in your port connection? Or you
can send packets to Port 1to check statistics.
I am only sending packets to port 1, and these packets are not indicated in the statistics. I need to find out why.
BR
David
-----Original Message-----
From: zhilong zheng [mailto:zhengzl0715@gmail.com]
Sent: 16 January 2017 03:13
To: David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>>
Cc: users@dpdk.org<mailto:users@dpdk.org>
Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
Hi David,
In the EAL log of your command “./build/l2fwd -c f -n2 -- -q 2 -p 3”, it showed “
Port 0 Link Down”. So are there some problems in your port connection? Or you
can send packets to Port 1to check statistics.
I am new here too. Hope it can help you.
Best regard
Zhilong
在 2017年1月16日,03:01,David Aldrich <David.Aldrich@EMEA.NEC.COM<mailto:David.Aldrich@emea.nec.com>>
写道:
If anyone can help me with this issue I would be grateful.
David
Click
https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
BxDV8BRko9RQvSR0PuAKFjWd14NB0E99NUsTSwWURD1dro2FIg== to report
this email as spam.
<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-users] Newbie: Help requested to get l2fwd example working
2017-01-16 17:55 ` David Aldrich
@ 2017-01-19 9:05 ` David Aldrich
0 siblings, 0 replies; 12+ messages in thread
From: David Aldrich @ 2017-01-19 9:05 UTC (permalink / raw)
To: users
In case it helps anyone, adding kernel boot parameter:
intel_iommu=off
seems to have fixed my problem. l2fwd is now receiving packets.
best regards
David
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-01-19 9:05 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-13 8:12 [dpdk-users] Newbie: Help requested to get l2fwd example working David Aldrich
2017-01-13 11:01 ` Marco Kwok
2017-01-13 11:12 ` David Aldrich
2017-01-13 11:24 ` Marco Kwok
2017-01-15 19:01 ` David Aldrich
2017-01-16 3:12 ` zhilong zheng
2017-01-16 11:34 ` David Aldrich
2017-01-16 13:37 ` zhilong zheng
2017-01-16 13:41 ` David Aldrich
2017-01-16 13:48 ` zhilong zheng
2017-01-16 17:55 ` David Aldrich
2017-01-19 9:05 ` David Aldrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).