[dpdk-dev] Couple of PMD questions

2016-04-21 Thread Bruce Richardson
On Wed, Apr 20, 2016 at 10:47:59AM -0500, Jay Rolette wrote: > On Wed, Apr 20, 2016 at 9:05 AM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > On Wed, Apr 20, 2016 at 07:22:57AM -0500, Jay Rolette wrote: > > > On Wed, Apr 20, 2016 at 4:10 AM, Bruce Richardson < > > > bruce.richar

[dpdk-dev] Couple of PMD questions

2016-04-21 Thread Andriy Berestovskyy
Hi Jay, Max RX frame size and buffer size are independent bits. You may set MAXFRS to 9K and feed 512B buffers or vice versa. The issue is that you are trying to tune both of the options to avoid buf chains. Here is another way to enable jumbo frames and avoid buf chains: 1. Disable scattering and

[dpdk-dev] Couple of PMD questions

2016-04-20 Thread Bruce Richardson
On Wed, Apr 20, 2016 at 07:22:57AM -0500, Jay Rolette wrote: > On Wed, Apr 20, 2016 at 4:10 AM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > On Tue, Apr 19, 2016 at 03:16:37PM -0500, Jay Rolette wrote: > > > In ixgbe_dev_rx_init(), there is this bit of code: > > > > > > /

[dpdk-dev] Couple of PMD questions

2016-04-20 Thread Andriy Berestovskyy
Hi Jay, On Tue, Apr 19, 2016 at 10:16 PM, Jay Rolette wrote: > Should the driver error out in that case instead of only "sort of" working? +1, we hit the same issue. Error or log message would help. > If I support a max frame size of 9216 bytes (exactly a 1K multiple to make > the NIC happy), t

[dpdk-dev] Couple of PMD questions

2016-04-20 Thread Jay Rolette
On Wed, Apr 20, 2016 at 9:05 AM, Bruce Richardson < bruce.richardson at intel.com> wrote: > On Wed, Apr 20, 2016 at 07:22:57AM -0500, Jay Rolette wrote: > > On Wed, Apr 20, 2016 at 4:10 AM, Bruce Richardson < > > bruce.richardson at intel.com> wrote: > > > > > On Tue, Apr 19, 2016 at 03:16:37PM -0

[dpdk-dev] Couple of PMD questions

2016-04-20 Thread Bruce Richardson
On Tue, Apr 19, 2016 at 03:16:37PM -0500, Jay Rolette wrote: > In ixgbe_dev_rx_init(), there is this bit of code: > > /* >* Configure the RX buffer size in the BSIZEPACKET field of >* the SRRCTL register of the queue. >* The value is in 1 KB resolution. Valid values c

[dpdk-dev] Couple of PMD questions

2016-04-20 Thread Jay Rolette
On Wed, Apr 20, 2016 at 4:35 AM, Andriy Berestovskyy wrote: > Hi Jay, > > On Tue, Apr 19, 2016 at 10:16 PM, Jay Rolette wrote: > > Should the driver error out in that case instead of only "sort of" > working? > > +1, we hit the same issue. Error or log message would help. > > > If I support a ma

[dpdk-dev] Couple of PMD questions

2016-04-20 Thread Jay Rolette
On Wed, Apr 20, 2016 at 4:10 AM, Bruce Richardson < bruce.richardson at intel.com> wrote: > On Tue, Apr 19, 2016 at 03:16:37PM -0500, Jay Rolette wrote: > > In ixgbe_dev_rx_init(), there is this bit of code: > > > > /* > >* Configure the RX buffer size in the BSIZEPACKET field of > >

[dpdk-dev] Couple of PMD questions

2016-04-19 Thread Jay Rolette
In ixgbe_dev_rx_init(), there is this bit of code: /* * Configure the RX buffer size in the BSIZEPACKET field of * the SRRCTL register of the queue. * The value is in 1 KB resolution. Valid values can be from * 1 KB to 16 KB. */ buf_size