[dpdk-dev] multi-segment mbuf

2016-03-22 Thread Clarylin L
Ok...I think you meant there's a bug in the driver code when formatting multi-segment mbuf. On Tue, Mar 22, 2016 at 3:13 PM, Stephen Hemminger < stephen at networkplumber.org> wrote: > Read the source. > > A multi-segment mbuf has the first mbuf with nb_segs > 1 and chained by > next pointer. > I

[dpdk-dev] multi-segment mbuf

2016-03-22 Thread Clarylin L
On my setup, the sending host is a regular one without running dpdk. It sends out 2500-byte packet without fragmentation to the dpdk node. Isn't it the enic pmd driver that is responsible for fetch the packet and format the mbuf (or mbuf chain if required)? Or do you mean I need to write my own co

[dpdk-dev] multi-segment mbuf

2016-03-22 Thread Stephen Hemminger
Read the source. A multi-segment mbuf has the first mbuf with nb_segs > 1 and chained by next pointer. It is a bug in the creator of the mbuf, if number of segments and next chain don't match. There is a rte_pktmbuf_dump(), you can use to look at how your mbuf is formatted. On Tue, Mar 22, 2016

[dpdk-dev] multi-segment mbuf

2016-03-22 Thread Clarylin L
Sorry my bad. The mbuf size has been accidentally changed to 3000. After fixing this by setting mbuf size to 2048, multi-segment mbuf still doesn't work. I was trying to send 2500-byte packets to the target system and was expecting to see two-segment mbuf chain), but got errors on it. Tue Mar 22

[dpdk-dev] multi-segment mbuf

2016-03-22 Thread Bruce Richardson
On Mon, Mar 21, 2016 at 04:34:50PM -0700, Clarylin L wrote: > I am trying multi-segment mbuf, but it seems not working. > > On my target host, the mbuf size is set to 2048 and I am trying to send > large packet to it (say 2500 bytes without fragmentation) from another > host. I enabled both jumbo_

[dpdk-dev] multi-segment mbuf

2016-03-21 Thread Clarylin L
I am trying multi-segment mbuf, but it seems not working. On my target host, the mbuf size is set to 2048 and I am trying to send large packet to it (say 2500 bytes without fragmentation) from another host. I enabled both jumbo_frame and enable_scatter for the port. But I saw on the target only on