compat: Detect and use inet_frags->frags_work.
authorJoe Stringer <joe@ovn.org>
Thu, 24 Dec 2015 18:54:37 +0000 (10:54 -0800)
committerJoe Stringer <joe@ovn.org>
Tue, 2 Feb 2016 22:26:45 +0000 (14:26 -0800)
commit91408ae00320154d4b3ee970c25c219a9782e67d
tree0a3c4ab0373466999aa6669558c889edebb5149d
parent8f00ece90408ce4fae82aaf110858bfaa0faf53a
compat: Detect and use inet_frags->frags_work.

Kernels 3.17 and newer have a work queue to evict old fragments, while
older kernel versions use an LRU in the fast path; see upstream commit
b13d3cbfb8e8 ("inet: frag: move eviction of queues to work queue").
This commit fixes the version checking so that rather than enabling the
code for either of these approaches using version checks, it is
triggered based on the presence of the work queue in "struct inet_frags".

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
acinclude.m4
datapath/linux/compat/include/net/inet_frag.h
datapath/linux/compat/inet_fragment.c
datapath/linux/compat/ip_fragment.c
datapath/linux/compat/nf_conntrack_reasm.c