Commit Graph

365 Commits

Author SHA1 Message Date
renzibei 90b9053c56 Add ff_stop_run to stop the poll loop 2024-03-30 05:20:13 +00:00
fengbojiang 81b0219b09 Add an API ff_get_traffic to get traffic for QoS or other. 2023-10-20 12:15:55 +08:00
fengbojiang 19b67af558 gettimeofday automatically compatible with different glibc versions. 2023-10-19 16:48:44 +08:00
fengbojiang b61b7363d2 add net.add_addr_allfibs=1 in config.ini. 2023-09-26 11:24:22 +08:00
fengbojiang beaeed64a9 FF_FLOW_ISOLATE support DPDK-22.11. 2023-09-20 20:54:47 +08:00
fengbojiang 51c6fbd66b Modify some code of KNI support virtio_user. 2023-09-19 18:38:17 +08:00
fengbojiang ba2a7fe957 Add kni type argument in config.ini and FF_KNI_KNI in lib/Makefile to set exception path type.
FF_KNI_KNI disabled by default and then:
type 0 and 1 both use virtio_user.

If enabled FF_KNI_KNI(and you must set meson -Ddisable_libs=flow_classif to re-enable kni driver in DPDK first):
type:0 means use historical kni.
type:1 means use virtio_user(linux only), see https://doc.dpdk.org/guides/howto/virtio_user_as_exception_path.html#virtio-user-as-exception-path.
2023-09-19 18:28:57 +08:00
fengbojiang bfa9c1237f Add some comments for kni.
Some NIC drivers will crash in secondary process after config kni , Such as ENA with DPDK-21.22.3.
If you meet this crash, you can try disable the code below and return 0 directly.
Or run primary first, then config kni interface in kernel, and run secondary processes last.
2023-09-15 15:56:37 +08:00
fengbojiang e5e25e6af1 restore vEth0 to veth0 now. 2023-09-14 19:48:01 +08:00
jfb8856606 99b1fff09d f-stack lib support dpdk-22.11.3. 2023-09-13 12:23:25 +00:00
jfb8856606 fb1e8e99f8 upgrade F-STACK_VERSION to 1.24. 2023-09-13 08:40:14 +00:00
fengbojiang 5313779e2b Fix missing sizeof(). 2023-09-13 13:12:13 +08:00
fengbojiang eb5544bec0 Modify IP_TTL to type int in freebsd2linux_cmsghdr while ff_recvmsg. 2023-09-13 12:57:33 +08:00
fengbojiang 51dc2a507f Fix some issue of ff_sendmsg and ff_recvmsg. 2023-09-05 20:32:04 +08:00
fengbojiang 8bf6ef65e0 Support LINUX_IP_TRANSPARENT and LINUX_IPV6_TRANSPARENT to IP_BINDANY
and IPV6_BINDANY in lib/ff_syscall_wrapper.c.
2023-09-01 16:17:56 +08:00
fengbojiang 0a92bc396c fix some issue of ff_sendmsg and ff_recvmsg, build pass, to be tested.
Ref #768 #775.
2023-08-25 18:00:57 +08:00
fengbojiang fe40712835 Revert "fix cmsg for sendmsg". Fix #778.
This reverts commit 9582dbb778.
2023-08-11 15:13:37 +08:00
sarosh 9582dbb778 fix cmsg for sendmsg 2023-06-12 15:04:29 +05:00
fengbojiang efd35b83ad Output a extra line. 2023-03-31 10:22:19 +08:00
zhutian 5ed6baeedb fix that vtoslab doesn't return the correct slab 2023-03-03 21:01:53 +08:00
fengbojiang 8020e2669c Modify `pci_whitelist` to `allow` that from DPDK 20.11. Close #745. 2023-03-02 10:59:55 +08:00
fengbojiang 7b98ccb479 1. Set non blocking in `example/main.c`.
2. Add some description of `ff_socket()` and `ff_write()`.
3. Ref #709.
2023-02-17 19:10:41 +08:00
fengbojiang 761dee801d Add VERSION file in root dir directory and upgrade version to 1.23. 2023-02-15 19:21:58 +08:00
fengbojiang 0763cdeb7f enable -O2 by default. Ref #711 #721. 2022-12-30 19:59:23 +08:00
renzibei fb832ef92f delete useless comments in last commit 2022-12-01 22:12:33 +00:00
renzibei 7fe40f937e make it compilable under O2 optimization, pass gcc check 2022-12-01 22:02:45 +00:00
johnjiang ee9f90daf7
Merge pull request #714 from d06alexandrov/fix_makefile_ipsec
Removed deleted sources from Makefile
2022-11-29 18:52:43 +08:00
Dmitriy Alexandrov 179cc5ed39 Removed deleted sources from Makefile 2022-11-14 17:44:12 +04:00
fengbojiang 5423ff871b Fix DEPRECATED. 2022-11-12 23:51:36 +08:00
fengbojiang a329eaf2c0 vlan_strip support kni. 2022-11-12 23:35:29 +08:00
Dmitriy Alexandrov 4248f58f32 Added more clear error message in case of failed config read. 2022-10-27 12:42:25 +04:00
hao 4854315d0d Added FDIR using general flow rules.
Added FDIR functionality that does not use flow in isolation mode. This is a part of the research work at RCSLab, University of Waterloo
2022-09-15 20:56:47 -04:00
fengbojiang 0b9105dad3 F-Stack lib and docs support DPDK-21.11. 2022-09-06 12:11:17 +08:00
fengbojiang 69c1032524 Fix a typo. `ifc_name` modify to `if_name`. 2022-09-02 20:21:32 +08:00
fengbojiang f7da542ada fix some issue. 2022-09-02 19:41:14 +08:00
fengbojiang ff8fd2bdc7 Merge branch 'dev' 2022-09-02 16:51:22 +08:00
fengbojiang ae7ea12bc0 F-Stack support HPTS for rack/bbr, and rack work correctly, but bbr
still has some problems when transferring large files, and the
issue with bbr will be attempted to be resolved after FreeBSD is
upgraded to 13.1 in the next release(1.23).
2022-09-01 19:18:12 +08:00
fengbojiang 8bff657153 fix crash while set gateway6. 2022-09-01 16:33:39 +08:00
用jfb8856606 9208ea7922 Fix #679. Fix memory leak while call in_pcbfree. 2022-08-27 17:07:20 +00:00
fengbojiang 2156ba56d9 Merge branch 'master' of https://github.com/F-Stack/f-stack 2022-08-27 20:48:45 +08:00
Sarosh Arif 06447d0b38 ff_syscall_wrapper.c: in ff_recvfrom() in case of zero *fromlen, *from will not be filled with garbadge values 2022-08-23 15:46:55 +05:00
agerguo b60bfba1bb
Update ff_dpdk_if.c
bond numa
2022-08-19 14:42:19 +08:00
fengbojiang 8edd7a76c2 Add include rte_eth_bond_8023ad.h. Fix #681. 2022-07-06 15:39:40 +08:00
Lorisy 1056bf23c3 对于LACP模式下的bond功能,LACP的协商报文驱动默认加入ring队列,但是不会消费,可以使用单独的队列来做lacp的协商 2022-07-06 15:39:34 +08:00
fengbojiang 4b03900402 Add include rte_eth_bond_8023ad.h. Fix #681. 2022-07-05 14:50:22 +08:00
Lorisy f614f3053a 对于LACP模式下的bond功能,LACP的协商报文驱动默认加入ring队列,但是不会消费,可以使用单独的队列来做lacp的协商 2022-06-29 15:40:52 +08:00
johnjiang c1d64d891b Merge pull request #676 from ZZMarquis/patch-1
to avoid compiling errors when gcc version >= 10
2022-06-22 18:41:34 +08:00
johnjiang 1829b7e530 Merge pull request #669 from Jawad-Hussain-23/feature/add_dpdk_log_level_to_config_file
alows user to set dpdk log level from config.ini file.
2022-06-22 18:40:43 +08:00
ZZMarquis 6daadb0b5c to avoid compiling errors when gcc version >= 10
to avoid compiling errors when gcc version >= 10
2022-06-17 22:05:59 +08:00
Muhammad Jawad Hussain b497d0d7ac alows user to set dpdk log level from config.ini file.
Signed-off-by: Muhammad Jawad Hussain <jawad.hussain@emumba.com>
2022-06-08 12:36:38 +05:00