[dpdk-dev] Intel I350 | Jumbo Frame support | Segmentation fault

2014-06-27 Thread Sabu Kurian
Hai all, When I try to send packets of sizes > 512 bytes (in a burst of 64), the program exits with a segmentation fault. I'm using Intel I350 1GbE card. Moreover if I try to enable jumbo frame support , it exits with an error saying 'Could not configure port1 (-22)' . Any help would be appreciat

[dpdk-dev] Intel I350 fails to work with DPDK

2014-05-28 Thread sabu kurian
t; bruce.richardson at intel.com> wrote: > > > From: sabu kurian [mailto:sabu2kurian at gmail.com] > > Sent: Wednesday, May 28, 2014 11:54 AM > > To: Richardson, Bruce > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] Intel I350 fails to work with DPDK > > >

[dpdk-dev] Intel I350 fails to work with DPDK

2014-05-28 Thread sabu kurian
d the NIC. On Wed, May 28, 2014 at 4:16 PM, Richardson, Bruce < bruce.richardson at intel.com> wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of sabu kurian > > Sent: Wednesday, May 28, 2014 10:42 AM > > To: dev at dpd

[dpdk-dev] Intel I350 fails to work with DPDK

2014-05-28 Thread sabu kurian
I have asked a similar question before, no one replied though. I'm crafting my own packets in mbuf's (74 byte packets all) and sending it using ret = rte_eth_tx_burst(port_ids[lcore_id], 0, m_pool,burst_size); When burst_size is 1, it does work. Work in the sense the NIC will continue with sendi

[dpdk-dev] I350 drops packet on rte_eth_tx_burst()

2014-04-13 Thread sabu kurian
rward the packets there should be no tx failure. If > you instruct the core to send the packet in burst, the tx rate is higher > than 10Gbps as the core is too powerful. > > --- > Sent from Boxer | http://getboxer.com <http://bit.ly/1hRkK2W> > On April 11, 2014 at 7:16:47 P

[dpdk-dev] Intel DPDK drops packets in burst mode on I350

2014-04-12 Thread sabu kurian
I350 fails to sent packets in burst mode. However it is possible to sent 1 packet at a time using the hardware. I350 is being listed under the 'Supported NIC's' page on http://dpdk.org/doc/nics This is the code I used ret = rte_eth_tx_burst(port_ids[lcore_id], 0, m_pool, burst_size); If I give

[dpdk-dev] I350 drops packet on rte_eth_tx_burst()

2014-04-11 Thread sabu kurian
To add to my previous mail. only upto 544 packets are actually sent... then it fails On Fri, Apr 11, 2014 at 3:34 PM, sabu kurian wrote: > Hi Friends, > > Thanks for the reply. > > This is the portion of the code where the I350 fails to send packet: > > for(;;){ &g

[dpdk-dev] I350 drops packet on rte_eth_tx_burst()

2014-04-11 Thread sabu kurian
l were allocated using for(j=0;jwrote: > Hi, > > 2014-04-11 11:29, sabu kurian: > > Even after installing all the required igb drivers for I350 (the device > > seems to work perfect on the host machine), am unable to transmit packets > > using the same device (on Intel D

[dpdk-dev] I350 drops packet on rte_eth_tx_burst()

2014-04-11 Thread sabu kurian
Hi friends, Even after installing all the required igb drivers for I350 (the device seems to work perfect on the host machine), am unable to transmit packets using the same device (on Intel DPDK) using ret = rte_eth_tx_burst(port_ids[lcore_id], 0, m_pool, burst_size); At times it might transfer

[dpdk-dev] Intel I350 T2 drops packets

2014-04-10 Thread sabu kurian
My custom program works perfect inside a VM and using an unsupported NIC card. But the same fails on the host machine that has I350 T2 NIC card (2 ports). Should I need to install the driver for I350 for use with Intel DPDK ?

[dpdk-dev] Achieve maximum transmit rate using Intel DPDK

2014-03-28 Thread sabu kurian
Hi all, Does anyone know on what are the optimal settings that should be provided, so as to get the maximum transmit rate for an NIC using Intel DPDK ?

[dpdk-dev] Achieve maximum transmit rate

2014-03-24 Thread sabu kurian
Hello Friends, What should be done to achieve maximum packet transfer rate using Intel DPDK...? What are the things I should tune ? Does having more no.of tx descriptors help ? With a burst size of 30 and having 512 tx descriptors , I get a speed of around one hundred thousand packets per second (

[dpdk-dev] Max possible packet burst size...

2014-03-19 Thread sabu kurian
Hello friends, Does anyone know of a method, that would get me the maximum possible transmit burst size for a NIC ? Are there any methods to compute the check sum (for FCS, IPv4 etc) fields within Intel DPDK ? Thanks and regards

[dpdk-dev] Error : dereferencing pointer to incomplete type......

2014-03-17 Thread sabu kurian
A little bit of correction on the second format: iphdr->packet_id = rte_bswap16(0x0001); // This one gives error as well Any idea on what could be wrong ? Thanks On Mon, Mar 17, 2014 at 1:51 PM, sabu kurian wrote: > Hello friends, > > I get a error like "derefer

[dpdk-dev] Error : dereferencing pointer to incomplete type......

2014-03-17 Thread sabu kurian
Hello friends, I get a error like "dereferencing pointer to incomplete type", when I try to fill in the IPv4 headers. Below is the code snippet: struct ether_hdr *ehdr = rte_pktmbuf_mtod(m_pool, struct ether_hdr *); struct ipv4_hdr *iphdr = (struct ipv4_hdr *)(&ehdr[1]); iphdr->packet_id = (u

[dpdk-dev] Segmentation Fault on printf()

2014-03-16 Thread sabu kurian
could be causing it ? Regards On Fri, Mar 14, 2014 at 9:40 PM, Chris Wright wrote: > * sabu kurian (sabu2kurian at gmail.com) wrote: > > Hello friends, > > > > I'm trying to print the ether_type for a packet that I captured from a > port > > on my machine. S

[dpdk-dev] Packet crafting....

2014-03-14 Thread sabu kurian
com> wrote: > > > From: sabu kurian [mailto:sabu2kurian at gmail.com] > > Sent: Friday, March 14, 2014 11:38 AM > > To: Richardson, Bruce > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] Packet crafting > > > > Thanks on the reply Richardson. Yo

[dpdk-dev] Packet crafting....

2014-03-14 Thread sabu kurian
eady set the maximum packet size for a mbuf and the number of mbuf's and all. So do I really need to use rte_pktmbuf_alloc ? On Fri, Mar 14, 2014 at 4:38 PM, Richardson, Bruce < bruce.richardson at intel.com> wrote: > > > From: sabu kurian [mailto:sabu2kurian at gmail.com] > >

[dpdk-dev] Segmentation Fault on printf()

2014-03-14 Thread sabu kurian
Hello friends, I'm trying to print the ether_type for a packet that I captured from a port on my machine. Suppose 'm' holds the packet. 'm' is of type 'struct rte_mbuf'. Intels API reference for DPDK says 'ether_type' is of uint16_t. I used the following code to retrieve ether_type. void * eth_ty

[dpdk-dev] Packet crafting....

2014-03-14 Thread sabu kurian
Thank you very much Richardson for your valuable reply. But is there another way of doing it using the rte_pktmbuf_append / rte_pktmbuf_prepend ? Can you please tell me on how to do that ? Regards On Fri, Mar 14, 2014 at 3:27 PM, Richardson, Bruce < bruce.richardson at intel.com> wrote: > > Hel

[dpdk-dev] Packet crafting....

2014-03-14 Thread sabu kurian
Hello friends, As of now... I know on how to create an ipv4 header using the 'struct ipv4_hdr'. My requirement is to craft a packet and sent it via 'rte_eth_tx_burst'. I know that there should be an 'ether_hdr' created before, the packet could be sent. Could someone help me on how to set the addre

[dpdk-dev] Crafting a packet for transmission.

2014-03-13 Thread sabu kurian
Hai friends, My requirement is to create a packet generator. So I could use struct rte_mbuf * m; to create a single packet holder. So how am I suppose to fill in the packet details like the MAC source , destination and also the IP source , destination (in case of IPv4 packets). Following the l2