修复接入多台tfe时的bug

* 修复keepalive_replay_switch关闭仍然加入hash表的bug
   * 修复多台tfe时获得tfe_id不正确的问题
   * 修改tfe_mgr的线程模型,改成accept之后创建新线程
   * tfe配置中增加enabled字段
This commit is contained in:
崔一鸣
2019-06-19 12:23:28 +08:00
parent 08c5a43054
commit 455612fd03
4 changed files with 394 additions and 273 deletions

View File

@@ -1,7 +1,7 @@
[global]
log_path = ./log/kni/kni.log
log_level = 10
tfe_count = 1
tfe_node_count = 1
local_eth = enp8s0
tfe_data_recv_thread_num = 8
#keepalive_replay: window update replay
@@ -27,22 +27,22 @@ dev_vxlan_symbol = vxlan_user
src_mac_addr = 00:0e:c6:d6:72:c1
[tfe0]
enabled = 1
mac_addr = fe:65:b7:03:50:bd
dev_eth_symbol = ens1f5
ip_addr =
keepalive_listen_port = 2476
[tfe1]
enabled = 1
mac_addr = fe:65:b7:03:50:bd
dev_eth_symbol = eth8
ip_addr =
keepalive_listen_port = 2477
[tfe2]
enabled = 1
mac_addr = fe:65:b7:03:50:bd
dev_eth_symbol = eth9
ip_addr =
keepalive_listen_port = 2478
[field_stat]
stat_path = ./fs2_kni.status
@@ -85,4 +85,5 @@ keepalive_switch = 1
keepalive_idle = 2
keepalive_intvl = 1
keepalive_cnt = 3
keepalive_listen_eth =
keepalive_listen_eth =
keepalive_listen_port = 2476