[dpdk-dev] Crafting a packet for transmission.

2014-03-13 Thread Vladimir Medvedkin
Cast pointer to required struct pointer, for example for ipv4 struct ipv4_hdr *iph; iph = (struct ipv4_hdr *)rte_pktmbuf_append(m, sizeof(struct ipv4_hdr)); and fill in fields. Look in lib/librte_net/ directory. Regards, Vladimir 2014-03-13 16:04 GMT+04:00 Aravind : > Thank you for your reply V

[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

[dpdk-dev] Crafting a packet for transmission.

2014-03-13 Thread Vladimir Medvedkin
Hi, At first look at https://github.com/Pktgen/Pktgen-DPDK If you need your custom app: - alloc mbuf with rte_pktmbuf_alloc - fill up L2-4 headers fields (look at rte_pktmbuf_append func for example) - send packet via rte_eth_tx_burst Regards, Vladimir 2014-03-13 15:15 GMT+04:00 sabu kurian :

[dpdk-dev] Vmxnet3-pmd not receiving packets after random time under high load

2014-03-13 Thread Daniel Kan
I dug deeper into the problem vmxnet-pmd not capturing packets. Whenever pmd stops capturing, it does not respect the number of rxd. For example, I set rxd to 512. The pkt mbuf mempool I allocate is 4482, which is much bigger than rxd. I would expect ~512 mbufs to be removed from mempool at any

[dpdk-dev] Linux Plumbers Conference 2014: Network Virtualization (Security)

2014-03-13 Thread Thomas Graf
Hi [Cross posting this to dpdk-dev for exposure] We had excellent technical discussions around network virtualization at LPC13 last year and would love to provide the same forum at this year's LPC again. I believe this would be a good opportunity to discuss integration of DPDK with the Linux net

[dpdk-dev] [ovs-dev] [PATCH RFC] dpif-netdev: Add support Intel DPDK based ports.

2014-03-13 Thread David Nyström
On 2014-01-29 21:47, Fran?ois-Fr?d?ric Ozog wrote: >>> First and easy answer: it is open source, so anyone can recompile. So, >>> what's the issue? >> >> I'm talking from a pure distribution perspective here: Requiring to >> recompile all DPDK based applications to distribute a bugfix or to add >>