diff options
| author | Qiuwen Lu <[email protected]> | 2016-06-01 11:16:36 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2016-06-01 11:16:36 +0800 |
| commit | de228703e81caf60c403053a535da803ea5437d8 (patch) | |
| tree | 36f2bd459a59e7770e6c65a15a094e8843e6be1f /conf | |
| parent | bf3623985b9c04a0770c0112157e44ce825e922e (diff) | |
#8 增加静态MAC地址功能
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/nl2fwd.conf | 90 |
1 files changed, 66 insertions, 24 deletions
diff --git a/conf/nl2fwd.conf b/conf/nl2fwd.conf index 5b44d7f..7913228 100644 --- a/conf/nl2fwd.conf +++ b/conf/nl2fwd.conf @@ -1,42 +1,70 @@ +[eal]
+enable_spec_memc=1
+n_mem_channel=4
[common]
-nic_rx_ring_size=4096
-nic_tx_ring_size=4096
-ring_rx_size=65536
-ring_tx_size=65536
-burst_size_io_rx_read=1
-burst_size_io_rx_write=1
-burst_size_io_tx_read=1
-burst_size_io_tx_write=1
-burst_size_worker_read=1
-burst_size_worker_write=1
+#nic_rx_ring_size=4096
+#nic_tx_ring_size=4096
+#nic_rx_ring_size=1024
+#nic_tx_ring_size=1024
+#ring_rx_size=65536
+#ring_tx_size=65536
+ring_rx_size=1024
+ring_tx_size=1024
+burst_size_io_rx_read=64
+burst_size_io_rx_write=64
+burst_size_io_tx_read=64
+burst_size_io_tx_write=64
+burst_size_worker_read=64
+burst_size_worker_write=64
+#[pcap_compatibility]
+#n_device=1
+#[pcap_device_0]
+#iface=lo
[rx_common]
-rx_count=2
+rx_count=4
[rx_0]
-port=1
+port=0
queue=0
lcore=14
[rx_1]
-port=3
+port=1
+queue=0
+lcore=15
+[rx_2]
+port=2
queue=0
lcore=14
+[rx_3]
+port=3
+queue=0
+lcore=15
[tx_common]
-tx_count=2
+tx_count=4
[tx_0]
-port=1
+port=0
lcore=14
-nqueue=8
+nqueue=1
[tx_1]
-port=3
+port=1
+lcore=15
+nqueue=1
+[tx_2]
+port=2
lcore=14
-nqueue=8
+nqueue=1
+[tx_3]
+port=3
+lcore=15
+nqueue=1
[worker]
-lcore=0,1,2,3,4,5,6,7,8,9,10,11,12
+lcore=0,1,2,3,4,5,6,7,8,9,10,11,12,13
+#lcore=2
[map]
n_map=2
-map_0=1,3
-map_1=3,1
+map_0=0,0
+map_1=1,1
[watchdog]
-enable=1
+enable=0
localip=192.168.0.198
dev=eth7
threshold_bypass_lostpkt=20000
@@ -49,9 +77,14 @@ enable=1 print=1
sample_time=1
[mempool]
-mempool_buffers=4194304
+#create_method=lcore
+create_method=socket
+#mempool_buffers=524288
+#mempool_buffers=1024576
+#mempool_buffers=4194304
+#mempool_buffers=65535
#mempool_mbuf_size=
-#mempool_cache_size=4096
+#mempool_cache_size=2048
[energy]
enable=1
min_zero_pull_count=5
@@ -60,3 +93,12 @@ sleep_gear2_threshold=500 [virtaddr]
enable=1
virtaddr=0x7f40c4a00000
+[kni]
+kni=0
+[stack]
+Port2.IPv4=192.168.1.1/255.255.255.0
+Port2.MTU=2000
+Port3.IPv4=192.168.2.2/255.255.255.0
+Port3.MTU=2000
+#rewrite dst etheraddr to user-define value
+#rewrite_hwaddr=ff:ff:ff:ff:ff:ff
\ No newline at end of file |
