about netmap num_rx_desc.

From: <root_at_9du.org>
Date: Fri, 27 Jul 2012 19:14:28 +0800
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
Received on Fri Jul 27 2012 - 09:14:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:29 UTC