DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Network  - Drivers
@ 2016-12-14  9:38 Kumaraparameshwaran Rathnavel
  2016-12-14  9:52 ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Kumaraparameshwaran Rathnavel @ 2016-12-14  9:38 UTC (permalink / raw)
  To: users

Hi All,

I have been trying to use network drivers provided by the DPDK to write a small client - server application. I will explain the configuration

I used uio_pci_generic and igb_uio both modules in the Kernel for DPDK Network drivers in userspace. The client and server were run on Centos VM with virtual box as the Host and made sure that Virtual NIC had the driver.

The sequence of calling the functions as 

rte_eth_dev_count
rte_eth_dev_configure
tx_queue_setup
rte_pkt_mbuf_alloc

I filled the packet with Ethernet Header and Ethertype as 0x8870. I did fill the pkt_len and l2_hdr len. I did not fill the VLAN Tag, Outer VLAN tag,
flags. Transmission is showing success but I am not receiving any packet in the other side wheree i run the receiver setup.

Can you suggest what should be done and how it should be done.

Does Drivers work in Virtual Box? If not which is prefered ESX or KVM and does Virtual NICs work?

Thanking You,
Param.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] Network  - Drivers
  2016-12-14  9:38 [dpdk-users] Network - Drivers Kumaraparameshwaran Rathnavel
@ 2016-12-14  9:52 ` Thomas Monjalon
  2016-12-14 10:02   ` Kumaraparameshwaran Rathnavel
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2016-12-14  9:52 UTC (permalink / raw)
  To: Kumaraparameshwaran Rathnavel; +Cc: users

Hi,

2016-12-14 15:08, Kumaraparameshwaran Rathnavel:
> Hi All,
> 
> I have been trying to use network drivers provided by the DPDK to write a small client - server application. I will explain the configuration

I suggest to start your tests with testpmd in txonly mode.

> I used uio_pci_generic and igb_uio both modules in the Kernel for DPDK Network drivers in userspace. The client and server were run on Centos VM with virtual box as the Host and made sure that Virtual NIC had the driver.
> 
> The sequence of calling the functions as 
> 
> rte_eth_dev_count
> rte_eth_dev_configure
> tx_queue_setup
> rte_pkt_mbuf_alloc
> 
> I filled the packet with Ethernet Header and Ethertype as 0x8870. I did fill the pkt_len and l2_hdr len. I did not fill the VLAN Tag, Outer VLAN tag,
> flags. Transmission is showing success but I am not receiving any packet in the other side wheree i run the receiver setup.
> 
> Can you suggest what should be done and how it should be done.
> 
> Does Drivers work in Virtual Box? If not which is prefered ESX or KVM and does Virtual NICs work?

The supported NICs are listed here: http://dpdk.org/doc/nics
Virtualbox is not known to be fully compatible, but virtio works with Qemu/KVM
and vmxnet3 works with ESX.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] Network  - Drivers
  2016-12-14  9:52 ` Thomas Monjalon
@ 2016-12-14 10:02   ` Kumaraparameshwaran Rathnavel
  0 siblings, 0 replies; 3+ messages in thread
From: Kumaraparameshwaran Rathnavel @ 2016-12-14 10:02 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: users

Sure I will try that. I am getting an error called “Empty set of forwarding logical cores - check the core mask supplied in the command parameters”. What does this mean? I have 2 cores and I give core mask argument as -c f

Thanking You,
Param.
> On 14-Dec-2016, at 3:22 PM, Thomas Monjalon <thomas.monjalon@6wind.com <mailto:thomas.monjalon@6wind.com>> wrote:
> 
> Hi,
> 
> 2016-12-14 15:08, Kumaraparameshwaran Rathnavel:
>> Hi All,
>> 
>> I have been trying to use network drivers provided by the DPDK to write a small client - server application. I will explain the configuration
> 
> I suggest to start your tests with testpmd in txonly mode.
> 
>> I used uio_pci_generic and igb_uio both modules in the Kernel for DPDK Network drivers in userspace. The client and server were run on Centos VM with virtual box as the Host and made sure that Virtual NIC had the driver.
>> 
>> The sequence of calling the functions as 
>> 
>> rte_eth_dev_count
>> rte_eth_dev_configure
>> tx_queue_setup
>> rte_pkt_mbuf_alloc
>> 
>> I filled the packet with Ethernet Header and Ethertype as 0x8870. I did fill the pkt_len and l2_hdr len. I did not fill the VLAN Tag, Outer VLAN tag,
>> flags. Transmission is showing success but I am not receiving any packet in the other side wheree i run the receiver setup.
>> 
>> Can you suggest what should be done and how it should be done.
>> 
>> Does Drivers work in Virtual Box? If not which is prefered ESX or KVM and does Virtual NICs work?
> 
> The supported NICs are listed here: http://dpdk.org/doc/nics <http://dpdk.org/doc/nics>
> Virtualbox is not known to be fully compatible, but virtio works with Qemu/KVM
> and vmxnet3 works with ESX.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-14 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14  9:38 [dpdk-users] Network - Drivers Kumaraparameshwaran Rathnavel
2016-12-14  9:52 ` Thomas Monjalon
2016-12-14 10:02   ` Kumaraparameshwaran Rathnavel

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).