Commit Graph

636 Commits (4b05018ffe82e49a15dba9417e3dd5a04bb6c9ff)

Author SHA1 Message Date
johnjiang 22efc75818 Update README.md 2017-08-09 17:41:58 +08:00
logwang 64abcf71e3 Add configuration item: vlan_strip 2017-08-09 16:52:16 +08:00
logwang 5825eee0c3 Optimize ngx_ff_module 2017-08-09 14:50:21 +08:00
logwang 615f2d3c02 Fix `ff_fdused_range` not work. 2017-08-08 23:47:38 +08:00
logwang a02c88d651 Simplify startup arguments and add ff_fdisused.
Changes:
1.Simplify f-stack startup arguments:"--conf, --proc-type, --proc-id".
2.add a function `ff_fdisused` to check if fd is used in f-stack.
2017-08-08 22:36:49 +08:00
johnjiang a090190f3c Update Launch_F-Stack_on_AWS_EC2_in_one_minute.md 2017-08-07 10:49:11 +08:00
johnjiang a8f819cc8a Merge pull request #52 from pkking/master
fix a typo
2017-08-07 10:40:20 +08:00
Li Chaoran cf42840965 fix a typo 2017-08-05 12:05:51 +08:00
logwang 7e048838a7 Add API: ff_gettimeofday.
Since f-stack run with polling mode, nginx will call gettimeofday every loop, and cost a lot.
With this commit, f-stack will update current timespec periodically in
ff_hardclock_job. And ff_gettimeofday will get this value.
In nginx, hijack gettimeofday to call ff_gettimeofday.
2017-08-04 18:04:43 +08:00
logwang 3cbf1fd344 Merge branch 'master' of https://github.com/F-Stack/f-stack 2017-08-04 11:43:25 +08:00
logwang a43cdca49a Fix #51: nginx readv errors.
When use nginx as a proxy, nginx error logs always print 'readv() failed
(9: Bad file descriptor) while reading upstream'.
In previous commit: 10c5711ed2, i removed
`readv`, caused this issue.
2017-08-04 11:24:40 +08:00
johnjiang 90a6589cca close ASLR 2017-08-03 16:06:25 +08:00
fengbojiang(姜凤波) 7544d3aff0 add test environment description 2017-07-25 18:06:31 +08:00
johnjiang 1ce9d61a4e Update Launch_F-Stack_on_AWS_EC2_in_one_minute.md 2017-07-11 11:36:28 +08:00
logwang c8722d26ac Fix KNI out of memory: a typo leads rte_mbuf leak. 2017-07-04 11:47:44 +08:00
logwang 408caf3346 Related #42: add a license for anet_ff.c. 2017-06-30 16:43:02 +08:00
logwang 5efe15ae45 Fix #42: add a license for ngx_ff_module.c.
Since ngx_ff_module.c was derived from nginx_ofp's ngx_ofp_module.c, but
according to #42, nginx_ofp's ngx_ofp_module.c may be derived from
opendp/dpdk-nginx's ans_module.c and nginx_ofp didn't have a license, so
add opendp/dpdk-nginx's license.
2017-06-29 12:56:18 +08:00
logwang 6b26207ec3 Nginx auto/make compatible with /bin/sh 2017-06-20 11:19:01 +08:00
logwang 10c5711ed2 Fix #38: nginx crash on Suse12.
The newer version of libcrypto will invoke read and close function when
dl_init, the real address of read/close function can’t be determined in
compilation phase and libcrypto will seek read/close symbol in ELF
files and other libraries. However nginx_fstack redefined these two
functions, this causes these symbols to be found in nginx_fstack. But the real read/close function is NULL before ff_mod_init, this leads to crash.

Changes:
1.if real_close is NULL, assign it with the address of close function in Glibc.
2.remove unnecessary read/readv/write.
2017-06-20 10:48:26 +08:00
logwang 3132126c98 Merge branch master of https://github.com/F-Stack/f-stack 2017-06-14 15:38:42 +08:00
logwang 144c6bcd95 Add tool: route.
This commit ports FreeBSD `route` to F-Stack, can be used to set the route
table.
2017-06-14 15:25:35 +08:00
logwang a2d49456a2 Merge pull request #37 from uvuv/devel
Epoll optimization: add ff_kevent_do_each()
2017-06-13 19:39:01 +08:00
Ron 850cbeb422 kevent copyout directly without 2017-06-13 19:26:38 +08:00
Ron 1a78ce8ea6 epoll optimization, add ff_kevent_do_each 2017-06-13 17:50:51 +08:00
logwang d5f5b02c2e Fix multi ports bug: the secondary processes will not start port correctly. 2017-06-13 17:14:49 +08:00
logwang 61a488cc9b Merge pull request #35 from uvuv/fstack-master
Fix: redis build failed because some files ignored by jemalloc/.gitignore.
2017-06-13 10:52:11 +08:00
Ron 12e31dcff6 Fix: redis build failed 2017-06-13 09:51:19 +08:00
root bed8feab33 fix KNI: Out of memory 2017-06-12 16:12:22 +08:00
logwang 488adaba23 Fix #28: opt_vlan.h is omitted by the previous commit. 2017-06-07 15:39:13 +08:00
derness c9f0232b74 fix memory leak issue. 2017-06-07 13:18:11 +08:00
logwang df6ad73146 Add tool: ifconfig.
Changes:
    Remove directory `ipc`, and add a new directory `compat`.
    Directory `compat` includes some FreeBSD source files to be compatible
        with Linux.
    Port FreeBSD ifconfig to F-Stack.
2017-06-06 16:52:52 +08:00
logwang b40d69985a Merge pull request #23 from travislee8964/master
fix NGX_EXCLUSIVE_EVENT compile error on linux 4.5+ and glibc 2.24+
2017-06-01 13:00:12 +08:00
Travis Lee 0f704af614 fix NGX_EXCLUSIVE_EVENT compile error on linux 4.5+ and glibc 2.24+
if Linux >= 4.5 and glibc >= 2.24, will compile with EPOLLEXCLUSIVE, but FreeBSD does not supported EPOLLEXCLUSIVE.
2017-06-01 12:15:11 +08:00
logwang 34a144bd04 Tools/sysctl: some changes were omitted from the last commit. 2017-05-27 03:44:01 +08:00
logwang 2d99e60c29 Tools/sysctl: make porting more general.
When porting tools, We should change the original codes as few as
possible.
2017-05-27 03:29:29 +08:00
logwang 6e6fd87cff Merge pull request #18 from liwei/master
Fix #17: FreeBSD typo
2017-05-25 20:06:14 +08:00
Li Wei 839295c867 freebsd: fix compiling error with gcc 6.3.1
Fix this misleading indentation according to the upstream of freebsd.

Signed-off-by: Li Wei <liwei@anbutu.com>
2017-05-25 18:57:02 +08:00
logwang 3377ed76b3 Update docs 2017-05-24 15:32:15 +08:00
logwang 91a931fad7 Tools: update README 2017-05-23 23:35:39 +08:00
logwang e4ae9a659b Merge branch 'master' of https://github.com/F-Stack/f-stack 2017-05-23 23:19:31 +08:00
logwang 7abd0fb2a9 Add tool: sysctl.
This commit contains an ipc library implemented by dpdk rte_ring and
sysctl tool ported from FreeBSD.

With this commit we can get and set FreeBSD kernel state in runtime.
2017-05-23 23:13:49 +08:00
johnjiang 87255e88bc Update README.md 2017-05-23 16:05:59 +08:00
johnjiang 8e26089a10 add kni virtural nic config 2017-05-23 16:01:51 +08:00
logwang a6a17f2a57 Merge pull request #11 from Lihuanghe/master
document mistake:  File:Launch F-Stack on AWS EC2 in one minute ,Section: Compile Nginx
2017-05-22 16:55:57 +08:00
Lihuanghe 5c7fa5d0df document mistake 2017-05-22 09:38:39 +08:00
logwang 7d25ffc210 Merge pull request #10 from byronhe/patch-1
fix compile error
2017-05-18 10:52:30 +08:00
byronhe 7991c74543 fix compile error 2017-05-18 00:28:38 +08:00
logwang 9efa5f0af7 Fix typo. 2017-05-17 15:59:07 +08:00
whl739 cd915f5022 Merge branch 'master' of https://github.com/F-Stack/f-stack 2017-05-17 15:18:42 +08:00
whl739 c15aae717a Fix #9: error variable i in loop. 2017-05-17 14:35:52 +08:00