netmap & chelsio

Navdeep Parhar np at FreeBSD.org
Wed Jul 11 16:53:30 UTC 2018


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
debugger, or compile the driver with it set to 0 -- it's in t4_netmap.c:

int lazy_tx_credit_flush = 1;

I'm surprised I don't have a tunable/sysctl for it.  I'll add one really
soon.


Regards,
Navdeep

> 
> 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.nrxq=1
> hw.cxgbe.qsize_txq=512
> hw.cxgbe.qsize_rxq=512
> hw.cxgbe.cong_drop=1
> hw.cxgbe.pause_settings=1
> hw.cxgbe.autoneg=0
> hw.cxgbe.nm_rx_nframes=1
> hw.cxgbe.nm_rx_ndesc=1
> 
> Lars
> 



More information about the freebsd-net mailing list