fengbojiang
a2cb0198e1
Ignore a compilation warning of drivers mlx5.
...
dlsym(if_indextoname) conversion of 'void *' pointer to function pointer type.
2024-10-17 19:17:32 +08:00
fengbojiang
75ca4dc6e5
kni_net.c compatible with -Wstringop-overflow with different gcc versions.
2024-10-17 19:15:13 +08:00
dependabot[bot]
afcab23454
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-10-17 19:10:52 +08:00
fengbojiang
828eb5a6b9
Sync DPDK's modifies.
...
1. igb_uio.
2. mlx5 drivers.
3. i40e drivers.
4. Freebsd-13.1.
2024-10-17 18:55:42 +08:00
jfb8856606
f27ff49313
DPDK: Upgrade to 22.11.6.
2024-10-17 10:26:34 +00:00
fengbojiang
1152067e93
The msghdr.msg_iov->iov_base and msghdr.msg_iov->iov_len of ff_sendmsg() and ff_recvmsg() compatible with the Linux.
...
Note: linux2freebsd_msghdr and freebsd2linux_msghdr must be called in sequence and in pairs.
2024-10-17 16:29:08 +08:00
fengbojiang
615b66a344
Modif some format.
2024-10-17 16:23:14 +08:00
fengbojiang
f069dcdcb7
Support KNI ratelimit.
2024-10-17 16:12:43 +08:00
fengbojiang
5c144b199a
Use soclose() instead of sofree() when initializing the configuration stack IP.
2024-10-17 15:19:13 +08:00
fengbojiang
f95b80ee63
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-10-17 15:01:51 +08:00
fengbojiang
0dc9cb4bbd
Add APi `ff_dpdk_raw_packet_send` to suppoort RAW packet send direty with DPDK by user APP not via socket.
2024-10-15 15:22:45 +08:00
fengbojiang
f4e3243725
Modify IPv4 vip addrs' broadaddr from `x.x.x.255` to `x.x.x.x`, same as
...
vip addr, because vips' netmask only support `255.255.255.255` now.
2024-10-15 15:18:42 +08:00
fengbojiang
1023238cee
IPv6 addr and vaddr set autoconf by default.
2024-10-15 15:14:06 +08:00
fengbojiang
238513c034
modify INI_MAX_LINE from 200 to 2048 in lib/ff_ini_parser.h.
2024-10-15 15:11:37 +08:00
fengbojiang
9fd8e44b49
modify ff_port_cfg.port_id's type from uint8_t to unint16_t.
2024-10-15 15:00:16 +08:00
fengbojiang
783fc174b2
Nginx's stream support transparent.
...
Also support kernel network stack while set
`proxy_kernel_network_stack on`.
2024-10-15 14:49:21 +08:00
fengbojiang
da5549fcf6
Fix a typo in doc/F-Stack_Nginx_APP_Guide.md: "kernel_network_stack" -> "proxy_kernel_network_stack".
2024-10-15 14:48:49 +08:00
Björn Svensson
c4dfb94e98
Use GNUC atomics from GCC 4.9
...
GCC began to offer full support for the C11 standard starting with version 4.9,
including support for the _Atomic keyword.
https://gcc.gnu.org/gcc-4.9/changes.html
2024-10-15 12:04:54 +08:00
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