Commit Graph

38 Commits

Author SHA1 Message Date
fengbojiang 584cb6dfc9 KNI ratelimit set 0 means disable ratalimit, and default modify to 0. 2024-10-11 11:19:02 +08:00
fengbojiang 65299c5f75 Support KNI ratelimit.
KNI ratelimit default value.
The total speed limit for a single process entering the kni ring is 10,000 QPS,
1000 QPS for general packets, 9000 QPS for console packets (ospf/arp, etc.)
The total speed limit for kni forwarding to the kernel is 20,000 QPS.
2024-10-10 17:48:40 +08:00
fengbojiang a31cb17ac8 Support automatic configuration of vlan and vlan ip, routing and the simplest policy routing
1. Automatic configuration of multi vlan vip(IPv4 and IPv6).
	1.1 And support automatic multi default route for per vlan, via different fib num.
	1.2 IPv6 not support set multi route fib now, just use RT_DEFAULT_FIB, And you can set multi fib use tool 'ff_route'.
	1.3 If vlan_flag is true, all port's addrs/vips will not to set, just create the iface.
2. Automatic configuration of simple policy routing.
	2.1 Only supports the simplest policy routing settings, like:
		`ff_ipfw -P 0 add 100 setfib 0 ip from 125.94.59.0/24 to any out`
		`from 125.94.59.0/24` need set addr is '125.94.59.0', netmask is '255.255.255.0'
	2.2 IPv6 does not support automatic configuration of policy routing. If ipv6 policy routing is required, you still need to use ff_ipfw to manually configure it.
2024-09-06 20:20:44 +08:00
fengbojiang 2b8b0936db Add vlan_filter argument in config.ini for RSS with vlan.
Set Rx VLAN filter, and then the dirvier(such as MLX5) will set
FLOW RSS to enable L3/L4 RSS below vlan hdr.
This action won't need after DPDK-20.11.
2023-09-26 15:31:56 +08:00
fengbojiang d1b5277cc0 Fix a typo of netmask in config.ini. 2022-04-08 14:54:34 +08:00
fengbojiang 0b7ce76652 Enable net.inet.tcp.delayed_ack by default to improve concurrent performance. 2022-04-08 14:52:25 +08:00
zengyi1001 0f2a196b68 Add IPv6 net addr parameters in config
Co-authored-by: fengbojiang <fengbojiang@tencent.com>
2021-03-06 19:04:46 +08:00
fengbojiang f41205e9f3 Add configuration options `symmetric_rss` to set whether to use symmetric RSS. 2020-08-30 00:55:08 +08:00
jinhao2 4dfcdbcc8d update indent size 2020-01-08 21:13:12 +08:00
jin.hao1 16caa0bf6b
update config.ini 2020-01-07 21:07:57 +08:00
jinhao2 64a2908183 update config.ini 2020-01-08 20:38:15 +08:00
fengbojiang(姜凤波) 156135da39 Add `net.inet.ip.forwarding=0` in `config.ini`, defalut disable. 2019-12-11 20:23:47 +08:00
Jayath Sathyanarayana 3a3642c7f7 Merge patch of Configuration param to skip "TX checksum offload", refer #448. 2019-11-04 13:10:27 +08:00
fengbojiang(姜凤波) d0f17d5b35 Fix a typo. 2019-09-04 21:56:15 +08:00
fengbojiang(姜凤波) c0f666848d Bonding: supported. but it can't work in multi-processes, to be fix. 2019-09-04 21:17:10 +08:00
fengbojiang aa174b6e9a IPv6: disable `net.inet.tcp.nolocaltimewait` in `config.ini` by default.
If enable it, and F-Stack app use `ff_close` to close the connection first while the IPv6 client and sever ips in the same prefix scope, the F-Stack app will not respond the last_ack while receiced `fin+ack` package.
2019-08-11 18:28:07 +08:00
fengbojiang(姜凤波) d7140ab746 IPv6: FreeBSD stack and f-stack support ipv6. 2019-07-12 20:56:01 +08:00
fengbojiang(姜凤波) 59bb71f60e Add pkt_tx_delay parameter in config.ini.
It should be default while handling large concurrent requests, otherwise
it will reduce the throughput.
But if there are only a little, you can set it to less than 100, even to
0, to reduce the delay of the connection.
2019-06-27 17:44:19 +08:00
jfb8856606 ac6d8f46a6 add `carrier=on` while insmod rte_kni.ko in doc. 2019-06-26 18:37:55 +08:00
jfb8856606 1646932aaf DPDK:upgrade to 18.11.2 (LTS) 2019-06-26 18:17:41 +08:00
fengbojiang a3bbaff58f CONTAINER(DOCKER): support aggregation model while running in container with OVS-DPDK, refer to #298. 2018-11-27 02:02:38 +08:00
johnjiang f6e5885fc4 Update config.ini
Modify "idle_sleep" default value to 0.
2018-11-20 16:24:16 +08:00
fengbojiang 81bb5483fe Modify config.ini 2018-11-13 22:11:05 +08:00
fengbojiang 412fc42f8b Merge branch 'master' of https://github.com/F-Stack/f-stack 2018-11-13 22:04:23 +08:00
fengbojiang 79f0ade329 Sync to github 2018-11-13 21:54:13 +08:00
root 5523938c5b add `base_virtaddr` config. 2018-08-20 16:44:33 +08:00
fengbojiang c506e4369e add "idle_sleep" to reduce CPU usage when no pkts incomming. 2018-08-18 01:45:11 +08:00
logwang bb6ad8038f Set the default configuration `kern.ncallout`(number of entries in
callwheel and size of timeout() preallocation).
2018-03-01 16:07:35 +08:00
logwang ffdb15be57 Configuration: optimize the description. 2017-12-01 16:53:57 +08:00
logwang c855fce65e Configuration: set net.link.ether.inet.maxhold(number of packets to hold per ARP entry) to 5.
Since maxhold's default value is 1, it may not be enough for some
applicatins, so increase it to the value of
net.link.ether.inet.maxtries(ARP resolution attempts before returning
error).
2017-11-08 17:49:51 +08:00
logwang 8755b2de54 Fix bug: freebsd sysctl config not work. 2017-09-21 15:03:05 +08:00
YuYang 80a6164c5c multiple NIC support
In current implementation, cores and ports are one to one mapped, this
PR allowed user to specify the core list used to handle single port. for
example cores 1,2,3 handle port 0 and cores 4,5,6 handle port 1.

- Add `port_list` config to dpdk section (used to specify the enabled port list)

- Add `lcore_list` config to port section(used to specify the core list mapped to that port)

- Delete `nb_ports` config in dpdk section

- Delete `port_mask` config in dpdk section
2017-09-21 12:33:25 +08:00
logwang 30a6a05765 Update Launch_F-Stack_on_AWS_EC2_in_one_minute. 2017-09-04 16:31:41 +08:00
logwang 64abcf71e3 Add configuration item: vlan_strip 2017-08-09 16:52:16 +08:00
logwang a02c88d651 Simplify startup arguments and add ff_fdisused.
Changes:
1.Simplify f-stack startup arguments:"--conf, --proc-type, --proc-id".
2.add a function `ff_fdisused` to check if fd is used in f-stack.
2017-08-08 22:36:49 +08:00
logwang 213fa7b358 Support RX/TX offload according to HW's capability
RX: VLAN strip, CRC strip, IP/TCP/UDP checksum.
TX: IP/TCP/UDP checksum, TSO.

Note that TSO has a problem: when enable TSO,
F-Stack is much slower(Temporarily not resolved).
So TSO is disabled by default.
Edit config.ini to enable it.
2017-05-06 21:52:25 +08:00
logwang 627097dc92 Support VLAN Strip.
In some cases such as AWS EC2, we must strip vlan tag.
Edit the config.ini, set port.vlanstrip = 1.
2017-05-02 18:03:38 +08:00
logwang a9643ea85c init 2017-04-21 18:43:26 +08:00