Commit Graph

11 Commits

Author SHA1 Message Date
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
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 da4b496cab Netgraph and ipfw for FreeBSD 13.0. 2021-10-12 18:59:42 +08:00
fengbojiang 8fe2bf87f3 FreeBSD13 can simply work. 2021-09-18 14:50:06 +08:00
fengbojiang 63f0426fdf fix some issues. 2021-09-16 15:30:22 +08:00
fengbojiang e7b7fb6cc9 FreeBSD: Upgrade to FreeBSD-releng-13.0 compiled, to be tested. 2021-08-31 19:00:09 +08:00
fengbojiang(姜凤波) d53a2d2032 FreeBSD: upgrad to FreeBSD-releng-11.0 for some bugs. 2019-11-20 20:41:29 +08:00
logwang 5e5c25c329 kern_timeout: decrease the cpu usage of timer.
There's a bug of last version, every tick, the timer will traverse all the
entries in callwheel, when lots of connections comming, the callout
process will use lots of cpu resources.

This commit fixes it, every tick, check the bucket which is hashed with current
tick, if there are entries, compare the callout tick, and invoke
callbacks.
2018-05-10 17:53:18 +08:00
Andy 08dba0109c add lvs toa option 2017-09-04 23:19:12 -04:00
logwang a9643ea85c init 2017-04-21 18:43:26 +08:00