[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-current
Subject:    about netmap num_rx_desc.
From:       "root () 9du ! org" <root () 9du ! org>
Date:       2012-07-27 11:14:28
Message-ID: 201207271914198432934 () 9du ! org
[Download RAW message or body]

[Attachment #2 (text/plain)]

in netmap_kern.h
struct netmap_adapter {

......

u_int num_rx_desc;
//u_int buff_size; // XXX deprecate, use NETMAP_BUF_SIZE


but in netmap.c

int
netmap_attach(struct netmap_adapter *na, int num_queues)
{
....
na->num_rx_rings = num_queues;

ixgbe_netmap.h

static void
ixgbe_netmap_attach(struct adapter *adapter)
{
...
netmap_attach(&na, adapter->num_queues);
}

why not use the netmap_buf_size as na->num_rx_rings;
then will be have a larger buffer

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic