Commit Graph

1177 Commits

Author SHA1 Message Date
Björn Svensson 486200e57f Fix issue in Freebsd when building with GCC 14.1.0
Since GCC 14 now implements `__has_extension()` the build started to use
Clang atomics, i.e. the `__c11_*` APIs only provided by Clang.

Fix build to use GNUC atomics and include the upstream patch:
  https://reviews.freebsd.org/D16585
which enables C11 atomics when building with GCC >= 4.7.
2024-10-15 11:53:03 +08:00
johnjiang 30c7c4a391
Merge pull request #843 from tarasko/bugfix/fix_netstat_compilation_on_linux
Fix netstat tool compilation on linux. Support `mawk` of ubuntu.
2024-10-14 19:57:12 +08:00
fengbojiang 8a66430fa8 Fix ff tools error, compatible with -Wstringop-overflow with different gcc versions. 2024-10-14 19:29:31 +08:00
johnjiang 50188e997c
Merge pull request #845 from wenddak1ng/pthread_fix
fix pthread issue
2024-10-12 21:15:48 +08:00
fengbojiang 473c99d77e Fix ff tools build error with gcc-13.2.0. 2024-10-12 21:09:39 +08:00
fengbojiang 38d9fdee68 Fix a build error with gcc-13.2.0. 2024-10-12 20:23:04 +08:00
fengbojiang 7987a25bb9 Fix a build error with gcc-4.8.5. 2024-10-11 19:32:10 +08:00
Vitaly Pavlov 0d9c205610 fix pthread issue 2024-10-11 00:31:49 +00:00
taras 9bd26818ab Fix spaces 2024-09-28 00:31:34 +02:00
taras 234ea262a5 Fix netstat tool compilation on linux 2024-09-28 00:24:35 +02:00
johnjiang 30867396f2
Merge pull request #835 from RaduNichita/pthread
Add POSIX Like functions for pthread_create and pthread_join
2024-08-27 16:19:02 +08:00
johnjiang 4cfc2ccf48
Merge pull request #831 from zhaozihanzzh/dev-ldpreload-fix-close
Close kernel epoll fd in ff_hook_close when using FF_KERNEL_EVENT
2024-08-27 16:16:01 +08:00
Radu Nichita 6166910faa Add POSIX Like functions for pthread_create and pthread_join 2024-08-14 10:17:35 +02:00
zhaozihanzzh 8d5557ef7d Close kernel epoll fd in ff_hook_close when using FF_KERNEL_EVENT
This commit fixes kernel fd leakage when using epoll in FF_KERNEL_EVENT.
2024-07-16 21:45:54 +08:00
johnjiang 4bac6dea1e
Merge pull request #827 from zhujikuan/dev
Update F-Stack_Quick_Start_Guide.md
2024-07-02 12:53:53 +08:00
万能的翔王大人 057b2f948f
Update F-Stack_Quick_Start_Guide.md 2024-06-26 18:55:02 +08:00
fengbojiang 20b4f90cdb update email. 2024-06-20 16:49:11 +08:00
johnjiang 66e6dbba2a
Merge pull request #823 from wenchengji159357/dev
Dev
2024-05-31 12:22:47 +08:00
wenchengji 306b685796
Update kern_event.c
modify gcc build error
2024-05-30 23:37:56 +08:00
wenchengji 89ec8d70e5
Merge branch 'F-Stack:dev' into dev 2024-05-28 22:54:01 +08:00
fengbojiang a79fa9c53d Update ff tools README.md, use `ff_netstat -rnW` to display wider device name. 2024-05-24 15:42:11 +08:00
wenchengji 880fddc324
Update kern_event.c
Change the code style guide.
2024-05-23 23:03:49 +08:00
wenchengji 3a242c1379 For f-stack to support QAT accelerator cards. 2024-05-23 14:52:25 +00:00
johnjiang a4a53bacfc
Merge pull request #814 from zhaozihanzzh/dev-ldpreload
Fix cplen calculation error in ff_hook_getsockname
2024-04-19 15:00:10 +08:00
zhaozihanzzh d0c4ca97ea Fix cplen calculation errors in ff_hook_syscall.c
This commit also modifies the style of the previous fix to be in tune with the original ff_hook_accept.
2024-04-18 22:58:58 +08:00
johnjiang e0973d75fb
Merge pull request #813 from Jamlee/patch-1
chore: update freebsd version in readme
2024-04-18 20:34:37 +08:00
johnjiang 5d56188040
Merge pull request #812 from renzibei/dev
Add ff_stop_run to stop the poll loop
2024-04-18 20:33:32 +08:00
zhaozihanzzh 99065f0781 Fix cplen calculation 2024-04-10 21:50:34 +08:00
JamLee 81e4e380bf
chore: update freebsd version in readme
the currently ported version of freebsd is 13.0, not 11.0.
2024-04-04 03:58:42 +08:00
renzibei 90b9053c56 Add ff_stop_run to stop the poll loop 2024-03-30 05:20:13 +00:00
johnjiang 8b0b62dd23
Merge pull request #806 from F-Stack/dependabot/pip/dpdk/dts/black-24.3.0
Bump black from 22.10.0 to 24.3.0 in /dpdk/dts
2024-03-22 12:02:14 +08:00
dependabot[bot] fdb01bf72e
Bump black from 22.10.0 to 24.3.0 in /dpdk/dts
Bumps [black](https://github.com/psf/black) from 22.10.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.10.0...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 16:39:29 +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 993b574472 Modify nginx-1.16.1 to nginx-1.25.2 in docs.
Remove doc/F-Stack_Binary_Release_Quick_Start.md.
2023-10-19 16:02:50 +08:00
fengbojiang 5de047f19a Fiexd some build errors of freebsd with gcc-12.2.0. 2023-10-19 15:57:24 +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 a4834761df Ignore a compilation warning of drivers mlx5.
dlsym(if_indextoname) conversion of 'void *' pointer to function pointer type.
2023-09-18 17:38:55 +08:00
fengbojiang c408ecc698 Sync DPDK's modifies.
1. igb_uio.
    2. mlx5 drivers.
    3. i40e drivers.
    4. Freebsd-13.1.
2023-09-15 18:40:55 +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 8e683b405b Add atomic_fcmpset_int32 and some comments.
Because `atomic_fcmpset_int` maybe run not correctly sometimes, and then loop long time, But no reason found yet.
2023-09-15 15:19:08 +08:00
fengbojiang e5e25e6af1 restore vEth0 to veth0 now. 2023-09-14 19:48:01 +08:00
jfb8856606 ab34b0cee4 modify doc that re-enable kni now, to remove kni later. 2023-09-13 12:29:02 +00:00
jfb8856606 99b1fff09d f-stack lib support dpdk-22.11.3. 2023-09-13 12:23:25 +00:00
jfb8856606 badf629eb9 DPDK: Upgrade to 22.11.3. 2023-09-13 12:21:49 +00:00
jfb8856606 e5ed9b43c8 upgrade version to 1.24 in VERSION file. 2023-09-13 11:48:51 +00:00
jfb8856606 fb1e8e99f8 upgrade F-STACK_VERSION to 1.24. 2023-09-13 08:40:14 +00:00