fengbojiang(姜凤波)
d7140ab746
IPv6: FreeBSD stack and f-stack support ipv6.
2019-07-12 20:56:01 +08:00
jfb8856606
5af66259d5
add `make install` and `make uninstall` in f-tack's lib and tools, refer #396
2019-07-01 19:18:54 +08:00
fengbojiang(姜凤波)
4de33dfa9f
remove unused code.
2019-06-27 18:21:45 +08:00
fengbojiang(姜凤波)
59bb71f60e
Add pkt_tx_delay parameter in config.ini.
...
It should be default while handling large concurrent requests, otherwise
it will reduce the throughput.
But if there are only a little, you can set it to less than 100, even to
0, to reduce the delay of the connection.
2019-06-27 17:44:19 +08:00
fengbojiang(姜凤波)
16d80a6ddc
modify RTE_MAX to RTE_ALIGN_CEIL while init mempool.
2019-06-27 12:12:59 +08:00
jfb8856606
d30ea9060e
Reupgrade DPDK to 18.11.
2019-06-25 19:12:58 +08:00
fengbojiang(姜凤波)
173e66311e
Merge branch 'master' into dev
2019-06-25 17:15:06 +08:00
fengbojiang(姜凤波)
d9e0c21a28
Add dispatch API reference.
2019-06-25 12:38:19 +08:00
logwang
5f73f9b957
Merge branch 'dev' into master
2019-05-21 22:19:57 +08:00
10077240
04cef02d60
use 4 spaces instead tab
2019-04-01 15:42:01 +08:00
jin.hao1
6149c27496
Update ff_memory.c
2019-04-01 15:03:51 +08:00
10077240
5bf882b459
modify according to MR.Wang
2019-04-01 14:54:36 +08:00
10077240
0da6ab43f7
modify makefile as needes
2019-03-29 10:49:35 +08:00
10077240
ef5ab85936
not use mcopy when transmit from bsd to dpdk
2019-03-29 10:42:02 +08:00
johnjiang
fba559f45b
Merge pull request #355 from jinhao2/master
...
ff_traffic.tx info should save the sent packets
2019-03-18 11:07:06 +08:00
jin.hao1
49d7ad40cc
recommit
2019-03-15 18:07:15 +08:00
jin.hao1
268488030d
ff_traffic.tx info should save the sent packets
...
send_burst() send several pkts which maybe composed by several mbufs, use rte_pktmbuf_pkt_len() to get actual length.
2019-03-15 16:18:17 +08:00
fengbojiang(姜凤波)
e8591dc5c0
F-Stack's kni can work on DPDK 18.11 LTS now.
2019-03-14 17:17:58 +08:00
fengbojiang(姜凤波)
ee6c3aa356
modify packet_dispatcher to support response package direct.
2019-03-08 15:12:57 +08:00
teacup-on-rockingchair
d3f10a087d
Add support for getsockopt TCP_INFO
2019-02-24 10:51:25 +02:00
fengbojiang(姜凤波)
d3f2221c0c
Fix the IP/TCP/UDP csum error of txmode offloads, refer #317 .
2019-01-18 18:05:18 +08:00
fengbojiang(姜凤波)
5af785ecea
Revert "DPDK:upgrade to 18.11.0 LTS."
...
This reverts commit 8850115bd8
.
2019-01-18 17:27:45 +08:00
fengbojiang
2accbca75e
Format code.
2018-12-06 22:41:39 +08:00
jfb8856606
28440c506f
DPDK:upgrade to 18.11.0 LTS.
2018-12-06 22:17:51 +08:00
fengbojiang
a3bbaff58f
CONTAINER(DOCKER): support aggregation model while running in container with OVS-DPDK, refer to #298 .
2018-11-27 02:02:38 +08:00
DonBearH
cac3602237
Setting FF_DPDK with MACHINE_CPUARCH
2018-11-08 14:57:44 +08:00
DonBearH
bf05b3b78b
Update Makefile for reserving FF_DPDK for x86
...
The former patch, which add compiler option for arm64, removes the FF_DPDK for x86.
That's a mistake.
2018-11-08 10:03:22 +08:00
dongbo4
9bd490e8d3
Add arch arm64 compiler options
2018-11-07 08:55:09 +00:00
morishima311
7230b27cf0
fix static building path of FF_DPDK
2018-08-24 16:03:23 +09:00
root
dfbc4ac350
Merge branch 'master' of https://github.com/F-Stack/f-stack
2018-08-20 16:46:28 +08:00
root
5523938c5b
add `base_virtaddr` config.
2018-08-20 16:44:33 +08:00
zhanghaisen
a8636dd5c0
fix for issue 261
2018-08-20 14:54:18 +08:00
fengbojiang
c506e4369e
add "idle_sleep" to reduce CPU usage when no pkts incomming.
2018-08-18 01:45:11 +08:00
fengbojiang
5a73eef15f
fix a traffic bug
2018-08-17 17:42:21 +08:00
fengbojiang
03df98dea2
add traffic tool.
2018-08-16 20:29:12 +08:00
whl739
7b9d3e8700
F-Stack: disable kni module by default.
...
Some omissions.
2018-06-21 17:51:57 +08:00
whl739
dc42d452ae
F-Stack: disable kni module by default.
...
This commit adds a macro `FF_KNI` to determine whether to enable kni.
In Makefile, uncomment the `FF_KNI=1`, kni will be compiled into f-stack.
2018-06-21 17:39:17 +08:00
whl739
86036c745d
Config: if proc-id is not configured, use 0.
2018-06-14 22:50:11 +08:00
logwang
5f219b2cad
Merge pull request #230 from mscbg/master
...
F-stack:fix bug, if ff_veth_softc malloc faild, memory should not be read
2018-06-11 11:10:16 +08:00
yanya
b0c07b2440
F-stack:fix bug, if ff_veth_softc malloc faild, memory should no be read.
2018-06-11 10:53:38 +08:00
logwang
ee889fa71c
Merge pull request #228 from boat0/master
...
make use of numa when setting up rx/tx queues
2018-06-10 22:01:56 +08:00
Xiaozhou Liu
c2eceaad4c
make use of numa when setting up rx/tx queues
2018-06-10 20:48:48 +08:00
whl739
867abe45fa
Misc: some updates.
...
1.add interface `ff_dup` and `ff_dup2`.
2.add interface `ff_ioctl_freebsd`/`ff_getsockopt_freebsd`/`ff_setsockopt_freebsd` for tools.
3.initial parameter `proc-type` can be NULL, default "auto".
2018-06-10 20:41:48 +08:00
chenwei
968058581b
Fstack: fixbug, bad checksum would lead to memleak of dpdk mbuf
2018-05-30 10:36:16 +08:00
whl739
b3aff0ba02
Fix compling error in the newer version of gcc and openssl.
...
`RAND_pseudo_bytes` is deprecated in the newer version of openssl.
Use `RAND_bytes` instead.
2018-05-28 21:05:36 +08:00
logwang
2bfe3f2e55
DPDK: upgrade to 17.11.2 LTS.
...
Changes:
1. This version is downloaded from
https://fast.dpdk.org/rel/dpdk-17.11.2.tar.xz .
2. Adapt the new interface `rte_ring_dequeue_burst`.
3. Change the type of `port_id` from uint8_t to uint16_t.
4. Just link libdpdk.a instead of the other libaries.
5. Install libnuma-dev first.
6. Update the documents.
2018-05-15 17:49:22 +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
chenwei
d16cce93d7
API: [BugFix] On success, `ff_sendmsg` return the number of chars sent.
2018-04-09 11:22:26 +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
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