aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/if_igb_netmap.h
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2012-02-08 11:43:29 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2012-02-08 11:43:29 +0000
commit5819da83cec5fdb1d77956b2e7726525bf1245ea (patch)
treedc9a4f4f3227fea430bc6d74c565a7291e95bc05 /sys/dev/netmap/if_igb_netmap.h
parent78674822c7c824d55219c5817522dc81b09c8cd1 (diff)
downloadsrc-5819da83cec5fdb1d77956b2e7726525bf1245ea.tar.gz
src-5819da83cec5fdb1d77956b2e7726525bf1245ea.zip
- change the buffer size from a constant to a
TUNABLE variable (hw.netmap.buf_size) so we can experiment with values different from 2048 which may give better cache performance. - rearrange the memory allocation code so it will be easier to replace it with a different implementation. The current code relies on a single large contiguous chunk of memory obtained through contigmalloc. The new implementation (not committed yet) uses multiple smaller chunks which are easier to fit in a fragmented address space.
Notes
Notes: svn path=/head/; revision=231198
Diffstat (limited to 'sys/dev/netmap/if_igb_netmap.h')
-rw-r--r--sys/dev/netmap/if_igb_netmap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/netmap/if_igb_netmap.h b/sys/dev/netmap/if_igb_netmap.h
index 0e4229bb0c7b..3a8ad51fa5c4 100644
--- a/sys/dev/netmap/if_igb_netmap.h
+++ b/sys/dev/netmap/if_igb_netmap.h
@@ -58,7 +58,6 @@ igb_netmap_attach(struct adapter *adapter)
na.nm_rxsync = igb_netmap_rxsync;
na.nm_lock = igb_netmap_lock_wrapper;
na.nm_register = igb_netmap_reg;
- na.buff_size = NETMAP_BUF_SIZE;
netmap_attach(&na, adapter->num_queues);
}