summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorroot <[email protected]>2014-12-30 10:54:23 +0800
committerroot <[email protected]>2014-12-30 10:54:23 +0800
commit3727452c19fdc87d534af5c4eb4efce26d935593 (patch)
tree722f62ed9b02d70021049f787268c305218fe560 /conf
G
多进程串联转发驱动程序,第一次提交: 完成了下面的功能: (1)基于DPDK的多进程串联转发 (2)支持PPPOE/VLAN (3)光保护支持 (4)自启动脚本支持
Diffstat (limited to 'conf')
-rw-r--r--conf/.gitignore8
-rw-r--r--conf/nl2fwd.conf62
2 files changed, 70 insertions, 0 deletions
diff --git a/conf/.gitignore b/conf/.gitignore
new file mode 100644
index 0000000..75fb413
--- /dev/null
+++ b/conf/.gitignore
@@ -0,0 +1,8 @@
+*.o
+*.ko
+*.swp
+*.tmp
+*.log
+tags
+.tags
+
diff --git a/conf/nl2fwd.conf b/conf/nl2fwd.conf
new file mode 100644
index 0000000..5b44d7f
--- /dev/null
+++ b/conf/nl2fwd.conf
@@ -0,0 +1,62 @@
+[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
+[rx_common]
+rx_count=2
+[rx_0]
+port=1
+queue=0
+lcore=14
+[rx_1]
+port=3
+queue=0
+lcore=14
+[tx_common]
+tx_count=2
+[tx_0]
+port=1
+lcore=14
+nqueue=8
+[tx_1]
+port=3
+lcore=14
+nqueue=8
+[worker]
+lcore=0,1,2,3,4,5,6,7,8,9,10,11,12
+[map]
+n_map=2
+map_0=1,3
+map_1=3,1
+[watchdog]
+enable=1
+localip=192.168.0.198
+dev=eth7
+threshold_bypass_lostpkt=20000
+threshold_alert_lostpkt=10000
+threshold_bypass_do=10
+threshold_alert_do=10
+threshold_normal_do=10
+[stat]
+enable=1
+print=1
+sample_time=1
+[mempool]
+mempool_buffers=4194304
+#mempool_mbuf_size=
+#mempool_cache_size=4096
+[energy]
+enable=1
+min_zero_pull_count=5
+sleep_gear1_threshold=50
+sleep_gear2_threshold=500
+[virtaddr]
+enable=1
+virtaddr=0x7f40c4a00000