DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  Unable to get multi-segment mbuf working for ixgbe
@ 2016-03-25 23:13 Clarylin L
  2016-03-28 17:05 ` Clarylin L
  0 siblings, 1 reply; 3+ messages in thread
From: Clarylin L @ 2016-03-25 23:13 UTC (permalink / raw)
  To: dev

Hello,

I am trying to use multi-segment mbuf to receive large packet. I enabled
jumbo_frame and enable_scatter for the port and was expecting mbuf chaining
would be used to receive packets larger than the mbuf size (which was set
to 2048).

When sending 3000-byte (without fragmentation) packet from another non-dpdk
host, I didn't see packet was received by the ixgbe PMD driver.

After a quick debugging session I found that the following statement
in ixgbe_recv_scattered_pkts
(ixgbe_rxtx.c) is
always true and break the loop in case of large packet, while it's not the
case for small packet (smaller than mbuf size):

if (! staterr & rte_cpu_to_le32(IXGBE_RXDADV_STAT_DD))
    break;

Is enabling jumbo_frame and enable_scatter good enough to get started the
mbuf chaining?

Appreciate any input! Thanks.

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

* Re: [dpdk-dev] Unable to get multi-segment mbuf working for ixgbe
  2016-03-25 23:13 [dpdk-dev] Unable to get multi-segment mbuf working for ixgbe Clarylin L
@ 2016-03-28 17:05 ` Clarylin L
  2016-03-29  9:24   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Clarylin L @ 2016-03-28 17:05 UTC (permalink / raw)
  To: dev

Any pointers to what the issue could be? thanks

On Fri, Mar 25, 2016 at 4:13 PM, Clarylin L <clearasu@gmail.com> wrote:

> Hello,
>
> I am trying to use multi-segment mbuf to receive large packet. I enabled
> jumbo_frame and enable_scatter for the port and was expecting mbuf chaining
> would be used to receive packets larger than the mbuf size (which was set
> to 2048).
>
> When sending 3000-byte (without fragmentation) packet from another
> non-dpdk host, I didn't see packet was received by the ixgbe PMD driver.
>
> After a quick debugging session I found that the following statement in ixgbe_recv_scattered_pkts
> (ixgbe_rxtx.c) is
> always true and break the loop in case of large packet, while it's not the
> case for small packet (smaller than mbuf size):
>
> if (! staterr & rte_cpu_to_le32(IXGBE_RXDADV_STAT_DD))
>     break;
>
> Is enabling jumbo_frame and enable_scatter good enough to get started the
> mbuf chaining?
>
> Appreciate any input! Thanks.
>

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

* Re: [dpdk-dev] Unable to get multi-segment mbuf working for ixgbe
  2016-03-28 17:05 ` Clarylin L
@ 2016-03-29  9:24   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2016-03-29  9:24 UTC (permalink / raw)
  To: Clarylin L; +Cc: dev

On Mon, Mar 28, 2016 at 10:05:40AM -0700, Clarylin L wrote:
> Any pointers to what the issue could be? thanks
> 
> On Fri, Mar 25, 2016 at 4:13 PM, Clarylin L <clearasu@gmail.com> wrote:
> 
> > Hello,
> >
> > I am trying to use multi-segment mbuf to receive large packet. I enabled
> > jumbo_frame and enable_scatter for the port and was expecting mbuf chaining
> > would be used to receive packets larger than the mbuf size (which was set
> > to 2048).
> >
> > When sending 3000-byte (without fragmentation) packet from another
> > non-dpdk host, I didn't see packet was received by the ixgbe PMD driver.
> >
> > After a quick debugging session I found that the following statement in ixgbe_recv_scattered_pkts
> > (ixgbe_rxtx.c) is
> > always true and break the loop in case of large packet, while it's not the
> > case for small packet (smaller than mbuf size):
> >
> > if (! staterr & rte_cpu_to_le32(IXGBE_RXDADV_STAT_DD))
> >     break;
> >
> > Is enabling jumbo_frame and enable_scatter good enough to get started the
> > mbuf chaining?

What did you configure for the max MTU for jumbo frames? What do the port stats
and extended stats (xstats) report. Is there an error counter there that is
incrementing that could give a hint as to what the problem is.

/Bruce

> >
> > Appreciate any input! Thanks.
> >

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

end of thread, other threads:[~2016-03-29  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-25 23:13 [dpdk-dev] Unable to get multi-segment mbuf working for ixgbe Clarylin L
2016-03-28 17:05 ` Clarylin L
2016-03-29  9:24   ` Bruce Richardson

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