Skip to content

Commit d437de9

Browse files
committed
set default config
1 parent 860d94f commit d437de9

File tree

6 files changed

+45
-432
lines changed

6 files changed

+45
-432
lines changed

uinet/config.ini

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,12 @@
1-
[dpdk]
2-
# Hexadecimal bitmask of cores to run on.
3-
lcore_mask=1
4-
5-
# Number of memory channels.
6-
channel=4
7-
8-
# Specify base virtual address to map.
9-
#base_virtaddr=0x7f0000000000
10-
11-
# Promiscuous mode of nic, defualt: enabled.
12-
promiscuous=1
13-
numa_on=1
14-
15-
# TCP segment offload, default: disabled.
16-
tso=0
17-
18-
# HW vlan strip, default: enabled.
19-
vlan_strip=1
20-
21-
# sleep when no pkts incomming
22-
# unit: microseconds
23-
idle_sleep=100
24-
25-
# enabled port list
26-
#
27-
# EBNF grammar:
28-
#
29-
# exp ::= num_list {"," num_list}
30-
# num_list ::= <num> | <range>
31-
# range ::= <num>"-"<num>
32-
# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
33-
#
34-
# examples
35-
# 0-3 ports 0, 1,2,3 are enabled
36-
# 1-3,4,7 ports 1,2,3,4,7 are enabled
37-
port_list=0
38-
391
# Port config section
40-
# Correspond to dpdk.port_list's index: port0, port1...
2+
# Correspond to port_list's index: port0, port1...
413
[port0]
424
addr=192.168.63.139
435
netmask=255.255.255.0
446
broadcast=192.168.63.255
457
gateway=192.168.63.2
468
mac=00:11:22:33:44:55
479

48-
# lcore list used to handle this port
49-
# the format is same as port_list
50-
# lcore_list= 0
51-
52-
# Packet capture path, this will hurt performance
53-
#pcap=./a.pcap
54-
55-
# Kni config: if enabled and method=reject,
56-
# all packets that do not belong to the following tcp_port and udp_port
57-
# will transmit to kernel; if method=accept, all packets that belong to
58-
# the following tcp_port and udp_port will transmit to kernel.
59-
[kni]
60-
enable=1
61-
method=reject
62-
# The format is same as port_list
63-
tcp_port=80,443
64-
udp_port=53
65-
6610
# FreeBSD network performance tuning configurations.
6711
# Most native FreeBSD configurations are supported.
6812
[freebsd.boot]

uinet/lib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ FF_HOST_SRCS+= \
8282
ff_config.c \
8383
ff_ini_parser.c \
8484
ff_dpdk_if.c \
85-
ff_dpdk_pcap.c \
8685
ff_epoll.c \
8786
ff_init.c \
8887
packet_process.c

0 commit comments

Comments
 (0)