diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2017-01-13 13:06:07 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-01-17 14:05:08 +0100 |
commit | 80e70fdcf8861ab757b6bfc8f0fbaec31cde57bf (patch) | |
tree | b574e35ddb001c51b1876618fba1c90b3f9f771b /netsniff-ng | |
parent | feb7ac09c8cf37ef2b01611c2863e1a0123ffeca (diff) |
flowtop: Replace single linked list by list_head from list.h
list.h provides generic Linux-like linked list API which also supports
RCU list operations.
Also additionally was removed the spinlock which is not needed for
RCU-list operations, for the list_del_rcu(...) case it is needed
additionally call call_rcu(...) before free the flow entry.
Because of full RCU support now flows are freed after grace-period
(after presenter leaves RCU lock) via calling call_rcu(), because
of that for the new entries we return NFCT_CB_STOLEN to tell conntrack
API do not automatically free received nfct_conntrack object, it will be
freed by us via call_rcu(...) therefor no need to use nfct_clone(n).
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng')
0 files changed, 0 insertions, 0 deletions