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:27:04 +0000 (14:27 -0800)
commit1efdc8a64cf6e8e838d2932e0a02af3b0df2c64c
tree719ec827e2a677da3385bfc28d657f90d3ba0bc3
parent30ed3d0b73dd2f7185702426d036db904d64b92d
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