| 867abe45 | 10-Jun-2018 |
whl739 <[email protected]> |
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,
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".
show more ...
|
| 5e5c25c3 | 10-May-2018 |
logwang <[email protected]> |
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
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.
show more ...
|
| 62a0d716 | 08-Jan-2018 |
logwang <[email protected]> |
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` ins
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.
show more ...
|
| bc0ac475 | 01-Dec-2017 |
logwang <[email protected]> |
Fix bug: incorrect usage of `rte_pktmbuf_clone` when dispatching arp packets.
Since f-stack uses `rte_pktmbuf_clone` to copy mbuf to other lcores when dispatching arp packets, but it doesn't real co
Fix bug: incorrect usage of `rte_pktmbuf_clone` when dispatching arp packets.
Since f-stack uses `rte_pktmbuf_clone` to copy mbuf to other lcores when dispatching arp packets, but it doesn't real copy the packet data. The buf_addr of pktmbuf is pointed to the same address.
The arp response packet is generated with the same mbuf from the request packet, it just swaps the src and dst address, so the copied mbufs will also be changed.
What we need is a deep copy function, and the arp packets are really small, so deep copy will not harm performance too much.
Fix #53 #111 #112.
show more ...
|
| 112c74aa | 27-Nov-2017 |
logwang <[email protected]> |
Fix #107: some invalid usages of kqueue in `ff_epoll`.
1.Both EVFILT_READ and EVFILT_WRITE are values but not flags. It needs to check whether it is equal but not to do logic and.
2.If the read dir
Fix #107: some invalid usages of kqueue in `ff_epoll`.
1.Both EVFILT_READ and EVFILT_WRITE are values but not flags. It needs to check whether it is equal but not to do logic and.
2.If the read direction of the socket has shutdown, then the filter also sets EV_EOF in `flags`, and returns the socket error (if any) in `fflags`.
show more ...
|
| eb5902d9 | 09-Nov-2017 |
logwang <[email protected]> |
Api: add packet dispatch callback function register.
In some cases, for example, packets are forwarded to your server through IP tunnel, and they will be received on fixed queues, since RSS doesn't
Api: add packet dispatch callback function register.
In some cases, for example, packets are forwarded to your server through IP tunnel, and they will be received on fixed queues, since RSS doesn't support tunnels.So we need to dispatch them again.
With this commit, we can implement a dispatcher callback function and regist it, packets retrieved from rx queue will be dispatched again according to the dispatcher result.
show more ...
|