Re: netmap & chelsio

2018-07-12 Thread Eggert, Lars
Hi, On 2018-7-11, at 18:53, Navdeep Parhar wrote: > Try changing lazy_tx_credit_flush to 0 on the running kernel with a > debugger, or compile the driver with it set to 0 -- it's in t4_netmap.c: > > int lazy_tx_credit_flush = 1; thanks! With that, I get performance similar to the ixl cards on f

Re: netmap & chelsio

2018-07-11 Thread Navdeep Parhar
On 07/11/18 07:58, Eggert, Lars wrote: > Hi, > > I have netmap working with the T6 cards now. > > However, performance is very poor. It seems to take several milliseconds > after a NIOCTXSYNC ioctl before the tail is updated? Try changing lazy_tx_credit_flush to 0 on the running kernel with a d

Re: netmap & chelsio

2018-07-11 Thread Eggert, Lars
Hi, I have netmap working with the T6 cards now. However, performance is very poor. It seems to take several milliseconds after a NIOCTXSYNC ioctl before the tail is updated? In case it matters, here is what is in loader.conf: hw.cxgbe.num_vis=2 hw.cxgbe.fl_pktshift=0 hw.cxgbe.ntxq=1 hw.cxgbe.

Re: netmap & chelsio

2018-07-06 Thread n...@freebsd.org
On Fri, Jul 06, 2018 at 06:41:53AM +, Eggert, Lars wrote: > Hi, > > On 2018-7-5, at 17:47, n...@freebsd.org wrote: > > Set hw.cxgbe.fl_pktshift=0 in loader.conf to stop the chip from doing > > this. See cxgbe(4) for details on the knob. It's a historic > > optimization that doesn't seem to m

Re: netmap & chelsio

2018-07-05 Thread Eggert, Lars
Hi, On 2018-7-5, at 17:47, n...@freebsd.org wrote: > Set hw.cxgbe.fl_pktshift=0 in loader.conf to stop the chip from doing > this. See cxgbe(4) for details on the knob. It's a historic > optimization that doesn't seem to matter on modern CPUs, so the driver > default should probably be 0 instead

Re: netmap & chelsio

2018-07-05 Thread n...@freebsd.org
On Thu, Jul 05, 2018 at 03:09:33PM +, Eggert, Lars wrote: > Hi, > > when receiving packets via netmap (current GitHub version) on a Chelsio T6 > vcc0 device on -CURRENT, it appears that the Ethernet header starts at an > offset of two bytes into the netmap slot. So far, I have only used netmap

netmap & chelsio

2018-07-05 Thread Eggert, Lars
Hi, when receiving packets via netmap (current GitHub version) on a Chelsio T6 vcc0 device on -CURRENT, it appears that the Ethernet header starts at an offset of two bytes into the netmap slot. So far, I have only used netmap with various Intel NICs, where the Ethernet header starts at offset