chenwei
b60bba339e
API : ff_sendmsg, use transient variables to avoid polluting user's data.
2018-02-02 17:58:17 +08:00
chenwei
6c629acab4
API : ff_sendmsg, use transient variables to avoid polluting user's data.
2018-02-02 17:58:17 +08:00
chenwei
26fa2bc45b
API : fix bug of ff_sendmsg and ff_recvmsg
...
freebsd and linux have a different "struct sockaddr".
In ff_recvmsg and ff_recvmsg, ```msg->msg_name```,which can refer to address, can be expected to be converted .
2018-02-02 15:28:58 +08:00
chenwei
d8829f7e5a
API : fix bug of ff_sendmsg and ff_recvmsg
...
freebsd and linux have a different "struct sockaddr".
In ff_recvmsg and ff_recvmsg, ```msg->msg_name```,which can refer to address, can be expected to be converted .
2018-02-02 15:28:58 +08:00
chenwei
4e5f8d85e1
Nginx : replace macro with inline function to implement ```ngx_ff_skip_listening_socket```
2018-02-01 16:30:46 +08:00
chenwei
d65c1f94b4
Nginx : replace macro with inline function to implement ```ngx_ff_skip_listening_socket```
2018-02-01 16:30:46 +08:00
chenwei
ab555adef4
Nginx: hijack `recvmsg`.
...
Since Nginx calls `recvmsg` in stream with udp, we must
hijack this function, so that the network IO can pass through
f-stack.
2018-01-31 13:47:44 +08:00
chenwei
19acab5d5f
Nginx: hijack `recvmsg`.
...
Since Nginx calls `recvmsg` in stream with udp, we must
hijack this function, so that the network IO can pass through
f-stack.
2018-01-31 13:47:44 +08:00
chenwei
f6a681c496
Nginx : ngx_configure_listening_sockets
...
1. Nginx based on fstack delays setting up server on fstack until ngx_worker_process_init. ngx_configure_listening_sockets should as well.
2. FStack does not support IP_PKTINFO
2018-01-31 13:37:58 +08:00
chenwei
c41d837fae
Nginx : ngx_configure_listening_sockets
...
1. Nginx based on fstack delays setting up server on fstack until ngx_worker_process_init. ngx_configure_listening_sockets should as well.
2. FStack does not support IP_PKTINFO
2018-01-31 13:37:58 +08:00
logwang
6adaac3368
Merge pull request #158 from chadwill/master
...
Nginx : Fix Compile error with `--with-stream`
2018-01-31 12:45:26 +08:00
logwang
94e48a9b34
Merge pull request #158 from chadwill/master
...
Nginx : Fix Compile error with `--with-stream`
2018-01-31 12:45:26 +08:00
chenwei
0a6b81772e
Nginx : Fix Compile error
...
Fix compile error when configure nginx with --with-stream
2018-01-31 09:02:25 +08:00
chenwei
8c19c41dfc
Nginx : Fix Compile error
...
Fix compile error when configure nginx with --with-stream
2018-01-31 09:02:25 +08:00
logwang
cc7be195f4
Merge pull request #156 from chadwill/patch-1
...
Update F-Stack_Nginx_APP_Guide.md
2018-01-29 19:01:26 +08:00
logwang
13270ed0ec
Merge pull request #156 from chadwill/patch-1
...
Update F-Stack_Nginx_APP_Guide.md
2018-01-29 19:01:26 +08:00
logwang
17140315e7
Merge pull request #151 from chadwill/master
...
Nginx : Get rid of "ff_host" thread
2018-01-29 19:01:11 +08:00
logwang
676ac0fa5b
Merge pull request #151 from chadwill/master
...
Nginx : Get rid of "ff_host" thread
2018-01-29 19:01:11 +08:00
chenwei
dcfbe1ad39
Nginx: Restore ngx_get_connection and ngx_free_connection
...
The code that we used to preserve ngx_get_connection and ngx_free_connection thread safety , is not necessary now.
2018-01-29 16:41:35 +08:00
chenwei
fc3a7422fa
Nginx: Restore ngx_get_connection and ngx_free_connection
...
The code that we used to preserve ngx_get_connection and ngx_free_connection thread safety , is not necessary now.
2018-01-29 16:41:35 +08:00
陈威
bb4234c89c
Update F-Stack_Nginx_APP_Guide.md
...
Add description of directive ```kernel_network_stack```.
2018-01-26 21:44:05 +08:00
陈威
8461d8a70b
Update F-Stack_Nginx_APP_Guide.md
...
Add description of directive ```kernel_network_stack```.
2018-01-26 21:44:05 +08:00
陈威
d918f1d3ae
Update F-Stack_Nginx_APP_Guide.md
...
Handle fstack in nginx ```work process cycle```. Refer to #151 .
2018-01-26 17:44:47 +08:00
陈威
684588066b
Update F-Stack_Nginx_APP_Guide.md
...
Handle fstack in nginx ```work process cycle```. Refer to #151 .
2018-01-26 17:44:47 +08:00
陈威
6484644fe3
Nginx: Cut out code about poll-kernel frequency
...
Cut out unreasonable code about poll-kernel frequency
2018-01-26 17:14:13 +08:00
陈威
5eaa396dce
Nginx: Cut out code about poll-kernel frequency
...
Cut out unreasonable code about poll-kernel frequency
2018-01-26 17:14:13 +08:00
logwang
9f78ac569c
ff_kern_timeout: optimize the timecounter.
...
This timecounter implementation retrieves the current time and reports it
as the equivalent number of counts from a counter incrementing at 'hz'.
2018-01-19 21:03:20 +08:00
logwang
39be5a505f
ff_kern_timeout: optimize the timecounter.
...
This timecounter implementation retrieves the current time and reports it
as the equivalent number of counts from a counter incrementing at 'hz'.
2018-01-19 21:03:20 +08:00
logwang
54e1dbca13
FreeBSD: initialize `mp_ncpus`.
...
Fix crash when executing `./sysctl -w kern.callout_stat=1`.
2018-01-18 21:08:22 +08:00
logwang
e272b945ad
FreeBSD: initialize `mp_ncpus`.
...
Fix crash when executing `./sysctl -w kern.callout_stat=1`.
2018-01-18 21:08:22 +08:00
陈威
67b8d9710a
Nginx: Restore unexpected Comment
2018-01-17 17:33:01 -06:00
陈威
3fc9d4594d
Nginx: Restore unexpected Comment
2018-01-17 17:33:01 -06:00
chenwei
f4c5cf3972
Nginx : Get rid of "ff_host" thread, so single thread is used for both fstack and kernel.
2018-01-17 17:51:08 +08:00
chenwei
57f062150d
Nginx : Get rid of "ff_host" thread, so single thread is used for both fstack and kernel.
2018-01-17 17:51:08 +08:00
logwang
e340d433ea
Nginx: fix crash when server configuration item [`kernel_network_stack`] is on and uses `proxy_pass`.
...
When nginx is configured like this:
```
server {
listen 8000;
kernel_network_stack on;
location / {
proxy_pass http://127.0.0.1:8080/ ;
}
}
```
nginx will crash, becasue kernel network stack is handled in a single thread, but we have hijacked all the socket apis, it causes that all apis enter to f-stack's path which is in main thread.
2018-01-11 18:20:41 +08:00
logwang
a20feca0fb
Nginx: fix crash when server configuration item [`kernel_network_stack`] is on and uses `proxy_pass`.
...
When nginx is configured like this:
```
server {
listen 8000;
kernel_network_stack on;
location / {
proxy_pass http://127.0.0.1:8080/ ;
}
}
```
nginx will crash, becasue kernel network stack is handled in a single thread, but we have hijacked all the socket apis, it causes that all apis enter to f-stack's path which is in main thread.
2018-01-11 18:20:41 +08:00
logwang
e9cbb9895c
Ipfw: fix "invalid argument" when using `divert`.
...
Note that this only fix the error, `divert` is still not usable, refer to #136 .
If you want to use NAT, you can just use the built-in `ipfw nat`
instead.
2018-01-08 21:53:39 +08:00
logwang
62a0d71654
Ipfw: fix "invalid argument" when using `divert`.
...
Note that this only fix the error, `divert` is still not usable, refer to #136 .
If you want to use NAT, you can just use the built-in `ipfw nat`
instead.
2018-01-08 21:53:39 +08:00
logwang
73ef8c4ddb
Merge pull request #138 from shivansh/fix/build_kernel-4.12
...
DPDK: Fix build with kernel 4.12
2018-01-05 14:47:47 +08:00
logwang
58b4906b20
Merge pull request #138 from shivansh/fix/build_kernel-4.12
...
DPDK: Fix build with kernel 4.12
2018-01-05 14:47:47 +08:00
Shivansh Rai
0d76c9d0a5
Fix build with kernel 4.12
...
Corresponding upstream patches -
* http://dpdk.org/dev/patchwork/patch/24076/
* http://dpdk.org/dev/patchwork/patch/22003/
Tested on "4.12.4-custom".
2018-01-05 11:32:34 +05:30
Shivansh Rai
45438af0a6
Fix build with kernel 4.12
...
Corresponding upstream patches -
* http://dpdk.org/dev/patchwork/patch/24076/
* http://dpdk.org/dev/patchwork/patch/22003/
Tested on "4.12.4-custom".
2018-01-05 11:32:34 +05:30
logwang
403263ffc6
Merge pull request #134 from shivansh/fix/tautological_compare
...
Fix tautological comparison
2018-01-03 14:56:07 +08:00
logwang
909e1fd62d
Merge pull request #134 from shivansh/fix/tautological_compare
...
Fix tautological comparison
2018-01-03 14:56:07 +08:00
Shivansh Rai
d7c22d3751
Fix tautological comparison
...
Corresponding upstream changeset: https://github.com/freebsd/freebsd/commit/d45a807e
2018-01-02 23:11:52 +05:30
Shivansh Rai
4f4a430529
Fix tautological comparison
...
Corresponding upstream changeset: https://github.com/freebsd/freebsd/commit/d45a807e
2018-01-02 23:11:52 +05:30
logwang
b844e8f80a
Misc: add "extern C" in public header files.
2018-01-02 18:22:40 +08:00
logwang
7f4229ea8b
Misc: add "extern C" in public header files.
2018-01-02 18:22:40 +08:00
logwang
23742d21d9
Remove the unusable api `ff_socketpair`.
...
Since F-Stack doesn't support AF_UNIX. ff_socketpair couldn't work and
should be removed.
2017-12-27 14:59:15 +08:00
logwang
8740605f9d
Remove the unusable api `ff_socketpair`.
...
Since F-Stack doesn't support AF_UNIX. ff_socketpair couldn't work and
should be removed.
2017-12-27 14:59:15 +08:00