DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] phantom old packets received in new mbuf
@ 2014-07-06 15:19 Helmut Sim
  2014-07-16 10:56 ` Helmut Sim
  0 siblings, 1 reply; 7+ messages in thread
From: Helmut Sim @ 2014-07-06 15:19 UTC (permalink / raw)
  To: dev

Hi All,

I face a very strange behavior.
I do:
rte_eth_rx_burst(port[i].portid, 0, pkts_burst, MAX_PKT_BURST)

then I reassemble the received UDP segments into one packet (i used the
ip_reassembly example), manipulate its content and send it back to the
network after fragmenting the packet.
This works great, ...well only most of the time it works great...

sometimes it happens that a packet is reassembled and retransmitted to the
network, and after a while I receive one of its segment instead of a a
segment of a totally different packet...

i.e.
rx seg 1 of pkt.id x
rx seg 2 of pkt.id x
rx seg 3 of pkt.id x
rx seg 4 of pkt.id x

packet is reassembled and sent to the network.

then i get:
rx seg 1 of pkt.id y
rx seg 2 of pkt.id y
rx seg 3 of pkt.id y
rx seg 2 of pkt.id x

....

it looks like the pmd gives me a mbuf that points to an old  freed buffer
instead of a new allocated buffer with the new segment data.
or alternatively, the pmd allocates the buffer but doesn't copy the rx data
into it...

the input packets were checked with a wireshark and it fits my description
above.

I checked it with different level of delay between the packets, but it
still happens.

I am using dpdk 1.6.0 r2.
specifically running over an ubuntu 14.04 server on a xen hypervisor using
the NIC 82576 as pci passthrough mode.
using one single port and one single queue.

obviously I suspect that the problem is at my side, but couldn't find it,
...yet.

Any idea or known issue?

Thanks
Sim

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

end of thread, other threads:[~2014-07-17  8:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-06 15:19 [dpdk-dev] phantom old packets received in new mbuf Helmut Sim
2014-07-16 10:56 ` Helmut Sim
2014-07-16 12:04   ` Thomas Monjalon
2014-07-16 12:18     ` Olivier MATZ
2014-07-16 12:36       ` Helmut Sim
2014-07-16 13:22         ` Helmut Sim
2014-07-17  8:39           ` Helmut Sim

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